CN102215389B - Video coding and decoding methods and devices capable of realizing local luminance compensation - Google Patents

Video coding and decoding methods and devices capable of realizing local luminance compensation Download PDF

Info

Publication number
CN102215389B
CN102215389B CN 201010147572 CN201010147572A CN102215389B CN 102215389 B CN102215389 B CN 102215389B CN 201010147572 CN201010147572 CN 201010147572 CN 201010147572 A CN201010147572 A CN 201010147572A CN 102215389 B CN102215389 B CN 102215389B
Authority
CN
China
Prior art keywords
current block
luminance compensation
peripheral information
block
information
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 201010147572
Other languages
Chinese (zh)
Other versions
CN102215389A (en
Inventor
林四新
杨名远
于浩平
周建同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 201010147572 priority Critical patent/CN102215389B/en
Priority to PCT/CN2011/072563 priority patent/WO2011124157A1/en
Publication of CN102215389A publication Critical patent/CN102215389A/en
Application granted granted Critical
Publication of CN102215389B publication Critical patent/CN102215389B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention relates to video coding and decoding technologies, and provides a video coding method capable of realizing local luminance compensation, a video decoding method capable of realizing the local luminance compensation, a video coding device capable of realizing the local luminance compensation and a video decoding device capable of realizing the local luminance compensation. Before luminance compensation is performed, the compensation is judged whether to be required or not, so the coding efficiency is improved. The decoding method comprises the following steps of: receiving a video code stream, and resolving the coding mode information of a current block; obtaining the motion information of the current block; determining a reference block corresponding to the current block in a reference frame according to the motion information; judging whether to perform the luminance compensation on the current block or not according to the ambient information of the current block and the ambient information of the reference block; and when the luminance compensation is required to be performed on the current block, performing the luminance compensation on a reconstructed value of the current block. Simultaneously, the invention also provides the corresponding coding method and the corresponding devices.

Description

A kind of video coding-decoding method and device of local luminance compensation
Technical field
The embodiment of the invention relates to the communications field, relates in particular to a kind of video coding-decoding method and device of local luminance compensation
Background technology
In Video coding, because the variation of brightness or the needs of stunt, but the coding scene that the similar brightness of continuous content frame alters a great deal often can appear, for this class scene of efficient coding, need to carry out luminance compensation.Weight estimation compensates between adjacent two frames because the luminance difference that the variation of the conditions such as illumination brings, and can improve the efficient of inter prediction.At present, H.264 use frame layer weight estimation that whole frame brightness is changed and compensate, but this method can not compensate local brightness variation.
In order to realize local brightness and the compensation of colourity, the brightness of once doing to utilize current block and reference block to calculate between two in the MVC of the joint video team JVT of ITU and MPEG changes, then between coded reference piece and the current block through the residual error behind the gamma correction, in code stream, transmit simultaneously the method for gamma correction information.After decoding end receives residual information, utilize reference frame to carry out motion compensation, reconstructed image is carried out luminance compensation, the reconstructed image after obtaining proofreading and correct according to the gamma correction information that passes over again.
Therefore need in code stream, transmit whether carry out luminance compensation in the existing video coding and decoding technology, and the gamma correction information such as luminance compensation value, cause the code stream side information to increase, code efficiency has much room for improvement.
Summary of the invention
The embodiment of the invention provides a kind of method of coding and decoding video, and the method reduces the side information in code stream, to improve code efficiency.
A kind of method of decoded video signal, described method comprises:
The receiver, video code stream, the coding mode information of parsing current block;
Obtain the movable information of described current block;
In reference frame, determine the reference block corresponding with described current block according to described movable information;
Judge whether described current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
When needs carry out luminance compensation to described current block, the reconstructed value of described current block is carried out luminance compensation.
A kind of method of encoded video signal, described method comprises:
In reference frame, carry out estimation, obtain the movable information of current block;
In described reference frame, determine the reference block corresponding with current block according to described movable information;
Judge whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
When needs carry out luminance compensation to described current block, the predicted value of described current block is carried out luminance compensation;
Obtain the residual values of described current block according to the predicted value behind the described luminance compensation, described residual values is carried out transform and quantization and entropy coding.
A kind of device of video decode comprises:
The decoded information acquiring unit is used for the receiver, video code stream, resolves the coding mode information of current block, obtains the movable information of described current block;
Decoding is used for determining the reference block corresponding with current block according to described movable information at described reference frame with reference to determining unit;
Decoding luminance compensation judging unit is used for judging whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
The decoding luminance compensation unit is used for when needs carry out luminance compensation to described current block the reconstructed value of described current block being carried out luminance compensation.
A kind of video coding apparatus comprises:
The coding motion estimation unit is used for carrying out estimation at reference frame, obtains the movable information of current block;
The coded reference determining unit is used for determining the reference block corresponding with current block according to described movable information at described reference frame;
Coding luminance compensation judging unit is used for judging whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
The coding luminance compensation unit is used for when needs carry out luminance compensation to described current block the predicted value of described current block being carried out luminance compensation;
Coding processing unit for the residual values that obtains described current block according to the predicted value behind the described luminance compensation, is carried out transform and quantization and entropy coding to described residual values.
The method of the coding and decoding video that the embodiment of the invention provides and device, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Description of drawings
Fig. 1 is the method flow diagram that embodiment of the invention Video coding is processed.
Fig. 2 is embodiment of the invention video code flow schematic diagram.
Fig. 3 is the method flow diagram that embodiment of the invention video solution coding is processed.
Fig. 4 a is the apparatus structure schematic diagram of embodiment of the invention Video coding.
Fig. 4 b is the structural representation of the another example of device of embodiment of the invention Video coding.
Fig. 5 a is the apparatus structure schematic diagram of embodiment of the invention video decode.
Fig. 5 b is the structural representation of the another example of device of embodiment of the invention video decode.
Embodiment
The embodiment of the invention provides the method for local luminance compensation in the cover Video processing.
Consult Fig. 1, the method flow diagram that Video coding is processed, in the present embodiment, the processing of coding comprises:
S101 carries out estimation in reference frame, obtain the movable information of current block;
S103 determines the reference block corresponding with current block according to described movable information in described reference frame;
S105 judges whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
S107 when needs carry out luminance compensation to described current block, carries out luminance compensation to the predicted value of described current block;
The predicted value of S109 after according to described luminance compensation obtains the residual values of described current block, and described residual values is carried out transform and quantization and entropy coding.
The method of the Video coding that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Further, the another embodiment as coding is processed consults Fig. 2, the code stream schematic diagram.
When the coding current macro, first according to current block, in reference frame, carry out estimation, obtain the movable information of current block, in the reference frame of correspondence, find corresponding piece according to the motion vector that obtains, utilize the movable information of current block C, in its reference frame Ft-1, find corresponding reference block R, utilize simultaneously the reconstructed value Y (for example getting " L shaped " part reconstructed value between top 4 row and the left side 4 row) of current block C periphery, with the value X of reference block R periphery (for example, Y shown in the figure and X are respectively " L " type pieces of current block and reference block periphery), use the up-left criterion to judge whether current block is carried out luminance compensation according to X and Y.The peripheral information of current block can comprise the peripheral reconstruction information of described current block, the coding mode information of current block, whether whether be interframe encode 16x16 piece such as current block, be the motion vector of DMVD (the decoding end movable information can be derived) piece or described current block.The peripheral information of reference block can comprise the peripheral reconstruction information of described reference block, the motion vector of the coding mode of described reference block or described reference block periphery reconstructed block.
Up-left criterion decision method 1:
If the value of each pixel is yi in front template Y,, the value of each pixel is xi among the reference template X, when satisfying formula (1)
∑(Ayi-Bxi)!=0 (1)
The poor sum of namely subtracting each other when front template Y and each pixel of reference template X is not equal to 0, also is when the brightness variation is arranged between template Y and the X, for satisfying the up-left criterion, otherwise for not meeting the up-left criterion.Wherein A and B are respectively weights, get A=B=1 in the present embodiment, also can get other values according to the weighting relation.
Up-left criterion decision method 2:
If the value of each pixel is yi among the Y,, the value of each pixel is xi among the X, when satisfying formula (2)
|∑(Ayi-Bxi)|>=N (2)
The absolute value of the poor sum of namely subtracting each other when Y and each pixel of X is more than or equal to N, N is that the constant determined according to the pixel number of peripheral information is (such as A=B=1, N be template pixel number and half), also be that Y and X are when having larger brightness to change (as A=B=1), for satisfying the up-left criterion, otherwise brightness basic simlarity between Y and the X is not for meeting the up-left criterion.Wherein A and B are respectively weights.
Up-left criterion decision method 3:
This judgment criterion hypothesis, when the brightness variation tendency of template zone Y and current block C was inconsistent, the variation tendency of the variation tendency of the top Up of current block and the left side Left of current block was also inconsistent.Suppose in addition, when the template of match block and the luminance difference of match block were very little, template was consistent with the brightness variation tendency of MB.
Then up-left criterion decision method 3 is as follows:
When satisfying formula (3)
∑|Up_curr-Up_ref-TM_Offset |<∑|Up_curr-Up_ref| (3)
And ∑ (Up_curr-Up_ref-TM_Offset)<∑ (Up_curr-Up_ref)
And ∑ | Left_curr-Left_ref-TM_Offset|<∑ | Left_curr-Left_ref|
And ∑ (Left_curr-Left_ref-TM_Offset)<∑ (Left_curr-Left_ref)
For satisfying the up-left criterion, otherwise for not meeting the up-left criterion.Wherein Up_curr is the top reconstruction pixel of current block, Up_ref is that the top of the corresponding reference block of current block rebuilds pixel, Left_curr and Left_ref are respectively the reconstruction pixels on current block and the reference block left side, and TM_Offset is the luminance difference among X and the Y among Fig. 1.
When satisfying the up-left criterion, calculate respectively the cost function RDCOST1 that utilizes residual values between current block C and the reference block R, (can be called the first numerical value), and the cost function RDCOST2 after residual values utilizes luminance difference IDCO to proofread and correct between current block C and the reference block R, relatively RDCOST1 and RDCOST2 (can be called second value).When RDCOST2 hour, in code stream, transmit the flag bit IDCO_flag that mark need to carry out luminance compensation and equal 1, coding utilizes the residual values after luminance difference IDCO proofreaies and correct or utilizes first IDCO that predicted value is carried out luminance compensation, again with the prediction of the predicted value behind luminance compensation current block.Can be expressed as:
Irregular value=the C (i) of current block-R (i)-IDCO,
Wherein C (i) expression current block is in the pixel value of i position, and prediction piece corresponding to R (i) expression be in the predicted value of i position, and IDCO represents to utilize the luminance difference that calculates when front template and reference template.
As RDCOST2 during more than or equal to RDCOST1, transmitting mark in code stream does not need to carry out luminance compensation, can make flag bit IDCO_flag equal 0, directly utilizes reference block corresponding to current block to predict current current block, and coded residual can be expressed as:
Irregular value=the C (i) of current block-R (i), wherein C (i) expression current block is in the pixel value of i position, and R (i) represents corresponding prediction piece in the predicted value of i position.
When not satisfying the up-left criterion, need in code stream, not transmit luminance compensation Tag ID CO_flag, directly utilize reference block corresponding to current block to predict current current block, coded residual information.
Then obtain the residual values of described current block according to the predicted value behind the luminance compensation, described residual values is carried out transform and quantization and entropy coding.Finishing the coding of video processes.
The method of the Video coding that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Further the another embodiment of Video coding of the present invention after determining to carry out luminance compensation to current block, does not increase flag bit, but directly selects compensation method.Compensation method can be the luminance difference of utilizing the peripheral information of the peripheral information of described current block and described reference block to obtain, utilizes luminance difference that the predicted value of current block is carried out luminance compensation.Perhaps, directly utilize reference block prediction current block corresponding to current block.System can select in above-mentioned dual mode as required.
The method of the Video coding that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, after needs directly compensate, directly compensate, can in code stream, not transmit when not needing to compensate and whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, improve code efficiency.
The present invention further provides simultaneously the embodiment of video decode.
Consult Fig. 3, the method flow diagram that video decode is processed, in the present embodiment, the processing of decoding comprises:
S201, receiver, video code stream, the coding mode information of parsing current block, the movable information of acquisition current block;
S203 determines the reference block corresponding with current block according to described movable information in described reference frame;
S205 judges whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
S207 when needs carry out luminance compensation to described current block, carries out luminance compensation to the reconstructed value of described current block.
The method of the video decode that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Further, the another embodiment as decoding is processed continues to consult Fig. 2, the code stream schematic diagram.
When the decoding current macro, from code stream, decode first the movable information of current block, in the reference frame of correspondence, find corresponding piece according to the motion vector that obtains, utilize the movable information of current block C, in its reference frame Ft-1, find corresponding reference block R, utilize simultaneously the peripheral information Y of current block C, and the peripheral information X of reference block R (for example Y shown in the figure and X are respectively " L " type pieces of current block and reference block periphery), up-left criterion decision method set up according to X and Y.Here the up-left criterion is identical with the judgment criterion in the coding method.The peripheral information of current block can comprise periphery (on the left side adjacent with current block or the top) reconstruction information of described current block, the coding mode information of current block, whether whether be interframe encode 16x16 piece such as current block, be the motion vector of DMVD (the decoding end movable information can be derived) piece or described current block.The peripheral information of reference block can comprise the peripheral reconstruction information of described reference block, or the motion vector of described reference block periphery reconstructed block.
After satisfying the up-left criterion according to the peripheral information of current block and the peripheral information of reference block, when satisfying the local brightness variation condition, decoding luminance compensation flag bit IDCO_flag from code stream, when IDCO_flag equals 1 (the first parameter value), utilize such as the peripheral reconstructed value X among Fig. 1 and Y and obtain luminance difference IDCO between them
IDCO=∑(C 1y i-C 2x i)/N
C wherein 1, C 2Be coefficient, can get 1 in the present embodiment, also can carry out linear fit according to the peripheral reconstructed pixels of the peripheral reconstructed pixels of current block and reference block and obtain y i, x iBe each pixel value among the peripheral information X of the peripheral information Y of current block and reference block, N represents the pixel number of peripheral information.
The luminance difference IDCO that utilization obtains carries out luminance compensation to the reconstructed value of current block,
Reconstructed value=the Res of current block (i)+R (i)+IDCO,
Wherein Res (i) is the residual signals that decodes in the code stream.
Otherwise, when IDCO_flag equals 0 (the second parameter value), directly utilize reference block corresponding to current block to rebuild current block,
Reconstructed value=the Res of current block (i)+R (i),
Wherein Res (i) is the residual signals that decodes in the code stream.
When not satisfying the up-left criterion, do not need decoding luminance compensation flag bit IDCO_flag from code stream, direct derivation obtains IDCO_flag=0, directly utilizes reference block corresponding to current block to rebuild current block, and does not need luminance compensation.
The method of the video decode that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Further, the another embodiment of the present invention's decoding after determining to carry out luminance compensation to current block, does not understand the code mark position, but directly selects compensation method.Compensation method can be the luminance difference of utilizing the peripheral information of the peripheral information of described current block and described reference block to obtain, utilizes luminance difference that the reconstructed value of current block is carried out luminance compensation.Perhaps, directly utilize reference block corresponding to current block to rebuild current block.System can be with selecting in above-mentioned dual mode as required.
The method of the Video coding that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, after needs directly compensate, directly compensate, can in code stream, not transmit when not needing to compensate and whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, improve code efficiency.
Those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can software product form embody, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The embodiment of the invention further provides the device of processing vision signal.
Consult Fig. 4 a, the apparatus structure schematic diagram of embodiment of the invention Video coding.This video coding apparatus 40 comprises:
Coding motion estimation unit 401 is used for carrying out estimation at reference frame, obtains the movable information of current block;
Coded reference determining unit 403 is used for determining the reference block corresponding with current block according to described movable information at described reference frame;
Coding luminance compensation judging unit 405 is used for judging whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
Coding luminance compensation unit 407 is used for when needs carry out luminance compensation to described current block the reconstructed value of described current block being carried out luminance compensation.
Coding processing unit 409 for the residual values that obtains described current block according to the predicted value behind the described luminance compensation, is carried out transform and quantization and entropy coding to described residual values.
The device of the Video coding that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Be further used as another embodiment, consult Fig. 4 b, when the coding current macro, coding motion estimation unit 401 is first according to current block, in reference frame, carry out estimation, obtain the movable information of current block, coded reference determining unit 403 finds corresponding piece according to the motion vector that obtains in the reference frame of correspondence, utilize the movable information of current block C, in its reference frame Ft-1, find corresponding reference block R, utilize simultaneously the reconstructed value Y (for example getting " L shaped " part reconstructed value between top 4 row and the left side 4 row) of current block C periphery, with the value X of reference block R periphery (for example, Y shown in the figure and X are respectively " L " type pieces of current block and reference block periphery), luminance compensation judging unit 405 is set up the up-left criterion according to X and Y and is judged whether current block is carried out luminance compensation.The peripheral information of current block can comprise the peripheral reconstruction information of described current block, the coding mode information of current block, whether whether be interframe encode 16x16 piece such as current block, be the motion vector of DMVD (the decoding end movable information can be derived) piece or described current block.The peripheral information of reference block can comprise the peripheral reconstruction information of described reference block, the motion vector of the coding mode of described reference block or described reference block periphery reconstructed block.Coding luminance compensation unit 407 is carried out luminance compensation when needs carry out luminance compensation to described current block to the reconstructed value of described current block.Coding processing unit 409 obtains the residual values of described current block again according to the predicted value behind the described luminance compensation, described residual values is carried out transform and quantization and entropy coding.
The luminance compensation judging unit 405 of wherein encoding judges whether current block is carried out luminance compensation according to aforesaid up-left criterion.
This device can also comprise computing unit 411 and flag bit generation unit 413.When the first numerical value during greater than described second value, coding luminance compensation unit 407 utilizes described luminance difference that the predicted value of current block is carried out luminance compensation, and the flag bit generation unit will be masked as and be made as the first parameter value; When the first numerical value was not more than described second value, coding luminance compensation unit 407 was directly utilized reference block prediction current block corresponding to current block.
When satisfying the up-left criterion, computing unit 411 calculates respectively the cost function RDCOST1 that utilizes residual values between current block C and the reference block R, (can be called the first numerical value), and the cost function RDCOST2 after residual values utilizes luminance difference IDCO to proofread and correct between current block C and the reference block R, relatively RDCOST1 and RDCOST2 (can be called second value).When RDCOST2 hour, in code stream, transmit the flag bit IDCO_flag that mark need to carry out luminance compensation and equal 1, coding utilizes the residual values after luminance difference IDCO proofreaies and correct or utilizes first IDCO that predicted value is carried out luminance compensation, again with the prediction of the predicted value behind luminance compensation current block.Can be expressed as:
Irregular value=the C (i) of current block-R (i)-IDCO,
Wherein C (i) expression current block is in the pixel value of i position, and prediction piece corresponding to R (i) expression be in the predicted value of i position, and IDCO represents to utilize the luminance difference that calculates when front template and reference template.
As RDCOST2 during more than or equal to RDCOST1, transmitting mark in code stream does not need to carry out luminance compensation, can make flag bit IDCO_flag equal 0, directly utilizes reference block corresponding to current block to predict current current block, and coded residual can be expressed as:
Irregular value=the C (i) of current block-R (i), wherein C (i) expression current block is in the pixel value of i position, and R (i) represents corresponding prediction piece in the predicted value of i position.
When not satisfying the up-left criterion, need in code stream, not transmit luminance compensation Tag ID CO_flag, directly utilize reference block corresponding to current block to predict current current block, coded residual information.
Then coding processing unit 409 obtains the residual values of described current block according to the predicted value behind the luminance compensation, and described residual values is carried out transform and quantization and entropy coding.Finishing the coding of video processes.
The device of the Video coding that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Further the another embodiment of Video coding of the present invention after determining to carry out luminance compensation to current block, does not increase flag bit, but directly selects compensation method.Luminance compensation unit 407 can be the luminance difference of utilizing the peripheral information of the peripheral information of described current block and described reference block to obtain, utilizes luminance difference that the predicted value of current block is carried out luminance compensation.Perhaps, luminance compensation unit 407 is directly utilized reference block prediction current block corresponding to current block.System can select in above-mentioned dual mode as required.
The method of the Video coding that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, after needs directly compensate, directly compensate, can in code stream, not transmit when not needing to compensate and whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, improve code efficiency.
Further, the embodiment of the invention provides a video decoder.Consult Fig. 5 a, the apparatus structure schematic diagram of embodiment of the invention video decode.Video decoder 50 comprises:
Decoded information acquiring unit 501 is used for the receiver, video code stream, resolves the coding mode information of current block, obtains the movable information of described current block;
Decoding is used for determining the reference block corresponding with current block according to described movable information at described reference frame with reference to determining unit 503;
Decoding luminance compensation judging unit 505 is used for judging whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
Decoding luminance compensation unit 507 is used for when needs carry out luminance compensation to described current block the reconstructed value of described current block being carried out luminance compensation.
The device of the video decode that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Be further used as another embodiment, consult Fig. 5 b, when the decoding current macro, decoded information acquiring unit 501 decodes first the movable information of current block from code stream, decoding is found corresponding piece with reference to determining unit 503 according to the motion vector that obtains in the reference frame of correspondence, utilize the movable information of current block C, in its reference frame Ft-1, find corresponding reference block R, utilize simultaneously the peripheral information Y of current block C, with the peripheral information X (for example Y shown in the figure and X are respectively " L " type pieces of current block and reference block periphery) of reference block R, decoding luminance compensation judging unit 505 is set up up-left criterion decision method according to X and Y.Here the up-left criterion is identical with judgment criterion in the coding method.The peripheral information of current block can comprise periphery (on the left side adjacent with current block or the top) reconstruction information of described current block, the coding mode information of current block, whether whether be interframe encode 16x16 piece such as current block, be the motion vector of DMVD (the decoding end movable information can be derived) piece or described current block.The peripheral information of reference block can comprise the peripheral reconstruction information of described reference block, or the motion vector of described reference block periphery reconstructed block.
In luminance compensation unit, can comprise flag bit processing module 511.After satisfying the up-left criterion according to the peripheral information of current block and the peripheral information of reference block, when satisfying the local brightness variation condition, the flag bit processing module 511 luminance compensation flag bit IDCO_flag that from code stream, decodes, when described luminance compensation flag bit is the first parameter value, the luminance difference that described luminance compensation unit 507 utilizes the peripheral information of the peripheral information of described current block and described reference block to obtain utilizes described luminance difference that the reconstructed value of current block is carried out luminance compensation; When described luminance compensation flag bit was the second parameter value, described decoding luminance compensation unit 507 directly utilized reference block corresponding to current block to rebuild current block.
When IDCO_flag equals 1 (the first parameter value), utilize such as the peripheral reconstructed value X among Fig. 2 and Y and obtain luminance difference IDCO between them,
IDCO=∑(C 1y i-C 2x i)/N
C wherein 1, C 2Be coefficient, can get 1 in the present embodiment, also can carry out linear fit according to the peripheral reconstructed pixels of the peripheral reconstructed pixels of current block and reference block and obtain y i, x iBe each pixel value among the peripheral information X of the peripheral information Y of current block and reference block, N represents that the pixel number of peripheral information represents the pixel number.The luminance difference IDCO that utilization obtains carries out luminance compensation to the reconstructed value of current block,
Reconstructed value=the Res of current block (i)+R (i)+IDCO,
Wherein Res (i) is the residual signals that decodes in the code stream.
Otherwise, when IDCO_flag equals 0 (the second parameter value), directly utilize reference block corresponding to current block to rebuild current block,
Reconstructed value=the Res of current block (i)+R (i),
Wherein Res (i) is the residual signals that decodes in the code stream.
When not satisfying the up-left criterion, do not need decoding luminance compensation flag bit IDCO_flag from code stream, direct derivation obtains IDCO_flag=0, directly utilizes reference block corresponding to current block to rebuild current block, and does not need luminance compensation.
The device of the video decode that the embodiment of the invention provides, before carrying out luminance compensation, judge whether first and need to compensate, at least when not needing to compensate, can in code stream, not transmit whether carry out luminance compensation, and the gamma correction information such as luminance compensation value, code efficiency improved.
Further, the another embodiment of the present invention's decoding after determining to carry out luminance compensation to current block, does not understand the code mark position, but directly selects compensation method.Decoding luminance compensation unit 507 can be the luminance difference of utilizing the peripheral information of the peripheral information of described current block and described reference block to obtain, utilizes luminance difference that the reconstructed value of current block is carried out luminance compensation.Perhaps, decoding luminance compensation unit 507 directly utilizes reference block corresponding to current block to rebuild current block.System can be with selecting in above-mentioned dual mode as required.

Claims (22)

1. the method for a decoded video signal is characterized in that, described method comprises:
The receiver, video code stream is resolved the coding mode information of current block, obtains the movable information of described current block;
In reference frame, determine the reference block corresponding with described current block according to described movable information;
Judge whether described current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
When needs carry out luminance compensation to described current block, the reconstructed value of described current block is carried out luminance compensation.
2. the method for claim 1 is characterized in that,
The peripheral information of described current block comprises: the coding mode information of the reconstruction information of described current block periphery or described current block or the motion vector of described current block;
The peripheral information of described reference block comprises: the motion vector of the coding mode information of the reconstruction information of described reference block periphery or described reference block or described reference block periphery reconstructed block.
3. method as claimed in claim 1 or 2 is characterized in that, describedly judges whether that according to the peripheral information of described current block and the peripheral information of described reference block current block is carried out luminance compensation to be comprised:
Calculate ∑ (Ay i-Bx i), y wherein iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient;
As described ∑ (Ay i-Bx i) when being not equal to zero, determine current block is carried out luminance compensation.
4. method as claimed in claim 1 or 2 is characterized in that, describedly judges whether that according to the peripheral information of described current block and the peripheral information of described reference block current block is carried out luminance compensation to be comprised:
When | ∑ (Ay i-Bx i) | during 〉=N, determine current block is carried out luminance compensation, wherein, y iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient, and N is the constant of determining according to the pixel number of peripheral information, and described peripheral information comprises the peripheral information of described current block and the peripheral information of described reference block.
5. method as claimed in claim 1 or 2 is characterized in that, describedly judges whether that according to the peripheral information of described current block and the peripheral information of described reference block current block is carried out luminance compensation to be comprised:
When the brightness variation tendency of reference block and current block is inconsistent, and the variation tendency of the left area of the variation tendency of the upper edge region of described current block and described current block is determined when inconsistent current block is carried out luminance compensation.
6. the method for an encoded video signal is characterized in that, described method comprises:
In reference frame, carry out estimation, obtain the movable information of current block;
In described reference frame, determine the reference block corresponding with current block according to described movable information;
Judge whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
When needs carry out luminance compensation to described current block, the predicted value of described current block is carried out luminance compensation;
Obtain the residual values of described current block according to the predicted value behind the described luminance compensation, described residual values is carried out transform and quantization and entropy coding.
7. method as claimed in claim 6 is characterized in that,
The peripheral information of described current block comprises: the peripheral reconstruction information of described current block or the coding mode information of current block or the motion vector of described current block;
The peripheral information of described reference block comprises: the motion vector of the peripheral reconstruction information of described reference block or the coding mode information of described reference block or described reference block periphery reconstructed block.
8. method as claimed in claim 6 is characterized in that, described method also comprises:
In the time of need to carrying out luminance compensation to described current block, generate the luminance compensation flag bit.
9. such as claim 6 or 7 described methods, it is characterized in that, describedly judge whether that according to the peripheral information of described current block and the peripheral information of described reference block current block is carried out luminance compensation to be comprised:
Calculate ∑ (Ay i-Bx i), y wherein iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient;
As described ∑ (Ay i-Bx i) when being not equal to zero, determine current block is carried out luminance compensation.
10. such as claim 6 or 7 described methods, it is characterized in that, describedly judge whether that according to the peripheral information of described current block and the peripheral information of described reference block current block is carried out luminance compensation to be comprised:
When | ∑ (Ay i-Bx i) | during 〉=N, determine current block is carried out luminance compensation, wherein, y iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient, and N is the constant of determining according to the pixel number of peripheral information, and described peripheral information comprises the peripheral information of described current block and the peripheral information of described reference block.
11. such as claim 6 or 7 described methods, it is characterized in that, describedly judge whether that according to the peripheral information of described current block and the peripheral information of described reference block current block is carried out luminance compensation to be comprised:
Inconsistent when the brightness variation tendency of described reference block and described current block, and the variation tendency of the left area of the variation tendency of the upper edge region of described current block and described current block is determined when inconsistent current block is carried out luminance compensation.
12. a video decoder is characterized in that, described device comprises:
The decoded information acquiring unit is used for the receiver, video code stream, resolves the coding mode information of current block, obtains the movable information of described current block;
Decoding is used for determining the reference block corresponding with described current block according to described movable information at reference frame with reference to determining unit;
Decoding luminance compensation judging unit is used for judging whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
The decoding luminance compensation unit is used for when needs carry out luminance compensation to described current block the reconstructed value of described current block being carried out luminance compensation.
13. device as claimed in claim 12 is characterized in that, in the described decoding luminance compensation judging unit,
The peripheral information of described current block comprises: the peripheral reconstruction information of described current block or the coding mode of described current block or the motion vector of described current block;
The peripheral information of described reference block comprises: the motion vector of the peripheral reconstruction information of described reference block or the coding mode of described reference block or described reference block periphery reconstructed block.
14. such as claim 12 or 13 described devices, it is characterized in that, described decoding luminance compensation judging unit comprises when peripheral information according to the peripheral information of described current block and described reference block judges whether that current block carried out luminance compensation being used for:
Calculate ∑ (Ay i-Bx i), y wherein iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient;
As described ∑ (Ay i-Bx i) when being not equal to zero, determine current block is carried out luminance compensation.
15. such as claim 12 or 13 described devices, it is characterized in that, described decoding luminance compensation judging unit comprises when peripheral information according to the peripheral information of described current block and described reference block judges whether that current block carried out luminance compensation being used for:
When | ∑ (Ay i-Bx i) | during 〉=N, determine current block is carried out luminance compensation, wherein, y iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient, and N is the constant of determining according to the pixel number of peripheral information, and described peripheral information comprises the peripheral information of described current block and the peripheral information of described reference block.
16. such as claim 12 or 13 described devices, it is characterized in that, described decoding luminance compensation judging unit comprises when peripheral information according to the peripheral information of described current block and described reference block judges whether that current block carried out luminance compensation being used for:
Inconsistent when the brightness variation tendency of described reference block and described current block, and the variation tendency of the left area of the variation tendency of the upper edge region of described current block and described current block is determined when inconsistent current block is carried out luminance compensation.
17. a video coding apparatus is characterized in that, described device comprises:
The coding motion estimation unit is used for carrying out estimation at reference frame, obtains the movable information of current block;
The coded reference determining unit is used for determining the reference block corresponding with current block according to described movable information at described reference frame;
Coding luminance compensation judging unit is used for judging whether current block is carried out luminance compensation according to the peripheral information of described current block and the peripheral information of described reference block;
The coding luminance compensation unit is used for when needs carry out luminance compensation to described current block the predicted value of described current block being carried out luminance compensation;
Coding processing unit for the residual values that obtains described current block according to the predicted value behind the described luminance compensation, is carried out transform and quantization and entropy coding to described residual values.
18. device as claimed in claim 17 is characterized in that, in the described coding luminance compensation judging unit,
The peripheral information of described current block comprises: the peripheral reconstruction information of described current block or the coding mode information of described current block or the motion vector of described current block;
The peripheral information of described reference block comprises: the motion vector of the peripheral reconstruction information of described reference block or the coding mode information of described reference block or described reference block periphery reconstructed block.
19. device as claimed in claim 17 is characterized in that, described device also comprises:
The flag bit generation unit is used for generating the luminance compensation flag bit when needs carry out luminance compensation to described current block.
20. such as claim 17 or 18 described devices, it is characterized in that, described coding luminance compensation judging unit comprises when peripheral information according to the peripheral information of described current block and described reference block judges whether that current block carried out luminance compensation being used for:
Calculate ∑ (Ay i-Bx i), y wherein iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient;
As described ∑ (Ay i-Bx i) when being not equal to zero, determine current block is carried out luminance compensation.
21. such as claim 17 or 18 described devices, it is characterized in that, described coding luminance compensation judging unit comprises when peripheral information according to the peripheral information of described current block and described reference block judges whether that current block carried out luminance compensation being used for:
When | ∑ (Ay i-Bx i) | during 〉=N, determine current block is carried out luminance compensation, wherein, y iBe each peripheral information of current block, x iBe each peripheral information of reference block, A, B are weight coefficient, and N is the constant of determining according to the pixel number of peripheral information, and described peripheral information comprises the peripheral information of described current block and the peripheral information of described reference block.
22. such as claim 17 or 18 described devices, it is characterized in that, described coding luminance compensation judging unit comprises when peripheral information according to the peripheral information of described current block and described reference block judges whether that current block carried out luminance compensation being used for:
Inconsistent when the brightness variation tendency of described reference block and described current block, and the variation tendency of the left area of the variation tendency of the upper edge region of described current block and described current block is determined when inconsistent described current block is carried out luminance compensation.
CN 201010147572 2010-04-09 2010-04-09 Video coding and decoding methods and devices capable of realizing local luminance compensation Active CN102215389B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201010147572 CN102215389B (en) 2010-04-09 2010-04-09 Video coding and decoding methods and devices capable of realizing local luminance compensation
PCT/CN2011/072563 WO2011124157A1 (en) 2010-04-09 2011-04-09 Video coding and decoding method for local luminance compensation and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010147572 CN102215389B (en) 2010-04-09 2010-04-09 Video coding and decoding methods and devices capable of realizing local luminance compensation

Publications (2)

Publication Number Publication Date
CN102215389A CN102215389A (en) 2011-10-12
CN102215389B true CN102215389B (en) 2013-04-17

Family

ID=44746486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010147572 Active CN102215389B (en) 2010-04-09 2010-04-09 Video coding and decoding methods and devices capable of realizing local luminance compensation

Country Status (2)

Country Link
CN (1) CN102215389B (en)
WO (1) WO2011124157A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096050B (en) * 2011-11-04 2016-08-03 华为技术有限公司 The method and device of video image encoding and decoding
WO2016008161A1 (en) * 2014-07-18 2016-01-21 Mediatek Singapore Pte. Ltd. Temporal derived bi-directional motion vector predictor
US10356416B2 (en) * 2015-06-09 2019-07-16 Qualcomm Incorporated Systems and methods of determining illumination compensation status for video coding
US10887597B2 (en) 2015-06-09 2021-01-05 Qualcomm Incorporated Systems and methods of determining illumination compensation parameters for video coding
WO2016204360A1 (en) 2015-06-16 2016-12-22 엘지전자 주식회사 Method and device for predicting block on basis of illumination compensation in image coding system
CN107147911B (en) * 2017-07-05 2019-07-26 中南大学 Quick interframe coding mode selection method and device based on local luminance compensation LIC
CN111194553A (en) * 2017-10-05 2020-05-22 交互数字Vc控股公司 Method and apparatus for adaptive illumination compensation in video encoding and decoding
CN109889303B (en) * 2018-12-28 2021-10-22 努比亚技术有限公司 Video playing mode switching method and device and computer readable storage medium
CN113170152B (en) 2019-01-18 2023-07-07 华为技术有限公司 Method and apparatus for local luma compensation for predictive coding
CN113302916B (en) * 2019-01-27 2024-04-12 北京字节跳动网络技术有限公司 Interpolation for bi-prediction with CU level weights
WO2020155791A1 (en) * 2019-02-01 2020-08-06 华为技术有限公司 Inter-frame prediction method and device
CN116248891A (en) * 2019-03-14 2023-06-09 华为技术有限公司 Inter-frame prediction method and related device
WO2020233600A1 (en) * 2019-05-20 2020-11-26 Beijing Bytedance Network Technology Co., Ltd. Simplified local illumination compensation
CN116506619A (en) * 2022-04-27 2023-07-28 杭州海康威视数字技术股份有限公司 Decoding and encoding method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007108661A1 (en) * 2006-03-22 2007-09-27 Electronics And Telecommunications Research Institute Method and apparatus for encoding and decoding the compensated illumination change
WO2009084340A1 (en) * 2007-12-28 2009-07-09 Sharp Kabushiki Kaisha Moving image encoder and moving image decoder
CN101529921A (en) * 2006-10-18 2009-09-09 汤姆森特许公司 Method and apparatus for local illumination and color compensation without explicit signaling
CN101641954A (en) * 2007-03-23 2010-02-03 Lg电子株式会社 A method and an apparatus for decoding/encoding a video signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007108661A1 (en) * 2006-03-22 2007-09-27 Electronics And Telecommunications Research Institute Method and apparatus for encoding and decoding the compensated illumination change
CN101529921A (en) * 2006-10-18 2009-09-09 汤姆森特许公司 Method and apparatus for local illumination and color compensation without explicit signaling
CN101641954A (en) * 2007-03-23 2010-02-03 Lg电子株式会社 A method and an apparatus for decoding/encoding a video signal
WO2009084340A1 (en) * 2007-12-28 2009-07-09 Sharp Kabushiki Kaisha Moving image encoder and moving image decoder

Also Published As

Publication number Publication date
CN102215389A (en) 2011-10-12
WO2011124157A1 (en) 2011-10-13

Similar Documents

Publication Publication Date Title
CN102215389B (en) Video coding and decoding methods and devices capable of realizing local luminance compensation
CN101557514B (en) Method, device and system for inter-frame predicting encoding and decoding
CN111034194B (en) Method for coding and decoding video image and electronic equipment
US10715827B2 (en) Multi-hypotheses merge mode
US8553779B2 (en) Method and apparatus for encoding/decoding motion vector information
KR101512324B1 (en) Method of estimating motion vector using multiple motion vector predictors, apparatus, encoder, decoder and decoding method
KR101356735B1 (en) Mothod of estimating motion vector using global motion vector, apparatus, encoder, decoder and decoding method
KR101422422B1 (en) System and method for enhanced dmvd processing
CN101595735B (en) Method and apparatus for encoding video and method and apparatus for decoding video
US8155193B2 (en) Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, moving picture decoding method, moving picture encoding program, and moving picture decoding program
US20120230405A1 (en) Video coding methods and video encoders and decoders with localized weighted prediction
CN101816183A (en) Method and apparatus for inter prediction encoding/decoding an image using sub-pixel motion estimation
KR20080050114A (en) Method and apparatus for compensating illumination compensation and method and apparatus for encoding moving picture based on illumination compensation, and method and apparatus for encoding moving picture based on illumination compensation
CN101647281A (en) Method and apparatus for video encoding and decoding
JP2013225892A (en) Direct mode coding and decoding device
KR20090095012A (en) Method and apparatus for encoding and decoding image using consecutive motion estimation
EP2263382A2 (en) Method and apparatus for encoding and decoding image
KR101364532B1 (en) Method of estimating motion vector considering the size of neighboring partition, apparatus, encoder, decoder and decoding method
KR20100045959A (en) Bi-prediction coding method and apparatus, bi-prediction decoding method and apparatus, and recording midium
KR101647484B1 (en) Method and apparatus for encoding video

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