
Adds a class that represents an image rectangle in OpenGL coordinate convention. android.graphics.Rect puts (0, 0) as the top-left corner: it enforces `Rect.top <= Rect.bottom` and this matches `android.graphics.Bitmap` coordinates: docs https://developer.android.com/reference/android/graphics/Rect This is different from OpenGL coordinates where (0, 0) is at the bottom-left corner. I.e. GlRect.bottom <= GlRect.top: docs https://registry.khronos.org/OpenGL-Refpages/es3.0/html/glReadPixels.xhtml The reason for this change is to allow a public API GlRect getScaledRegion() which selects a region of pixels of a GL texture to be copied to CPU memory. PiperOrigin-RevId: 669231826
Effect module
Provides functionality for applying effects to video frames.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-effect:1.X.X'
where 1.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.