Skip to content

Releases: Xposed-Modules-Repo/com.hazbu.xcam

Release list

v0.1

Choose a tag to compare

@hazbu hazbu released this 03 Aug 08:48

Remove egloo dependency and implement manual EGL/GLES20 injection

  • Remove the egloo library dependency from build.gradle.kts and libs.versions.toml.
  • Rewrite GLInjectionThread to use native EGL14 and GLES20 APIs for EGL context management, surface creation, and rendering.
  • Manually implement shader compilation, program linking, and vertex/texture buffer management using ByteBuffer and FloatBuffer.
  • Replace high-level abstractions for textures and programs with direct GLES20 calls, including glGenTextures, glBindTexture, and glDrawArrays.
  • Enhance error handling and debugging by adding checkEglError and expanded logging for MediaPlayer and 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.