Video data processing method and apparatus
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsYongfang Shi, Anlin Gao, Chao Dai, Jing Lv
Life of this patent
Estimating the term…
Abstract
Video data processing method and apparatus are provided. The method includes: encoding, by an encoder side, obtained original video data according to a hierarchical P-frame prediction HPP structure to obtain an HPP bitstream; redundancy-coding the HPP bitstream according to a forward error correction FEC code, redundancy packet quantities in frames in the HPP bitstream progressively decreasing from lower to higher temporal layers to which the frames belong in the HPP structure; and sorting the frames in the redundancy-coded HPP bitstream and sequentially sending the frames in the redundancy-coded HPP bitstream to a decoder side.
Claims8
A non-transitory computer readable storage medium storing computer program instructions that, when being executed by a processor on a decoder side, cause the processor to perform:
- receiving a current frame sent by an encoder side, the current frame being a frame in a hierarchical P-frame prediction (HPP) bitstream obtained through coding by the encoder side according to an HPP structure, the HPP bitstream corresponding to different temporal layers, frames in higher temporal layers being decoded with reference to frames in lower temporal layers, and neighboring frames being in different layers;
- determining whether a reference frame of the current frame is complete, when it is determined that the current frame is an inter-frame coded frame P frame, comprising:
- obtaining a reference status of the current frame, the reference status being used for indicating whether the reference frame of the current frame is complete;
- and
- determining according to the reference status of the current frame whether the reference frame of the current frame is complete;
- discarding the current frame to cancel decoding of the current frame, when the reference frame of the current frame is incomplete;
- determining, according to a location of the current frame in the HPP structure, a target frame using the current frame as the reference frame;
- and
- marking a reference status of the target frame as an incomplete reference frame,
- wherein the computer program instructions further cause the processor to perform:
- determining that the last video packet in the current frame is received;
- performing an integrity check on video packets in the current frame that have been cached and determining according to a check result whether the current frame is able to be decoded, when the reference status of the current frame indicates that the reference frame is complete;
- executing the operation of discarding the current frame to cancel decoding of the current frame, when it is determined that the current frame is unable to be decoded;
- decoding the current frame when it is determined that the current frame is able to be decoded;
- displaying the decoded current frame when the decoding is successful;
- and
- executing the operation of discarding the current frame to cancel decoding of the current frame, when the decoding is unsuccessful;
- and
- wherein the current frame is in the lowest temporal layer in the HPP structure, and the computer program instructions further cause the processor to perform:
- sending an I frame request to an encoder side to request the encoder side to immediately send a next I frame, when it is determined that the reference status of the current frame indicates that the reference frame is incomplete, or that the current frame is unable to be decoded, or that decoding of the current frame is unsuccessful.
A video data processing apparatus, applied to a decoder side, the apparatus comprising:
- a memory, configured to store program for a video data processing method, applied to the decoder side;
- and
- a processor, coupled to the memory and, when executing the program, configured to:
- receive a current frame sent by an encoder side, the current frame being a frame in a hierarchical P-frame prediction HPP bitstream obtained through coding by the encoder side according to an HPP structure, the HPP bitstream corresponding to different temporal layers, frames in higher temporal layers being decoded with reference to frames in lower temporal layers, and neighboring frames being in different layers;
- determine whether a reference frame of the current frame is complete, when it is determined that the current frame is an inter-frame coded frame P frame;
- discard the current frame to cancel decoding of the current frame, when the reference frame determining unit determines that the reference frame of the current frame is incomplete;
- determine, according to a location of the current frame in the HPP structure, a target frame using the current frame as the reference frame;
- and
- mark a reference status of the target frame as an incomplete reference frame,
- wherein the processor is further configured to:
- obtain a reference status of the current frame, the reference status being used for indicating whether the reference frame of the current frame is complete;
- and
- determine according to the reference status of the current frame whether the reference frame of the current frame is complete;
- determine that the last video packet in the current frame is received;
- perform an integrity check on video packets in the current frame that have been cached and determine according to a check result whether the current frame is able to be decoded, when the reference status of the current frame indicates that the reference frame is complete;
- and execute the first frame discarding unit when it is determined that the current frame is unable to be decoded:
- decode the current frame when it is determined that the current frame is able to be decoded, execute a first display unit when the decoding is successful, and execute the first frame discarding unit when the decoding is unsuccessful;
- and
- display the decoded current frame;
- and
- wherein the current frame is in the lowest temporal layer in the HPP structure, and the processor is further configured to:
- send an I frame request to an encoder side to request the encoder side to immediately send a next I frame, when it is determined that the reference status of the current frame indicates that the reference frame is incomplete, or that the current frame is unable to be decoded, or that decoding of the current frame is unsuccessful.
Dependencies are inferred from the claim text.