Patent ID: 9615096
Date: 2017-04-04
CPC Classifications: H04N

Claim:
1. A video encoding device, comprising: at least one processor; a storage system; and one or more programs stored in the storage system and executed by the at least one processor, and the one or more programs comprising instructions for: determining whether to encode a current image into I-frame; calculating N dispersed frames upon condition that the current image will be encoded into I-frame, wherein N is a positive integer starting at one; dividing the current image into M macro blocks, and identifying importance of the M macro blocks according to a content of the current image, wherein M is a positive integer starting at one; ranking the M macro blocks from high to low according to the importance, and labeling each macro block with a label x, wherein the label x is a positive integer from 1 to N; encoding the macro blocks whose label x equals 1 with a low QP value and an intra-coding and encoding the macro blocks whose label x is greater than 1 with a high QP value and an intra-coded to form a first frame; and encoding the macro blocks whose label x is less than n with the inter-coding to form a n wherein labeling each macro block with the label x comprising: selecting part of all macro blocks sequentially one by one to add to a macro block list, calculating total coding size S clearing the macro block list and selecting the rest of all macro block sequentially one by one to add to the macro block list, calculating a total coding size S′