A video encoding method and device

A video coding and coding technology, applied in the field of video coding, can solve the problem of low prediction accuracy

CN107592539BActive Publication Date: 2019-10-22BEIJING QIYI CENTURY SCI & TECH CO LTD
7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2019-10-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a video encoding method and device. The video encoding method comprises the steps of performing intra-frame prediction on odd-numbered lines of the current block, obtaining reconstructed odd-numbered lines according to a residual error between the acquired odd-numbered line prediction data and source odd-numbered lines, predicting the current reconstructed odd-numbered lineby using the previous reconstructed odd-numbered line, determining a precise prediction direction which enables the sum of squares of prediction errors of all pixels in the reconstructed odd-numberedlines to be the minimum, predicting an even-numbered line according to the adjacent odd-numbered lines to obtain accurate even-numbered line prediction data, and encoding the even-numbered lines according to a residual error between the accurate even-numbered line prediction data and source even-numbered lines. According to the invention, the prediction direction is refined according to the reconstructed odd-numbered lines to obtain the more accurate prediction direction, and then prediction is performed on the even-numbered lines by using the odd-numbered lines according to the more accurateprediction direction to obtain encoding of the even-numbered lines. The even-numbered lines are predicted by using the adjacent odd-numbered lines, and the prediction direction is more accurate, so that residual error data of the even-numbered lines in encoding is enabled to be smaller, and the efficiency of video encoding is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of video encoding, in particular to a video encoding method and device. Background technique

[0002] Starting from Advanced Video Coding H.264, intra-frame directional predictive coding has become the mainstream technology of video intra-block coding. In this technique, the prediction of the current coding block is obtained from the linear prediction of its left adjacent column and upper adjacent row according to one direction, such as figure 1 As shown in the schematic diagram of intra prediction, the current coding block is an 8×8 block, and the pixel shown by the triangle is its upper left adjacent reference pixel. Intra-frame prediction first selects a direction, and then each row or column in the current block is obtained from its upper-left adjacent row and column according to this direction. The sixth row shown in the figure maps to the pixel position of the upper adjacent row according to ...

Examples

Embodiment 1

[0054] refer to figure 2 , which shows a flow chart of the steps of an embodiment of a video encoding method according to Embodiment 1 of the present invention, which may specifically include the following steps:

[0055] In step 101, intra-frame prediction is performed on each odd-numbered row of the current block according to a selected prediction direction to obtain odd-numbered row prediction data.

[0056] Digital video is composed of a series of video frames, and intra-frame directional predictive coding is often used for video intra-block coding. The current block refers to the macroblock currently being coded. Macroblock is a basic concept in video coding technology. In video coding, a coded image is usually divided into several macroblocks. A macroblock consists of a brightness pixel block and two additional composed of chrominance pixel blocks. When intra-frame prediction is adopted, the prediction data of the current block can be obtained by linear prediction fro...

Embodiment 3

[0099] refer to Figure 6 , which shows a structural block diagram of a video encoding device embodiment according to Embodiment 3 of the present invention, which may specifically include the following modules:

[0100] An odd-numbered intra-frame prediction module 301, configured to perform intra-frame prediction on each odd-numbered row of the current block according to a selected prediction direction, to obtain odd-numbered row prediction data;

[0101] An odd-numbered row reconstruction module 302, configured to obtain a reconstructed odd-numbered row according to the residual between the odd-numbered row prediction data and the corresponding source odd-numbered row;

[0102] The precise prediction direction determination module 303 is configured to use the previous reconstructed odd-numbered line to predict the reconstructed odd-numbered line for each reconstructed odd-numbered line of the current block, and respectively determine the The exact prediction direction with ...