Method for coding video and related device
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsKe Lin, Wenpeng Ding
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method and an apparatus for coding a video, a device and a medium. An estimated quantization parameter of a target picture in a target GOP is determined. An inter-picture change degree of the target GOP is determined. A propagation ratio of a target picture block to a reference picture block in the target picture is determined based on the estimated quantization parameter of the target picture and the inter-picture change degree. The video is coded based on the propagation ratio.
Claims18
A computer-implemented method for coding a video, comprising:
- determining an estimated quantization parameter of a target picture in a target group of pictures (GOP), wherein the target GOP is associated to the video, the estimated quantization parameter is an average value of actual quantization parameters of the target picture in a previous GOP and the estimated quantization parameter is configured to indicate a number of picture blocks in the target picture for increasing a propagation ratio;
- determining an inter-picture change degree of the target GOP based on a number of target pictures included in the target GOP and an intra-picture block ratio of the target GOP, in which the intra-picture block ratio is a ratio of the number of picture blocks for performing intra-picture prediction in the target GOP to the number of picture blocks for performing inter-picture prediction in the target GOP, and the inter-picture change degree is an index to measure a change in the picture content between the pictures of the target GOP;
- determining a propagation ratio of a target picture block to a reference picture block in the target picture based on the estimated quantization parameter of the target picture and the inter-picture change degree;
- and
- coding the video based on the propagation ratio;
- wherein coding the video comprises:
- performing coding unit (CU)-Tree energy propagation based on the propagation ratio to obtain received energy of the target picture block;
- converting the received energy into an offset of the quantization parameter of the target picture block by an equation of
- QP_offset=(−1)*intensity*log(1+energy/IntraCost), where QP_offset is the offset of the quantization parameter of the target picture block, energy represents the received energy, intensity represents the parameter offset value, IntraCost represents the intra-picture prediction cost value, and −1 indicates the value of QP_offset is negative.
An electronic device, comprising:
- at least one processor;
- and
- a memory, connected in communication with the at least one processor;
- wherein, the memory is configured to store instructions executable by the at least one processor, when the instructions are executed by the at least one processor, the at least one processor is configured to:
- determine an estimated quantization parameter of a target picture in a target group of pictures (GOP), wherein the target GOP is associated to the video, the estimated quantization parameter is an average value of actual quantization parameters of the target picture in a previous GOP and the estimated quantization parameter is configured to indicate a number of picture blocks in the target picture for increasing a propagation ratio;
- determine an inter-picture change degree of the target GOP based on the number of target pictures included in the target GOP and an intra-picture block ratio of the target GOP, in which the intra-picture block ratio is a ratio of the number of picture blocks for performing intra-picture prediction in the target GOP to the number of picture blocks for performing inter-picture prediction in the target GOP, and the inter-picture change degree is an index to measure a change in the picture content between the pictures of the target GOP;
- determine a propagation ratio of a target picture block to a reference picture block in the target picture based on the estimated quantization parameter of the target picture and the inter-picture change degree;
- and
- code the video based on the propagation ratio;
- wherein coding the video comprises:
- performing coding unit (CU)-Tree enemy propagation based on the propagation ratio to obtain received energy of the target picture block;
- converting the received energy into an offset of the quantization parameter of the target picture block by an equation of
- QP_offset=(−1)*intensity*log(1+energy/IntraCost), where QP_offset is the offset of the quantization parameter of the target picture block, energy represents the received energy, intensity represents the parameter offset value, IntraCost represents the intra-picture prediction cost value, and −1 indicates the value of QP_offset is negative.
A non-transitory computer-readable storage medium, having computer instructions stored thereon, wherein when the computer instructions are executed, the computer is caused to implement a method for coding a video, the method comprising:
- determining an estimated quantization parameter of a target picture in a target group of pictures (GOP), wherein the target GOP is associated to the video, the estimated quantization parameter is an average value of actual quantization parameters of the target picture in a previous GOP and the estimated quantization parameter is configured to indicate a number of picture blocks in the target picture for increasing a propagation ratio;
- determining an inter-picture change degree of the target GOP based on a number of target pictures included in the target GOP and an intra-picture block ratio of the target GOP, in which the intra-picture block ratio is a ratio of the number of picture blocks for performing intra-picture prediction in the target GOP to the number of picture blocks for performing inter-picture prediction in the target GOP, and the inter-picture change degree is an index to measure a change in the picture content between the pictures of the target GOP;
- determining a propagation ratio of a target picture block to a reference picture block in the target picture based on the estimated quantization parameter of the target picture and the inter-picture change degree;
- and
- coding the video based on the propagation ratio;
- wherein coding the video comprises:
- performing coding unit (CU)-Tree energy propagation based on the propagation ratio to obtain received energy of the target picture block;
- converting the received energy into an offset of the quantization parameter of the target picture block by an equation of
- QP_offset=(−1)*intensity*log(1+energy/IntraCost), where QP_offset is the offset of the quantization parameter of the target picture block, energy represents the received energy, intensity represents the parameter offset value, IntraCost represents the intra-picture prediction cost value, and −1 indicates the value of QP_offset is negative.
Dependencies are inferred from the claim text.