WO2011124157A1 - 一种局部亮度补偿的视频编解码方法及装置 - Google Patents
一种局部亮度补偿的视频编解码方法及装置 Download PDFInfo
- Publication number
- WO2011124157A1 WO2011124157A1 PCT/CN2011/072563 CN2011072563W WO2011124157A1 WO 2011124157 A1 WO2011124157 A1 WO 2011124157A1 CN 2011072563 W CN2011072563 W CN 2011072563W WO 2011124157 A1 WO2011124157 A1 WO 2011124157A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current block
- information
- block
- compensation
- peripheral
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods 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/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
Definitions
- Embodiments of the present invention relate to the field of communications, and in particular, to a video encoding and decoding method and apparatus for local luminance compensation.
- the luminance change between two blocks is calculated using the current block and the reference block, and then the reference block and the current block are encoded.
- Embodiments of the present invention provide a video encoding and decoding method, which reduces edge information in a code stream to improve coding efficiency.
- a method of decoding a video signal comprising: Receiving a video code stream, parsing coding mode information of the current block;
- the reconstructed value of the current block is subjected to luminance compensation.
- a method of encoding a video signal comprising:
- the predicted value of the current block is subjected to brightness compensation
- a device for video decoding comprising:
- a decoding information acquiring unit configured to receive a video code stream, parse coding mode information of the current block, and obtain motion information of the current block;
- a decoding reference determining unit configured to determine, in the reference frame, a reference block corresponding to the current block according to the motion information
- a decoding brightness compensation determining unit configured to use the peripheral information of the current block and the reference block The surrounding information determines whether the current block is subjected to brightness compensation
- a decoding brightness compensation unit configured to perform brightness compensation on the reconstructed value of the current block when the current block needs to be subjected to brightness compensation.
- a video encoding device includes:
- a coded motion estimation unit configured to perform motion estimation in a reference frame to obtain motion information of a current block
- an encoding reference determining unit configured to determine, in the reference frame, a reference block corresponding to the current block according to the motion information
- a coded brightness compensation determining unit configured to determine, according to the peripheral information of the current block and the surrounding information of the reference block, whether to perform brightness compensation on the current block;
- a coded brightness compensation unit configured to perform brightness compensation on a predicted value of the current block when it is required to perform brightness compensation on the current block
- an encoding processing unit configured to obtain a residual value of the current block according to the brightness compensated prediction value, perform transform and quantization, and entropy encoding the residual value.
- the video encoding and decoding method and device provided by the embodiment of the present invention first determine whether compensation is needed before performing brightness compensation, and at least when no compensation is needed, whether to perform brightness compensation, brightness compensation value, etc., may not be transmitted in the code stream. Correct the information to improve coding efficiency.
- FIG. 1 is a flowchart of a method for video encoding processing according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of a video code stream according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a method for video de-encoding processing according to an embodiment of the present invention.
- 4 is a schematic structural diagram of an apparatus for video coding according to an embodiment of the present invention.
- FIG. 4b is a schematic structural diagram of still another example of a device for video coding according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of an apparatus for video decoding according to an embodiment of the present invention.
- FIG. 5b is a schematic structural diagram of still another example of a device for video decoding according to an embodiment of the present invention. Detailed ways
- the embodiment of the invention provides a method for local brightness compensation in video processing.
- a flowchart of a method for video encoding processing includes: S101, performing motion estimation in a reference frame to obtain motion information of a current block;
- S105 Determine, according to the peripheral information of the current block and the peripheral information of the reference block, whether to perform brightness compensation on the current block.
- S 109 obtains a residual value of the current block according to the brightness compensated prediction value, transforms and quantizes the residual value, and entropy codes.
- the video encoding method provided by the embodiment of the present invention first determines whether compensation is needed before performing brightness compensation, and at least when no compensation is needed, whether to perform brightness compensation, brightness compensation information, and the like, and brightness correction information may be not transmitted in the code stream. Improve coding efficiency.
- FIG. 2 a code stream diagram
- the motion information of the previous block C finds the corresponding reference block R in its reference frame Ft-1 while utilizing the reconstruction value Y around the current block C (for example, taking the "L-shaped" between the upper 4 rows and the left 4 columns. Partially reconstructed value), and the value X around the reference block R (for example, Y and X shown in the figure are "L" type blocks around the current block and the reference block, respectively), and are judged according to X and Y using the up-left criterion. Perform brightness compensation on the current block.
- the peripheral information of the current block may include peripheral reconstruction information of the current block, encoding mode information of the current block, such as whether the current block is an inter-coded 16x16 block, whether it is a DMVD (decoding end motion information derivable) block, or the current The motion vector of the block.
- the peripheral information of the reference block may include peripheral reconstruction information of the reference block, an encoding mode of the reference block, or a motion vector of the reference block surrounding reconstruction block.
- the sum of the differences between the pixels of the current template Y and the reference template X is not equal to 0, that is, when there is a brightness change between the templates Y and X, the up-left criterion is satisfied, otherwise the up-left criterion is not met.
- a and B are weights, respectively.
- the judgment criterion assumes that when the template region Y is inconsistent with the brightness variation trend of the current block C, the change trend of the upper edge Up of the current block is also inconsistent with the change trend of the left edge of the current block. It is also assumed that the difference in brightness between the template of the matching block and the matching block is small, and the brightness of the template is consistent with that of the MB.
- Up_curr is the upper reconstructed pixel of the current block
- Up_ref is the upper reconstructed pixel of the current block corresponding reference block
- Left_curr and Left_ref are the reconstructed pixels to the left of the current block and the reference block, respectively
- TM_Offset is the luminance difference in X and Y in FIG. .
- a cost function RDCOST1 (which may be referred to as a first value) using the residual value between the current block C and the reference block R, and a residual value between the current block C and the reference block R are respectively calculated.
- Compare RDCOST1 and RDCOST2 (which can be called the second value) using the luminance difference IDCO corrected cost function RDCOST2.
- RDCOST is 2 hours, the flag IDCO_flag that needs to perform brightness compensation in the code stream is equal to 1, the residual value corrected by the luminance difference IDCO is encoded or the predicted value is firstly compensated by IDCO, and then the brightness is compensated.
- Predicted value Measure the current block. It can be expressed as:
- C (i) represents the pixel value of the current block at the i position
- R (i) represents the predicted value of the corresponding predicted block at the i position
- IDCO represents the luminance difference calculated using the current template and the reference template.
- the current block's parameter (i) - R (i), where C (i) represents the pixel value of the current block at position i, and R (i) represents the predicted value of the corresponding prediction block at position i.
- the luminance compensation flag IDCO_flag is not required to be transmitted in the code stream, and the current current block is directly predicted by using the reference block corresponding to the current block, and the residual information is encoded.
- the residual value of the current block is then obtained based on the luminance compensated prediction value, and the residual value is transformed and quantized and entropy encoded. Complete the encoding process of the video.
- the video encoding method provided by the embodiment of the present invention first determines whether compensation is needed before performing brightness compensation, and at least when no compensation is needed, whether to perform brightness compensation, brightness compensation information, and the like, and brightness correction information may be not transmitted in the code stream. Improve coding efficiency.
- the compensation method may be to use the luminance difference value obtained by using the peripheral information of the current block and the peripheral information of the reference block, and performing luminance compensation on the predicted value of the current block by using the luminance difference value.
- the current block is predicted directly by using the reference block corresponding to the current block. The system can be selected in the above two ways as needed.
- the video coding method provided by the embodiment of the present invention first determines whether it is needed before performing brightness compensation. For compensation, when it is necessary to directly compensate, the compensation is directly performed. When the compensation is not needed, it is possible to transmit whether the brightness compensation is performed in the code stream, and the brightness correction information such as the brightness compensation value, thereby improving the coding efficiency.
- the present invention further provides an embodiment of video decoding.
- the decoding process includes: S201, receiving a video code stream, parsing coding mode information of a current block, and obtaining motion information of a current block;
- S203 determining, according to the motion information, a reference block corresponding to the current block in the reference frame
- S205 determining, according to the peripheral information of the current block, and surrounding information of the reference block, whether to perform brightness compensation on the current block
- the video decoding method provided by the embodiment of the present invention first determines whether compensation is needed before performing the brightness compensation, and at least when the compensation is not needed, whether to perform brightness compensation or brightness correction information such as a brightness compensation value may be not transmitted in the code stream. Improve coding efficiency.
- FIG. 2 is a code stream diagram.
- the motion information of the current block is first decoded from the code stream, and the corresponding block is found in the corresponding reference frame according to the obtained motion vector, and the motion information of the current block C is used in its reference frame Ft.
- the corresponding reference block R is found in -1, and the peripheral information Y of the current block C and the peripheral information of the reference block R are used at the same time (for example, ⁇ and X shown in the figure are the "L" type of the current block and the reference block respectively.
- Block based on X and ⁇ establish an up-left criterion decision method.
- the up-left criterion is the same as the judgment criterion in the encoding method.
- the peripheral information of the current block may include reconstruction information of the periphery of the current block (on the left or upper side of the current block), coding mode information of the current block, such as whether the current block is inter-frame Encodes a 16x16 block, whether it is a DMVD (decoding side motion information derivable) block or a motion vector of the current block.
- the peripheral information of the reference block may include peripheral reconstruction information of the reference block, or a motion vector of the reference block perimeter reconstruction block.
- the luminance compensation flag bit IDCO_flag is decoded from the code stream, when IDCO_flag is equal to 1 (first parameter value) , using the perimeter reconstruction values X and Y as shown in Figure 1, to obtain the luminance difference IDCO between them,
- IDCO ⁇ ( CiyrCsX! ) /N
- C 2 is a coefficient, which may be taken as 1 in the embodiment, or may be obtained by linear fitting according to the peripheral reconstructed pixel of the current block and the peripheral reconstructed pixel of the reference block, and yi and Xl are the peripheral information of the current block. And each pixel value in the peripheral information X of the reference block, and N represents the number of pixels of the peripheral information. Using the obtained luminance difference IDCO, the brightness of the reconstructed value of the current block is compensated,
- the reconstruction value of the current block 1? ⁇ ( i ) +R ( i ) +IDCO,
- Res ( i ) is the residual signal decoded in the code stream.
- IDCO_flag is equal to 0 (the second parameter value)
- the current block is reconstructed directly by using the reference block corresponding to the current block.
- Res ( i ) is the residual signal decoded in the code stream.
- the video decoding method provided by the embodiment of the present invention determines whether it is needed before performing brightness compensation.
- the compensation is performed, at least when no compensation is required, whether or not brightness compensation, brightness compensation information, and the like can be transmitted in the code stream to improve the coding efficiency.
- the compensation method may be to use the luminance difference value obtained by using the peripheral information of the current block and the peripheral information of the reference block, and performing luminance compensation on the reconstructed value of the current block by using the luminance difference value.
- the current block is reconstructed directly by using the reference block corresponding to the current block.
- the system can be selected in the above two ways as needed.
- the video coding method provided by the embodiment of the present invention first determines whether compensation is needed before performing the brightness compensation, and directly compensates when the compensation needs to be directly performed, and does not transmit whether the brightness compensation is performed in the code stream without compensation. And brightness correction information such as brightness compensation value to improve coding efficiency.
- the present invention can be implemented by means of software plus the necessary general purpose hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a disk, An optical disk or the like includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
- a computer device which may be a personal computer, server, or network device, etc.
- Embodiments of the present invention further provide an apparatus for processing a video signal.
- the video encoding device 40 includes:
- the coded motion estimation unit 401 is configured to perform motion estimation in the reference frame to obtain motion information of the current block.
- the encoding reference determining unit 403 is configured to determine, in the reference frame, a reference block corresponding to the current block according to the motion information;
- a coded brightness compensation determining unit 405 configured to use the surrounding information of the current block and the reference The peripheral information of the block determines whether the current block is subjected to brightness compensation;
- the coded brightness compensation unit 407 is configured to perform brightness compensation on the reconstructed value of the current block when it is required to perform brightness compensation on the current block.
- the encoding processing unit 409 is configured to obtain, according to the brightness compensated prediction value, a residual value of the current block, transform and quantize the residual value, and entropy encode.
- the device for video coding provided by the embodiment of the present invention first determines whether compensation is needed before performing brightness compensation, and at least when no compensation is needed, whether brightness compensation or brightness correction information such as brightness compensation value is not transmitted in the code stream is not performed. Improve coding efficiency.
- the encoding motion estimation unit 401 when encoding the current macroblock, the encoding motion estimation unit 401 first performs motion estimation in the reference frame according to the current block to obtain motion information of the current block, and the encoding reference determining unit 403 obtains The motion vector finds the corresponding block in the corresponding reference frame, and uses the motion information of the current block C to find the corresponding reference block R in its reference frame Ft-1 while using the reconstruction value Y around the current block C (for example Take the "L-shaped" partial reconstruction value between the upper 4 rows and the left 4 columns), and the value X around the reference block R (for example, Y and X shown in the figure are the "L" around the current block and the reference block, respectively.
- the reconstruction value Y around the current block C for example Take the "L-shaped" partial reconstruction value between the upper 4 rows and the left 4 columns
- the value X around the reference block R for example, Y and X shown in the figure are the "L” around the current block and the reference block, respectively.
- the luma compensation determination unit 405 establishes an up-left criterion based on X and Y to determine whether or not to perform luminance compensation on the current block.
- the peripheral information of the current block may include peripheral reconstruction information of the current block, encoding mode information of the current block, such as whether the current block is an inter-coded 16x16 block, whether it is a DMVD (decoding end motion information derivable) block, or the current The motion vector of the block.
- the peripheral information of the reference block may include peripheral reconstruction information of the reference block, an encoding mode of the reference block, or a motion vector of the reference block surrounding reconstruction block.
- the coded brightness compensation unit 407 performs brightness compensation on the reconstructed value of the current block when it is necessary to perform brightness compensation on the current block.
- the encoding processing unit 409 further obtains a residual value of the current block according to the predicted value after the brightness compensation, and the residual value The values are transformed and quantized and entropy encoded.
- the coded brightness compensation determining unit 405 determines whether or not to perform brightness compensation on the current block according to the aforementioned up-left criterion.
- the apparatus may further include a calculation unit 411 and a flag generation unit 413.
- the encoding brightness compensation unit 407 performs brightness compensation on the predicted value of the current block by using the brightness difference value, and the flag bit generating unit sets the flag as the first parameter value;
- the encoding luminance compensation unit 407 directly predicts the current block using the reference block corresponding to the current block.
- the calculation unit 411 calculates a cost function RDCOST1 (which may be referred to as a first value) using the residual value between the current block C and the reference block R, respectively, and between the current block C and the reference block R.
- the residual value is compared with the cost function RDCOST2 corrected by the luminance difference IDCO, and RDCOST1 and RDCOST2 (which may be referred to as the second value) are compared.
- RDCOST is 2 hours, the flag IDCO_flag that needs to be lubricated in the code stream is equal to 1, the residual value corrected by the luminance difference IDCO is encoded or the predicted value is firstly compensated by IDCO, and then the brightness is compensated.
- the predicted value predicts the current block. It can be expressed as:
- C (i) represents the pixel value of the current block at the i position
- R (i) represents the predicted value of the corresponding predicted block at the i position
- IDCO represents the luminance difference calculated using the current template and the reference template.
- the difference of the current block (i) - R (i), where C (i) represents the pixel of the current block at the i position
- the value, R ( i ), represents the predicted value of the corresponding prediction block at the i position.
- the luminance compensation flag IDCO_flag is not required to be transmitted in the code stream, and the current current block is directly predicted by using the reference block corresponding to the current block, and the residual information is encoded.
- the encoding processing unit 409 then obtains the residual value of the current block based on the luminance compensated prediction value, transforms and quantizes the residual value, and entropy codes. Complete the encoding process of the video.
- the device for video coding provided by the embodiment of the present invention first determines whether compensation is needed before performing brightness compensation, and at least when no compensation is needed, whether brightness compensation or brightness correction information such as brightness compensation value is not transmitted in the code stream is not performed. Improve coding efficiency.
- the luminance compensation unit 407 may be a luminance difference value obtained by using the peripheral information of the current block and the peripheral information of the reference block, and performing luminance compensation on the predicted value of the current block by using the luminance difference value.
- the luminance compensation unit 407 directly predicts the current block using the reference block corresponding to the current block. The system can be selected in the above two ways as needed.
- the video coding method provided by the embodiment of the present invention first determines whether compensation is needed before performing the brightness compensation, and directly compensates when the compensation needs to be directly performed, and does not transmit whether the brightness compensation is performed in the code stream without compensation. And brightness correction information such as brightness compensation value to improve coding efficiency.
- an embodiment of the present invention provides a video decoding apparatus.
- FIG. 5 a schematic structural diagram of a device for video decoding according to an embodiment of the present invention is shown.
- the video decoding device 50 includes:
- the decoding information acquiring unit 501 is configured to receive a video code stream, parse the coding mode information of the current block, and obtain motion information of the current block.
- a decoding reference determining unit 503 configured to determine, in the reference frame, a reference block corresponding to the current block according to the motion information
- the decoding brightness compensation determining unit 505 is configured to determine, according to the peripheral information of the current block and the surrounding information of the reference block, whether to perform brightness compensation on the current block;
- the decoding brightness compensation unit 507 is configured to perform brightness compensation on the reconstructed value of the current block when it is required to perform brightness compensation on the current block.
- the device for decoding a video first determines whether compensation is needed before performing brightness compensation, and at least when no compensation is needed, whether to perform brightness compensation, brightness correction information, and the like, and brightness correction information, may be not transmitted in the code stream. Improve coding efficiency.
- the decoding information acquiring unit 501 first decodes the motion information of the current block from the code stream, and the decoding reference determining unit 503 is in the corresponding reference frame according to the obtained motion vector.
- the decoding luminance compensation judging unit 505 establishes an up-left criterion decision method based on X and ⁇ .
- the up-left criterion is the same as the judgment criterion in the encoding method.
- the peripheral information of the current block may include reconstruction information of the periphery of the current block (on the left or upper side of the current block), and encoding mode information of the current block, such as whether the current block is an inter-coded 16x16 block, whether it is a DMVD (decoding)
- the end motion information may derive a motion vector of the block or the current block.
- the peripheral information of the reference block may include peripheral reconstruction information of the reference block, or a motion vector of the reference block peripheral reconstruction block.
- a flag processing module 511 can be included in the brightness compensation unit.
- the flag processing module 511 decodes the brightness compensation flag bit IDCO_flag from the code stream, when the brightness compensation flag When the bit is the first parameter value, the brightness compensation unit 507 utilizes the surrounding information and the location of the current block. a brightness difference obtained by using the peripheral information of the reference block, and performing brightness compensation on the reconstructed value of the current block by using the brightness difference value; when the brightness compensation flag is the second parameter value, the decoding brightness compensation unit 507 directly The current block is reconstructed using the reference block corresponding to the current block.
- IDCO ⁇ ( CiyrCsX! ) /N
- C 2 is a coefficient, which may be taken as 1 in this embodiment, or may be obtained by linear fitting according to the peripheral reconstructed pixel of the current block and the peripheral reconstructed pixel of the reference block, 1 ⁇ 4,
- Xl is the peripheral information of the current block Y
- the pixel value in the peripheral information X of the reference block, and N indicates the number of pixels of the peripheral information indicating the number of pixels.
- the reconstruction value of the current block 1? ⁇ ( i ) +R ( i ) +IDCO,
- Res ( i ) is the residual signal decoded in the code stream.
- IDCO_flag is equal to 0 (the second parameter value)
- the current block is reconstructed directly by using the reference block corresponding to the current block.
- Res ( i ) is the residual signal decoded in the code stream.
- the device for decoding a video first determines whether compensation is needed before performing brightness compensation, and at least when no compensation is needed, whether to perform brightness compensation, brightness correction information, and the like, and brightness correction information, may be not transmitted in the code stream. Improve coding efficiency. Further, in another embodiment of the decoding of the present invention, when it is determined that the current block needs to be subjected to the brightness compensation, the flag bit is not decoded, but the compensation method is directly selected.
- the decoding luminance compensation unit 507 may be a luminance difference value obtained by using the peripheral information of the current block and the peripheral information of the reference block, and performing luminance compensation on the reconstructed value of the current block by using the luminance difference value. Alternatively, the decoding luminance compensation unit 507 directly reconstructs the current block by using the reference block corresponding to the current block.
- the system can be selected in the above two ways as needed.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Description
一种局部亮度补偿的视频编解码方法 置 技术领域
本发明实施例涉及通信领域,尤其涉及一种局部亮度补偿的视频编解码方 法及装置。
背景技术
在视频编码中, 由于亮度的变化或特技的需要, 经常会出现连续的帧内容 相似但是亮度变化很大的编码场景, 为了有效编码这类场景, 需要进行亮度补 偿。加权预测补偿相邻两帧之间由于光照等条件的变化带来的亮度差异, 可以 提高帧间预测的效率。 目前, H.264使用帧层加权预测对整帧亮度变化进行补 偿, 但这种方法不能补偿局部亮度变化。
为了实现局部的亮度和色度的补偿, 在 ITU和 MPEG的联合视频工作组 JVT的 MVC中曾经作过利用当前块和参考块计算出两块之间的亮度变化, 然 后编码参考块和当前块之间经过亮度校正后的残差,同时在码流中传递亮度校 正信息的方法。 当解码端接收到残差信息后, 利用参考帧进行运动补偿, 再根 据传递过来的亮度校正信息对重建图像进行亮度补偿, 得到校正后的重建图 像。
因此现有的视频编解码技术中需要在码流中传递是否进行亮度补偿,以及 亮度补偿值等亮度校正信息, 导致码流边信息增多, 编码效率有待提高。 发明内容
本发明实施例提供一种视频编解码的方法, 该方法减少在码流中的边信 息, 以提高编码效率。
一种解码视频信号的方法, 所述方法包括:
接收视频码流, 解析当前块的编码模式信息;
获得所述当前块的运动信息;
根据所述运动信息在参考帧中确定与所述当前块对应的参考块; 根据所述当前块的周边信息和所述参考块的周边信息判断是否对所述当 前块进行亮度补偿;
当需要对所述当前块进行亮度补偿时,对所述当前块的重建值进行亮度补 偿。
一种编码视频信号的方法, 所述方法包括:
在参考帧中进行运动估计, 获得当前块的运动信息;
根据所述运动信息在所述参考帧中确定与当前块对应的参考块; 根据所述当前块的周边信息和所述参考块的周边信息判断是否对当前块 进行亮度补偿;
当需要对所述当前块进行亮度补偿时,对所述当前块的预测值进行亮度补 偿;
根据所述亮度补偿后的预测值获得所述当前块的残差值,对所述残差值进 行变换和量化以及熵编码。
一种视频解码的装置, 包括:
解码信息获取单元, 用于接收视频码流, 解析当前块的编码模式信息, 获 得所述当前块的运动信息;
解码参考确定单元,用于根据所述运动信息在所述参考帧中确定与当前块 对应的参考块;
解码亮度补偿判断单元,用于根据所述当前块的周边信息和所述参考块的
周边信息判断是否对当前块进行亮度补偿;
解码亮度补偿单元, 用于当需要对所述当前块进行亮度补偿时,对所述当 前块的重建值进行亮度补偿。
一种视频编码装置, 包括:
编码运动估计单元, 用于在参考帧中进行运动估计, 获得当前块的运动信 息;
编码参考确定单元,用于根据所述运动信息在所述参考帧中确定与当前块 对应的参考块;
编码亮度补偿判断单元,用于根据所述当前块的周边信息和所述参考块的 周边信息判断是否对当前块进行亮度补偿;
编码亮度补偿单元, 用于当需要对所述当前块进行亮度补偿时,对所述当 前块的预测值进行亮度补偿;
编码处理单元,用于根据所述亮度补偿后的预测值获得所述当前块的残差 值, 对所述残差值进行变换和量化以及熵编码。
本发明实施例提供的视频编解码的方法及装置,在进行亮度补偿前先判断 是否需要进行补偿,至少当不需要补偿时可以在码流中不传递是否进行亮度补 偿, 以及亮度补偿值等亮度校正信息, 提高编码效率。 附图说明
图 1是本发明实施例视频编码处理的方法流程图。
图 2是本发明实施例视频码流示意图。
图 3是本发明实施例视频解编码处理的方法流程图。
图 4是本发明实施例视频编码的装置结构示意图。
图 4b是本发明实施例视频编码的装置又一例的结构示意图。
图 5是本发明实施例视频解码的装置结构示意图。
图 5b是本发明实施例视频解码的装置又一例的结构示意图。 具体实施方式
本发明实施例给出一套视频处理中局部亮度补偿的方法。
参阅图 1, 视频编码处理的方法流程图, 本实施例中, 编码的处理包括: S 101 , 在参考帧中进行运动估计, 获得当前块的运动信息;
S 103 , 根据所述运动信息在所述参考帧中确定与当前块对应的参考块;
S 105,根据所述当前块的周边信息和所述参考块的周边信息判断是否对当 前块进行亮度补偿;
S 107 , 当需要对所述当前块进行亮度补偿时,对所述当前块的预测值进行 亮度补偿;
S 109 根据所述亮度补偿后的预测值获得所述当前块的残差值, 对所述残 差值进行变换和量化以及熵编码。
本发明实施例提供的视频编码的方法,在进行亮度补偿前先判断是否需要 进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步, 作为编码处理的又一实施例, 参阅图 2, 码流示意图。
当编码当前宏块时, 先根据当前块, 在参考帧中进行运动估计, 得到当前 块的运动信息,根据得到的运动矢量在对应的参考帧中找到对应的块, 利用当
前块 C的运动信息, 在它的参考帧 Ft-1 中找到对应的参考块 R, 同时利用当 前块 C周边的重建值 Y (例如取上边 4行和左边 4列之间的 "L形"部分重建 值), 和参考块 R周边的值 X (例如, 图中所示 Y和 X分别是当前块和参考块 周边的 "L" 型块), 根据 X和 Y使用 up-left准则判断是否对当前块进行亮度 补偿。 当前块的周边信息可以包括所述当前块的周边重建信息, 当前块的编码 模式信息, 如当前块是否为帧间编码 16x16块, 是否为 DMVD (解码端运动 信息可推导)块或所述当前块的运动向量。参考块的周边信息可以包括所述参 考块的周边重建信息,所述参考块的编码模式或所述参考块周边重建块的运动 向量。
up-left准则判决方法 1:
设当前模板 Y中各像素的值为 yi,,参考模板 X中各像素的值为 xi, 当满足公式( 1 )
∑ ( Ayi-Bxi ) != 0 ( 1 )
即当前模板 Y和参考模板 X各像素相减的差之和不等于 0 , 也即模板 Y 和 X之间有亮度变化时, 为满足 up-left准则, 否则为不符合 up-left准则。 其 中 A和 B分别是权重, 本实施例中取 A=B=1,也可以根据加权关系取其他值。
up-left准则判决方法 2:
设 Y中各像素的值为 yi,, X中各像素的值为 xi, 当满足公式( 2 ) |∑ ( Ayi-Bxi ) | >= N ( 2 )
即当 Y和 X各像素相减的差之和的绝对值大于等于 Ν, Ν为根据周边信 息的象素个数确定的常数(如 Α=Β=1,Ν为模板象素个数和的一半) , 也即 Υ 和 X有较大亮度变化(当 Α=Β=1 )时, 为满足 up-left准则, 否则 Y和 X之间
亮度基本相似, 为不符合 up-left准则。 其中 A和 B分别是权重。
up-left准则判决方法 3:
该判断准则假设,当模板区域 Y与当前块 C的亮度变化趋势不一致时, 当前块的上边 Up的变化趋势与当前块的左边 Left的变化趋势也不一致。此外 还假设, 匹配块的模板与匹配块的亮度差异很小时,模板与 MB的亮度变化趋 势是一致的。
则 up-left准则判决方法 3如下:
当满足公式(3 )
I Up curr - Up ref - Ί —Offset | < Up curr - Up ref | ( 3 )
并且 (Up_curr - Up ref - TM Offset) < ^ (Up curr - Up_ref)
并且∑l Left_curr- Left ref- ΊΜ—Offset | < Left curr- Left_ref|
并且∑(Left_curr- Left ref- TM Offset) < ^(Left curr- Left ref)
为满足 up-left准则, 否则为不符合 up-left准则。 其中 Up_curr是当前块 的上边重建像素, Up_ref 是当前块对应参考块的上边重建像素, Left_curr和 Left_ref分别是当前块和参考块左边的重建像素, 而 TM_Offset是图 1中 X和 Y中的亮度差。
当满足 up-left准则时, 分别计算利用当前块 C和参考块 R之间残差值的 代价函数 RDCOST1 , (可以称为第一数值),和当前块 C和参考块 R之间残差 值利用亮度差值 IDCO 校正后的代价函数 RDCOST2 , 比较 RDCOST1 和 RDCOST2 (可以称为第二数值)。 当 RDCOST2小时, 在码流中传递标记需要 进行亮度补偿的标志位 IDCO_flag等于 1, 编码利用亮度差值 IDCO校正后的 残差值或者先利用 IDCO对预测值进行亮度补偿,再用亮度补偿后的预测值预
测当前块。 可以表示为:
当前块的参差值= (i) - R (i) -IDCO,
其中 C (i)表示当前块在 i位置的象素值, R (i)表示对应的预测块在 i 位置的预测值, IDCO表示利用当前模板和参考模板计算得到的亮度差值。
当 RDCOST2大于等于 RDCOST1时,在码流中传递标记不需要进行亮度 补偿, 可使标志位 IDCO_flag等于 0, 直接利用当前块对应的参考块预测当前 当前块, 编码残差, 可以表示为:
当前块的参差值= (i) - R (i),其中 C (i)表示当前块在 i位置的象素 值, R (i)表示对应的预测块在 i位置的预测值,。
当不满足 up-left准则时,不需要在码流中传递亮度补偿标记 IDCO_flag, 直接利用当前块对应的参考块预测当前当前块, 编码残差信息。
然后根据亮度补偿后的预测值获得所述当前块的残差值,对所述残差值进 行变换和量化以及熵编码。 完成视频的编码处理。
本发明实施例提供的视频编码的方法,在进行亮度补偿前先判断是否需要 进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步本发明视频编码的又一实施例,当确定需要对当前块进行亮度补偿 后, 不增加标志位, 而是直接选择补偿方法。 补偿方法可以是利用所述当前块 的周边信息和所述参考块的周边信息得到的亮度差值,利用亮度差值对当前块 的预测值进行亮度补偿。 或者, 直接利用当前块对应的参考块预测当前块。 系 统可根据需要在上述两种方式中选择。
本发明实施例提供的视频编码的方法,在进行亮度补偿前先判断是否需要
进行补偿, 当需要直接进行补偿后, 直接进行补偿, 不需要补偿时可以在码流 中不传递是否进行亮度补偿,以及亮度补偿值等亮度校正信息,提高编码效率。
同时本发明进一步提供视频解码的实施例。
参阅图 3, 视频解码处理的方法流程图, 本实施例中, 解码的处理包括: S201 ,接收视频码流, 解析当前块的编码模式信息, 获得当前块的运动信 息;
S203, 根据所述运动信息在所述参考帧中确定与当前块对应的参考块; S205,根据所述当前块的周边信息和所述参考块的周边信息判断是否对当 前块进行亮度补偿;
S207 , 当需要对所述当前块进行亮度补偿时,对所述当前块的重建值进行 亮度补偿。
本发明实施例提供的视频解码的方法,在进行亮度补偿前先判断是否需要 进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步, 作为解码处理的又一实施例, 继续参阅图 2, 码流示意图。
当解码当前宏块时,先从码流中解码出当前块的运动信息,根据得到的运 动矢量在对应的参考帧中找到对应的块, 利用当前块 C 的运动信息, 在它的 参考帧 Ft- 1 中找到对应的参考块 R, 同时利用当前块 C的周边信息 Y, 和参 考块 R的周边信息 Χ(例如图中所示 Υ和 X分别是当前块和参考块周边的" L" 型块), 根据 X和 Υ建立 up-left准则判决方法。 这里 up-left准则同编码方法 中的判断准则相同。 当前块的周边信息可以包括所述当前块的周边(和当前块 相邻在左边或上边)重建信息, 当前块的编码模式信息, 如当前块是否为帧间
编码 16x16块, 是否为 DMVD (解码端运动信息可推导)块或所述当前块的 运动向量。 参考块的周边信息可以包括所述参考块的周边重建信息,或所述参 考块周边重建块的运动向量。
当满足 up-left准则后根据当前块的周边信息和参考块的周边信息, 当满 足局部亮度变化条件时, 从码流中解码亮度补偿标志位 IDCO_flag,当 IDCO_flag等于 1 (第一参数值)时, 利用如图 1中的周边重建值 X和 Y得到 它们之间的亮度差值 IDCO,
IDCO = ∑ ( CiyrCsX! ) /N
其中 d,C2是系数, 本实施例中可以取 1, 也可以根据当前块的周边重建 象素和参考块的周边重建象素进行线性拟合得到, yi, Xl为当前块的周边信息 Y和参考块的周边信息 X中各象素值, N表示周边信息的象素个数。 利用得 到的亮度差值 IDCO, 对当前块的重建值进行亮度补偿,
当前块的重建值=1?^ ( i ) +R ( i ) +IDCO,
其中 Res ( i )是码流中解码出的残差信号。
否则, 当 IDCO_flag等于 0时(第二参数值), 直接利用当前块对应的参 考块重建当前块,
当前块的重建值 =Res ( i ) +R ( i ),
其中 Res ( i )是码流中解码出的残差信号。
当不满足 up-left准则时,不需要从码流中解码亮度补偿标志位 IDCO_flag, 直接推导得到 IDCO_flag=0, 直接利用当前块对应的参考块重建当前块, 而不 需要亮度补偿。
本发明实施例提供的视频解码的方法,在进行亮度补偿前先判断是否需要
进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步,本发明解码的又一实施例,当确定需要对当前块进行亮度补偿后, 不解码标志位, 而是直接选择补偿方法。补偿方法可以是利用所述当前块的周 边信息和所述参考块的周边信息得到的亮度差值,利用亮度差值对当前块的重 建值进行亮度补偿。 或者, 直接利用当前块对应的参考块重建当前块。 系统可 用根据需要在上述两种方式中选择。
本发明实施例提供的视频编码的方法,在进行亮度补偿前先判断是否需要 进行补偿, 当需要直接进行补偿后, 直接进行补偿, 不需要补偿时可以在码流 中不传递是否进行亮度补偿,以及亮度补偿值等亮度校正信息,提高编码效率。
本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬 件平台的方式来实现。基于这样的理解, 本发明的技术方案本质上或者说对现 有技术做出贡献的部分可以软件产品的形式体现出来,该计算机软件产品可以 存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使 得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等)执行 本发明各个实施例或者实施例的某些部分所述的方法。
本发明实施例进一步提供处理视频信号的装置。
参阅图 4, 本发明实施例视频编码的装置结构示意图。该视频编码装置 40 包括:
编码运动估计单元 401, 用于在参考帧中进行运动估计, 获得当前块的运 动信息;
编码参考确定单元 403, 用于根据所述运动信息在所述参考帧中确定与当 前块对应的参考块;
编码亮度补偿判断单元 405, 用于根据所述当前块的周边信息和所述参考
块的周边信息判断是否对当前块进行亮度补偿;
编码亮度补偿单元 407, 用于当需要对所述当前块进行亮度补偿时, 对所 述当前块的重建值进行亮度补偿。
编码处理单元 409, 用于根据所述亮度补偿后的预测值获得所述当前块的 残差值, 对所述残差值进行变换和量化以及熵编码。
本发明实施例提供的视频编码的装置,在进行亮度补偿前先判断是否需要 进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步作为又一个实施例, 参阅图 4b, 当编码当前宏块时, 编码运动估 计单元 401先根据当前块,在参考帧中进行运动估计,得到当前块的运动信息, 编码参考确定单元 403根据得到的运动矢量在对应的参考帧中找到对应的块, 利用当前块 C的运动信息, 在它的参考帧 Ft-1 中找到对应的参考块 R, 同时 利用当前块 C周边的重建值 Y (例如取上边 4行和左边 4列之间的 "L形"部 分重建值), 和参考块 R周边的值 X (例如, 图中所示 Y和 X分别是当前块和 参考块周边的 "L" 型块), 亮度补偿判断单元 405根据 X和 Y建立 up-left准 则判断是否对当前块进行亮度补偿。当前块的周边信息可以包括所述当前块的 周边重建信息, 当前块的编码模式信息, 如当前块是否为帧间编码 16x16块, 是否为 DMVD (解码端运动信息可推导)块或所述当前块的运动向量。 参考 块的周边信息可以包括所述参考块的周边重建信息,所述参考块的编码模式或 所述参考块周边重建块的运动向量。编码亮度补偿单元 407在当需要对所述当 前块进行亮度补偿时, 对所述当前块的重建值进行亮度补偿。 编码处理单元 409, 再根据所述亮度补偿后的预测值获得所述当前块的残差值, 对所述残差
值进行变换和量化以及熵编码。
其中编码亮度补偿判断单元 405根据前述的 up-left准则判断是否对当前 块进行亮度补偿。
该装置还可以包括计算单元 411和标志位生成单元 413。 当第一数值大于 所述第二数值时,编码亮度补偿单元 407利用所述亮度差值对当前块的预测值 进行亮度补偿, 标志位生成单元将标志为设为第一参数值; 当第一数值不大于 所述第二数值时,编码亮度补偿单元 407直接利用当前块对应的参考块预测当 前块。
当满足 up-left准则时, 计算单元 411分别计算利用当前块 C和参考块 R 之间残差值的代价函数 RDCOSTl, (可以称为第一数值), 和当前块 C和参考 块 R之间残差值利用亮度差值 IDCO 校正后的代价函数 RDCOST2, 比较 RDCOST1和 RDCOST2 (可以称为第二数值)。 当 RDCOST2小时, 在码流中 传递标记需要进行亮度补偿的标志位 IDCO_flag 等于 1, 编码利用亮度差值 IDCO校正后的残差值或者先利用 IDCO对预测值进行亮度补偿, 再用亮度补 偿后的预测值预测当前块。 可以表示为:
当前块的参差值= (i) - R (i) -IDCO,
其中 C (i)表示当前块在 i位置的象素值, R (i)表示对应的预测块在 i 位置的预测值, IDCO表示利用当前模板和参考模板计算得到的亮度差值。
当 RDCOST2大于等于 RDCOST1时,在码流中传递标记不需要进行亮度 补偿, 可使标志位 IDCO_flag等于 0, 直接利用当前块对应的参考块预测当前 当前块, 编码残差, 可以表示为:
当前块的参差值= (i) - R (i),其中 C (i)表示当前块在 i位置的象素
值, R ( i )表示对应的预测块在 i位置的预测值。
当不满足 up-left准则时,不需要在码流中传递亮度补偿标记 IDCO_flag, 直接利用当前块对应的参考块预测当前当前块, 编码残差信息。
然后编码处理单元 409根据亮度补偿后的预测值获得所述当前块的残差 值, 对所述残差值进行变换和量化以及熵编码。 完成视频的编码处理。
本发明实施例提供的视频编码的装置,在进行亮度补偿前先判断是否需要 进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步本发明视频编码的又一实施例,当确定需要对当前块进行亮度补偿 后, 不增加标志位, 而是直接选择补偿方法。 亮度补偿单元 407可以是利用所 述当前块的周边信息和所述参考块的周边信息得到的亮度差值,利用亮度差值 对当前块的预测值进行亮度补偿。或者, 亮度补偿单元 407直接利用当前块对 应的参考块预测当前块。 系统可根据需要在上述两种方式中选择。
本发明实施例提供的视频编码的方法,在进行亮度补偿前先判断是否需要 进行补偿, 当需要直接进行补偿后, 直接进行补偿, 不需要补偿时可以在码流 中不传递是否进行亮度补偿,以及亮度补偿值等亮度校正信息,提高编码效率。
进一步, 本发明实施例提供一视频解码装置。 参阅图 5, 本发明实施例视 频解码的装置结构示意图。 视频解码装置 50包括:
解码信息获取单元 501,用于接收视频码流,解析当前块的编码模式信息, 获得所述当前块的运动信息;
解码参考确定单元 503, 用于根据所述运动信息在所述参考帧中确定与当 前块对应的参考块;
解码亮度补偿判断单元 505, 用于根据所述当前块的周边信息和所述参考 块的周边信息判断是否对当前块进行亮度补偿;
解码亮度补偿单元 507, 用于当需要对所述当前块进行亮度补偿时, 对所 述当前块的重建值进行亮度补偿。
本发明实施例提供的视频解码的装置,在进行亮度补偿前先判断是否需要 进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步作为又一个实施例, 参阅 5b, 当解码当前宏块时, 解码信息获取 单元 501先从码流中解码出当前块的运动信息,解码参考确定单元 503根据得 到的运动矢量在对应的参考帧中找到对应的块, 利用当前块 C 的运动信息, 在它的参考帧 Ft-1中找到对应的参考块 R, 同时利用当前块 C的周边信息 Y, 和参考块 R的周边信息 X (例如图中所示 Υ和 X分别是当前块和参考块周边 的 "L" 型块), 解码亮度补偿判断单元 505根据 X和 Υ建立 up-left准则判决 方法。 这里 up-left 准则与编码方法中的判断准则相同。 当前块的周边信息可 以包括所述当前块的周边(和当前块相邻在左边或上边)重建信息, 当前块的 编码模式信息, 如当前块是否为帧间编码 16x16块, 是否为 DMVD (解码端 运动信息可推导)块或所述当前块的运动向量。参考块的周边信息可以包括所 述参考块的周边重建信息, 或所述参考块周边重建块的运动向量。
在亮度补偿单元中可以包括标志位处理模块 511。 当满足 up-left准则后根 据当前块的周边信息和参考块的周边信息, 当满足局部亮度变化条件时, 标志 位处理模块 511从码流中解码亮度补偿标志位 IDCO_flag, 当所述亮度补偿标 志位为第一参数值时,所述亮度补偿单元 507利用所述当前块的周边信息和所
述参考块的周边信息得到的亮度差值,利用所述亮度差值对当前块的重建值进 行亮度补偿; 当所述亮度补偿标志位为第二参数值时,所述解码亮度补偿单元 507直接利用当前块对应的参考块重建当前块。
当 IDCO_flag等于 1 (第一参数值)时, 利用如图 2中的周边重建值 X和 Y得到它们之间的亮度差值 IDCO,
IDCO = ∑ ( CiyrCsX! ) /N
其中 d,C2是系数, 本实施例中可以取 1, 也可以根据当前块的周边重建 象素和参考块的周边重建象素进行线性拟合得到, ¼, Xl为当前块的周边信息 Y和参考块的周边信息 X中各象素值, N表示周边信息的象素个数表示象素 个数。 利用得到的亮度差值 IDCO, 对当前块的重建值进行亮度补偿,
当前块的重建值=1?^ ( i ) +R ( i ) +IDCO,
其中 Res ( i )是码流中解码出的残差信号。
否则, 当 IDCO_flag等于 0时(第二参数值), 直接利用当前块对应的参 考块重建当前块,
当前块的重建值 =Res ( i ) +R ( i ),
其中 Res ( i )是码流中解码出的残差信号。
当不满足 up-left准则时,不需要从码流中解码亮度补偿标志位 IDCO_flag, 直接推导得到 IDCO_flag=0, 直接利用当前块对应的参考块重建当前块, 而不 需要亮度补偿。
本发明实施例提供的视频解码的装置,在进行亮度补偿前先判断是否需要 进行补偿, 至少当不需要补偿时可以在码流中不传递是否进行亮度补偿, 以及 亮度补偿值等亮度校正信息, 提高编码效率。
进一步,本发明解码的又一实施例,当确定需要对当前块进行亮度补偿后, 不解码标志位, 而是直接选择补偿方法。解码亮度补偿单元 507可以是利用所 述当前块的周边信息和所述参考块的周边信息得到的亮度差值,利用亮度差值 对当前块的重建值进行亮度补偿。或者,解码亮度补偿单元 507直接利用当前 块对应的参考块重建当前块。 系统可用根据需要在上述两种方式中选择。
Claims
1、 一种解码视频信号的方法, 其特征在于, 所述方法包括:
接收视频码流,解析当前块的编码模式信息,获得所述当前块的运动信息; 根据所述运动信息在参考帧中确定与所述当前块对应的参考块; 根据所述当前块的周边信息和所述参考块的周边信息判断是否对所述当 前块进行亮度补偿;
当需要对所述当前块进行亮度补偿时,对所述当前块的重建值进行亮度补 偿。
2、 如权利要求 1所述的方法, 其特征在于,
所述当前块的周边信息包括:所述当前块周边的重建信息或所述当前块的 编码模式信息或所述当前块的运动向量;
所述参考块的周边信息包括:所述参考块周边的重建信息或所述参考块的 编码模式信息或所述参考块周边重建块的运动向量。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据所述当前块的 周边信息和所述参考块的周边信息判断是否对当前块进行亮度补偿包括:
计算∑ ( ΑγΓΒΧι ), 其中 yi为当前块的各周边信息, Xl为参考块的各周边 信息, A、 B为权重系数;
当所述∑ ( AyrBxJ 不等于零时, 确定对当前块进行亮度补偿。
4、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据所述当前块的 周边信息和所述参考块的周边信息判断是否对当前块进行亮度补偿包括:
当 |∑ ( Ay1-Bx1 ) I > N 时, 确定对当前块进行亮度补偿, 其中, 为当 前块的各周边信息, Xl为参考块的各周边信息, A、 B为权重系数, N为根据 周边信息的象素个数确定的常数。
5、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据所述当前块的 周边信息和所述参考块的周边信息判断是否对当前块进行亮度补偿包括: 当参考块与当前块的亮度变化趋势不一致时,并且所述当前块的上边区域 的变化趋势与所述当前块的左边区域的变化趋势不一致时确定对当前块进行 亮度补偿。
6、 一种编码视频信号的方法, 其特征在于, 所述方法包括:
在参考帧中进行运动估计, 获得当前块的运动信息;
根据所述运动信息在所述参考帧中确定与当前块对应的参考块; 根据所述当前块的周边信息和所述参考块的周边信息判断是否对当前块 进行亮度补偿;
当需要对所述当前块进行亮度补偿时,对所述当前块的预测值进行亮度补 偿;
根据所述亮度补偿后的预测值获得所述当前块的残差值,对所述残差值进 行变换和量化以及熵编码。
7、 如权利要求 6所述的方法, 其特征在于,
所述当前块的周边信息包括:所述当前块的周边重建信息或当前块的编码 模式信息或所述当前块的运动向量;
所述参考块的周边信息包括:所述参考块的周边重建信息或所述参考块的 编码模式信息或所述参考块周边重建块的运动向量。
8、 如权利要求 6所述的方法, 其特征在于, 所述方法还包括:
需要对所述当前块进行亮度补偿时, 生成亮度补偿标志位。
9、 如权利要求 6或 7所述的方法, 其特征在于, 所述根据所述当前块的 周边信息和所述参考块的周边信息判断是否对当前块进行亮度补偿包括: 计算∑ ( Ayi-BXl ), 其中 yi为当前块的各周边信息, Xl为参考块的各周边 信息, A、 B为权重系数;
当所述∑ ( AyrBxJ 不等于零时, 确定对当前块进行亮度补偿。
10、 如权利要求 6或 7所述的方法, 其特征在于, 所述根据所述当前块的 周边信息和所述参考块的周边信息判断是否对当前块进行亮度补偿包括: 当 |∑ ( Ay1-Bx1 ) I > N 时, 确定对当前块进行亮度补偿, 其中, 为当 前块的各周边信息, Xl为参考块的各周边信息, A、 B为权重系数, N为根据 周边信息的象素个数确定的常数。
11、 如权利要求 6或 7所述的方法, 其特征在于, 所述根据所述当前块的 周边信息和所述参考块的周边信息判断是否对当前块进行亮度补偿包括: 当所述参考块与所述当前块的亮度变化趋势不一致,并且所述当前块的上 边区域的变化趋势与所述当前块的左边区域的变化趋势不一致时确定对当前 块进行亮度补偿。
12、 一种视频解码装置, 其特征在于, 所述装置包括:
解码信息获取单元, 用于接收视频码流, 解析当前块的编码模式信息, 获 得所述当前块的运动信息;
解码参考确定单元,用于根据所述运动信息在所述参考帧中确定与当前块 对应的参考块;
解码亮度补偿判断单元,用于根据所述当前块的周边信息和所述参考块的 周边信息判断是否对当前块进行亮度补偿; 解码亮度补偿单元, 用于当需要对所述当前块进行亮度补偿时,对所述当 前块的重建值进行亮度补偿。
13、 如权利要求 12所述的装置, 其特征在于, 所述解码亮度补偿判断单 元中,
所述当前块的周边信息包括:所述当前块的周边重建信息或所述当前块的 编码模式或所述当前块的运动向量;
所述参考块的周边信息包括:所述参考块的周边重建信息或所述参考块的 编码模式或所述参考块周边重建块的运动向量。
14、 如权利要求 12或 13所述的装置, 其特征在于, 所述解码亮度补偿判 断单元在用于根据所述当前块的周边信息和所述参考块的周边信息判断是否 对当前块进行亮度补偿时包括:
计算∑ ( Ayi-BXl ), 其中 yi为当前块的各周边信息, Xl为参考块的各周边 信息, A、 B为权重系数;
当所述∑ ( AyrBxJ 不等于零时, 确定对当前块进行亮度补偿。
15、 如权利要求 12或 13所述的装置, 其特征在于, 所述解码亮度补偿判 断单元在用于根据所述当前块的周边信息和所述参考块的周边信息判断是否 对当前块进行亮度补偿时包括:
当 |∑ ( Ay1-Bx1 ) I > N 时, 确定对当前块进行亮度补偿, 其中, 其中, yi为当前块的各周边信息, Xl为参考块的各周边信息, A、 B 为权重系数, N 为根据周边信息的象素个数确定的常数。
16、 如权利要求 12或 13所述的装置, 其特征在于, 所述解码亮度补偿判 断单元在用于根据所述当前块的周边信息和所述参考块的周边信息判断是否 对当前块进行亮度补偿时包括:
当所述参考块与所述当前块的亮度变化趋势不一致,并且所述当前块的上 边区域的变化趋势与所述当前块的左边区域的变化趋势不一致时确定对当前 块进行亮度补偿。
17、 一种视频编码装置, 其特征在于, 所述装置包括:
编码运动估计单元, 用于在参考帧中进行运动估计, 获得当前块的运动信 息;
编码参考确定单元,用于根据所述运动信息在所述参考帧中确定与当前块 对应的参考块;
编码亮度补偿判断单元,用于根据所述当前块的周边信息和所述参考块的 周边信息判断是否对当前块进行亮度补偿;
编码亮度补偿单元, 用于当需要对所述当前块进行亮度补偿时,对所述当 前块的预测值进行亮度补偿;
编码处理单元,用于根据所述亮度补偿后的预测值获得所述当前块的残差 值, 对所述残差值进行变换和量化以及熵编码。
18、 如权利要求 17所述的装置, 其特征在于, 所述编码亮度补偿判断单 元中,
所述当前块的周边信息包括:所述当前块的周边重建信息或所述当前块的 编码模式信息或所述当前块的运动向量;
所述参考块的周边信息包括:所述参考块的周边重建信息或所述参考块的 编码模式信息或所述参考块周边重建块的运动向量。
19、 如权利要求 17所述的装置, 其特征在于, 所述装置还包括: 标志位生成单元, 用于在需要对所述当前块进行亮度补偿时, 生成亮度补 偿标志位。
20、 如权利要求 17或 18所述的装置, 其特征在于, 所述编码亮度补偿判 断单元在用于根据所述当前块的周边信息和所述参考块的周边信息判断是否 对当前块进行亮度补偿时包括:
计算∑ ( ΑγΓΒΧι ), 其中 yi为当前块的各周边信息, Xl为参考块的各周边 信息, A、 B为权重系数;
当所述∑ ( AyrBxJ 不等于零时, 确定对当前块进行亮度补偿。
21、 如权利要求 17或 18所述的装置, 其特征在于, 所述编码亮度补偿判 断单元在用于根据所述当前块的周边信息和所述参考块的周边信息判断是否 对当前块进行亮度补偿时包括:
当 |∑ ( Ay1-Bx1 ) | > N 时, 确定对当前块进行亮度补偿, 其中, 为当 前块的各周边信息, Xl为参考块的各周边信息, A、 B为权重系数, N为根据 周边信息的象素个数确定的常数。
22、 如权利要求 17或 18所述的装置, 其特征在于, 所述编码亮度补偿判 断单元在用于根据所述当前块的周边信息和所述参考块的周边信息判断是否 对当前块进行亮度补偿时包括:
当所述参考块与所述当前块的亮度变化趋势不一致,并且所述当前块的上 边区域的变化趋势与所述当前块的左边区域的变化趋势不一致时确定对所述 当前块进行亮度补偿。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010147572.4 | 2010-04-09 | ||
CN 201010147572 CN102215389B (zh) | 2010-04-09 | 2010-04-09 | 一种局部亮度补偿的视频编解码方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011124157A1 true WO2011124157A1 (zh) | 2011-10-13 |
Family
ID=44746486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/072563 WO2011124157A1 (zh) | 2010-04-09 | 2011-04-09 | 一种局部亮度补偿的视频编解码方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102215389B (zh) |
WO (1) | WO2011124157A1 (zh) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103096050B (zh) * | 2011-11-04 | 2016-08-03 | 华为技术有限公司 | 视频图像编解码的方法及装置 |
WO2016008161A1 (en) * | 2014-07-18 | 2016-01-21 | Mediatek Singapore Pte. Ltd. | Temporal derived bi-directional motion vector predictor |
US10887597B2 (en) | 2015-06-09 | 2021-01-05 | Qualcomm Incorporated | Systems and methods of determining illumination compensation parameters for video coding |
US10356416B2 (en) * | 2015-06-09 | 2019-07-16 | Qualcomm Incorporated | Systems and methods of determining illumination compensation status for video coding |
EP3313072B1 (en) | 2015-06-16 | 2021-04-07 | LG Electronics Inc. | Method for predicting block on basis of illumination compensation in image coding system |
CN107147911B (zh) * | 2017-07-05 | 2019-07-26 | 中南大学 | 基于局部亮度补偿lic的快速帧间编码模式选择方法及装置 |
EP3692716A1 (en) | 2017-10-05 | 2020-08-12 | InterDigital VC Holdings, Inc. | Method and apparatus for adaptive illumination compensation in video encoding and decoding |
CN109889303B (zh) * | 2018-12-28 | 2021-10-22 | 努比亚技术有限公司 | 视频播放模式切换方法、装置和计算机可读存储介质 |
CN113170152B (zh) * | 2019-01-18 | 2023-07-07 | 华为技术有限公司 | 用于预测译码的局部亮度补偿的方法和装置 |
US11172195B2 (en) * | 2019-01-26 | 2021-11-09 | Qualcomm Incorporated | Excluding intra coded reference samples from local illumination compensation parameter derivation |
WO2020151764A1 (en) * | 2019-01-27 | 2020-07-30 | Beijing Bytedance Network Technology Co., Ltd. | Improved method for local illumination compensation |
EP3910955A4 (en) * | 2019-02-01 | 2022-05-18 | Huawei Technologies Co., Ltd. | INTERFRAME PREDICTION METHOD AND APPARATUS |
CN111526362B (zh) | 2019-02-01 | 2023-12-29 | 华为技术有限公司 | 帧间预测方法和装置 |
CN116248891A (zh) | 2019-03-14 | 2023-06-09 | 华为技术有限公司 | 帧间预测的方法及相关装置 |
CN113841396B (zh) * | 2019-05-20 | 2022-09-13 | 北京字节跳动网络技术有限公司 | 简化的局部照明补偿 |
CN116506619A (zh) * | 2022-04-27 | 2023-07-28 | 杭州海康威视数字技术股份有限公司 | 一种解码、编码方法、装置及其设备 |
Citations (4)
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 (ja) * | 2007-12-28 | 2009-07-09 | Sharp Kabushiki Kaisha | 動画像符号化装置、および、動画像復号装置 |
CN101529921A (zh) * | 2006-10-18 | 2009-09-09 | 汤姆森特许公司 | 无显式信令的局部照明和色彩补偿 |
CN101641954A (zh) * | 2007-03-23 | 2010-02-03 | Lg电子株式会社 | 用于解码/编码视频信号的方法和装置 |
-
2010
- 2010-04-09 CN CN 201010147572 patent/CN102215389B/zh active Active
-
2011
- 2011-04-09 WO PCT/CN2011/072563 patent/WO2011124157A1/zh active Application Filing
Patent Citations (4)
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 (zh) * | 2006-10-18 | 2009-09-09 | 汤姆森特许公司 | 无显式信令的局部照明和色彩补偿 |
CN101641954A (zh) * | 2007-03-23 | 2010-02-03 | Lg电子株式会社 | 用于解码/编码视频信号的方法和装置 |
WO2009084340A1 (ja) * | 2007-12-28 | 2009-07-09 | Sharp Kabushiki Kaisha | 動画像符号化装置、および、動画像復号装置 |
Also Published As
Publication number | Publication date |
---|---|
CN102215389A (zh) | 2011-10-12 |
CN102215389B (zh) | 2013-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011124157A1 (zh) | 一种局部亮度补偿的视频编解码方法及装置 | |
KR101418096B1 (ko) | 가중치예측을 이용한 영상 부호화/복호화 방법 및 장치 | |
JP5061179B2 (ja) | 照明変化補償動き予測符号化および復号化方法とその装置 | |
JP5559139B2 (ja) | 映像の符号化、復号化の方法及び装置 | |
KR100856411B1 (ko) | 조도 보상 방법 및 그 장치와 그 방법을 기록한 컴퓨터로 읽을 수 있는 기록매체 | |
KR101365567B1 (ko) | 영상의 예측 부호화 방법 및 장치, 그 복호화 방법 및 장치 | |
US8553779B2 (en) | Method and apparatus for encoding/decoding motion vector information | |
US20120230405A1 (en) | Video coding methods and video encoders and decoders with localized weighted prediction | |
JP2004336369A (ja) | 動画像符号化装置、動画像復号化装置、動画像符号化方法、動画像復号化方法、動画像符号化プログラム及び動画像復号化プログラム | |
CA2879650C (en) | Encoding device, decoding device, and program | |
KR20090095012A (ko) | 연속적인 움직임 추정을 이용한 영상 부호화, 복호화 방법및 장치 | |
US8306114B2 (en) | Method and apparatus for determining coding for coefficients of residual block, encoder and decoder | |
KR101768865B1 (ko) | 가중치예측을 이용한 영상 부호화/복호화 방법 및 장치 | |
KR20070057618A (ko) | 화소 단위 기반 영상 부호화 및 복호화 장치 및 방법 | |
KR101364532B1 (ko) | 인접 파티션의 크기를 고려한 움직임 벡터 예측 방법,장치, 인코더, 디코더 및 복호화 방법 | |
KR101187580B1 (ko) | 조도 보상 방법 및 그 장치와 이를 이용한 동영상 부호화방법 및 그 장치 | |
RU2808075C1 (ru) | Способ кодирования и декодирования изображений, устройство кодирования и декодирования и соответствующие компьютерные программы | |
KR101647484B1 (ko) | 영상 부호화 방법 및 장치 | |
KR101456973B1 (ko) | 가중치예측을 이용한 영상 부호화/복호화 방법 및 장치 | |
KR101041038B1 (ko) | 움직임 추정방법 및 움직임 추정장치, 이를 이용한 부호화 방법 및 비디오 인코더, 이를 이용한 복호화 방법 및 비디오 디코더 | |
JP2011166357A (ja) | 画像符号化装置 | |
KR20040095399A (ko) | 가중 예측에서의 가중요소 결정방법 | |
JP2003153280A (ja) | 最適符号化モード選択型動画像符号化方式 | |
JP2010288096A (ja) | 動画像符号化方法、動画像符号化装置及び動画像符号化プログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11765075 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11765075 Country of ref document: EP Kind code of ref document: A1 |