mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00

This change adds a SurfaceProvider interface which is necessary to allow for texture processors whose output size becomes available asynchronously in follow-ups. VTSP's implementation of this interface wraps the encoder and provides its input surface together with the output frame width, height, and orientation as used for encoder configuration. The FrameProcessorChain converts the output frames to the provided orientation and resolution using a ScaleToFitTransformation and Presentation replacing EncoderCompatibilityTransformation. PiperOrigin-RevId: 455112598 (cherry picked from commit d20f68498666ddf1f1946799cf002a9edb573a40)
Test data module
Provides sample data for media unit and instrumentation tests.