Patent ID: 11902533
Assignee: ZHEJIANG UNIVIEW TECHNOLOGIES CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 5:
6. The method according to claim 5, wherein the quality factor is optimized by using following formula:, QP
  =
  
   {
   
    
     
      
       
        
         QP
         min
        
        (
        
         b
         ≤
         
          b
          min
         
        
        )
       
                                                                               
      
     
    
    
     
      
       
        QP
        min
       
       +
       
        
         (
         
          
           QP
           max
          
          -
          
           QP
           min
          
         
         )
        
        *
        
         b
         
          b
          min
         
        
        ⁢
        
         (
         
          
           b
           min
          
          <
          b
          ≤
          
           b
           max
          
         
         )
        
       
      
     
    
    
     
      
       
        
         QP
         max
        
        (
        
         b
         >
         
          b
          max
         
        
        )
       
                                                                              
      
     
    
   
  
 

where QP is the quality factor of the motion region, QPmin is a preset minimum value of the quality factor of the motion region, QPmax is a preset maximum value of the quality factor of the motion region, b is the proportion of the motion region in a picture, bmin is a preset lowest proportion of the motion region in the picture, and bmax is a preset highest proportion of the motion region in the picture; and
wherein the step of calculating a distortion tolerance of each macroblock constituting the image to be encoded according to the difference between the reference distortion degree and the distortion degree of the feature region in the image to be encoded comprises:
obtaining a sum of the reference distortion degree, a difference between the distortion degree of the region of interest and the reference distortion degree, a difference between the distortion degree of the motion region and the reference distortion degree, a difference between the distortion degree of the complexity region and the reference distortion degree, and a difference between the distortion degrees of the excessively bright or dark region in the image to be encoded and the reference distortion degree, and using the obtained sum as the distortion tolerance of the current macroblock.