Tagged articles
3 articles
Page 1 of 1
Tencent Music Tech Team
Tencent Music Tech Team
Apr 19, 2019 · Mobile Development

Common Wrapper Classes for Android BufferQueue: Surface and SurfaceTexture

The article explains BufferQueue’s internal design and shows how Android developers typically use its wrapper classes—Surface as the producer and SurfaceTexture as the consumer—detailing their constructors, dequeue/queue workflows, lock/unlock mechanisms, and a complete SurfaceView example that illustrates buffer production and consumption by SurfaceFlinger.

AndroidBufferQueueGraphics
0 likes · 13 min read
Common Wrapper Classes for Android BufferQueue: Surface and SurfaceTexture
Qizhuo Club
Qizhuo Club
Mar 22, 2018 · Mobile Development

How to Add a Watermark to Android Video Using MediaCodec and OpenGL

This guide explains how to decode a video, render a watermark with OpenGL, re‑encode the frames, and mux them into a new file on Android, covering texture types, viewport positioning, blending, and the required MediaCodec and MediaMuxer code.

AndroidMediaCodecMp4Converter
0 likes · 20 min read
How to Add a Watermark to Android Video Using MediaCodec and OpenGL
Qizhuo Club
Qizhuo Club
Mar 20, 2018 · Mobile Development

Extract Video Frames as Images with OpenGL and SurfaceTexture on Android

This guide explains how to convert video stream data into individual bitmap images on Android by using SurfaceTexture to receive decoded frames, OpenGL to render them as external textures, and glReadPixels to capture the RGBA data for saving as PNG files.

AndroidBitmapMediaCodec
0 likes · 19 min read
Extract Video Frames as Images with OpenGL and SurfaceTexture on Android