US9615096B2ActiveUtilityA1

Device and method for video encoding

Assignee: HON HAI PREC IND CO LTDPriority: Jun 4, 2014Filed: Oct 14, 2014Granted: Apr 4, 2017
Est. expiryJun 4, 2034(~7.9 yrs left)· nominal 20-yr term from priority
Inventors:Cheng-Long Lin
H04N 19/162H04N 19/17H04N 19/167H04N 19/107H04N 19/129H04N 19/124
68
PatentIndex Score
2
Cited by
7
References
10
Claims

Abstract

A video encoding device calculates number of frames into which the current image needs to be encoded. The video encoding device divides the current image into a plurality of macro blocks, identifies importance of the respective macro blocks according to content of the current image and ranks the macro blocks from high to low according to the assigned importance. The video encoding device labels each macro block with a label, and encodes the macro blocks according to its label to form frames.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
       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 th  frame, wherein n is a positive integer from 2 to 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 Total  of the macro block list until the total size S Total  is larger than S max-frame , and labeling the macro blocks in the macro block list with label 1, wherein the S max-frame  is the maximum allowable transmit threshold of network transmission channel, wherein S Total =[1−(C mb-list /C mb-total )]*S HQP +S INTRA , C mb-list  is a number of list macro block list, C mb-total  is a number of all of the macro blocks, S HQP  is a size of the current image when encoding with a high QP value, S INTRA  is a size of the macro block list when encoding with the intra-coding; and 
 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′ Total  of the macro block list, until the total size S′ Total  is larger than S max-frame , and labeling the macro blocks in the macro block list with the label x, wherein S′ Total =[1−(C mb-list /C mb-total )]*S PSKIP +S INTRA , wherein S PSKIP  is a size of the current image when encoding with the inter-coding. 
 
     
     
       2. The video encoding device as claimed in  claim 1 , wherein dividing the current image into M macro blocks comprises: dividing the current image into M macro blocks with 8×8 or 16×16 mode. 
     
     
       3. The video encoding device as claimed in  claim 1 , wherein ranking the M macro blocks from high to low according to the importance, labeling each macro block with the label x comprises:
 assigning the M macro blocks into N frames averagely, wherein the number of macro blocks in each frame is M/N, and the label x of each macro block is the number of corresponding frame. 
 
     
     
       4. The video encoding device as claimed in  claim 1 , wherein encoding the macro blocks to form a n th  frame comprises:
 encoding the macro blocks with a low QP value and the encoding way is intra-coding when the label x of the macro blocks equals n; and 
 encoding the macro blocks with a high QP value and the encoding way is inter-coded when the label x of the macro blocks is greater than n. 
 
     
     
       5. The video encoding device as claimed in  claim 1 , wherein calculating number N of dispersed frames upon condition that the current image will be encoded into I frame comprises: calculating number N of dispersed frames according to the maximum allowable transmit threshold S max-frame  of network transmission channel. 
     
     
       6. A method for video coding, comprising:
 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, 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 inter-coding to form a n th  frame, wherein i is a positive integer from 2 to 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 a total coding size S Total  of the macro block list, until the total size S Total  is larger than S max-frame , and labeling the macro blocks in the macro block list with label 1, wherein S Total =[1−(C mb-list /C mb-total )]*S HQP +S INTRA , C mb-list  is a number of list macro block list, C mb-total  is a number of all of the macro blocks, S HQP  is a size of the current image when encoding with a high QP value, S INTRA  is a size of the macro block list when encoding with the intra-coding; and 
 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′ Total  of the macro block list, until the total size S Total  is larger than S max-frame , and labeling the macro blocks in the macro block list with label x, wherein S′ Total =[1−(C mb-list /C mb-total )]*S PSKIP +S INTRA , wherein S PSKIP  is a size of the current image when encoding with the inter-coding, 
 wherein the S max-frame  is the maximum allowable transmit threshold of network transmission channel. 
 
     
     
       7. The method as claimed in  claim 6 , wherein dividing the current image into M macro blocks further comprises: dividing the current image into M macro blocks with 8×8 or 16×16 mode. 
     
     
       8. The method as claimed in  claim 6 , wherein ranking the M macro blocks from high to low according to the importance, labeling each macro block with the label x further comprises:
 assigning the M macro blocks into N frames averagely, wherein the number of macro blocks in each frame is M/N, and the label x of each macro block is the number of corresponding frame. 
 
     
     
       9. The method as claimed in  claim 6 , wherein encoding the macro blocks to form a n th  frame further comprises:
 encoding the macro blocks with a low QP value and the encoding way is intra-coding when the label x of the macro blocks equals n; and 
 encoding the macro blocks with a high QP value and the encoding way is inter-coded when the label x of the macro blocks is greater than n. 
 
     
     
       10. The method as claimed in  claim 6 , wherein calculating number N of dispersed frames upon condition that the current image will be encoded into I frame further comprises: calculating number N of dispersed frames according to the maximum allowable transmit threshold S max-frame  of network transmission channel.

Join the waitlist — get patent alerts

Track US9615096B2 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.