• K
    [android] External textures must be rescaled to fill the canvas (#9501) · 3aff2e35
    Kaushik Iska 提交于
    * [android] External textures must be rescaled to fill the canvas
    
    - After composition, we have a tight box that we need to fill.
    
    - Video decoders typically operate using output buffers that are a whole
      number of blocks (vertically and horizontally). This fixes
      https://github.com/flutter/flutter/issues/34641 where the decoded
      dimensions are rounded up.
    
    - The cropping information for the current frame arrives in the form of
      `SurfaceTexture.getTransformMatrix`. When we apply this transform we
      need to account for the fact that we have already composited. This
      means that in cases where the scaleX, scaleY are less than 1, we need
      to rescale the image. We do this while preserving the aspect ratio.
    3aff2e35
android_external_texture_gl.cc 4.7 KB