Remove egloo dependency and implement manual EGL/GLES20 injection
- Remove the
egloolibrary dependency frombuild.gradle.ktsandlibs.versions.toml. - Rewrite
GLInjectionThreadto use nativeEGL14andGLES20APIs for EGL context management, surface creation, and rendering. - Manually implement shader compilation, program linking, and vertex/texture buffer management using
ByteBufferandFloatBuffer. - Replace high-level abstractions for textures and programs with direct
GLES20calls, includingglGenTextures,glBindTexture, andglDrawArrays. - Enhance error handling and debugging by adding
checkEglErrorand expanded logging forMediaPlayerand EGL lifecycle events. - Refine MVP matrix calculations to handle center-crop scaling, rotation, and horizontal mirroring manually.
- Clean up resource release logic to explicitly destroy EGL surfaces, contexts, and programs.