JoeChu
HomeArchivesLifeC/C++CG/CVMiscTool私房菜
  • Tags
  • android
Posted 2025-04-13 Joe Chu misc 6 minutes read (About 831 words)

Display Correct Aspect Ratio of Camera Preview in Android

In this post, we’ll dive into the key concepts and techniques for adjusting the size of a SurfaceView to match the camera preview’s aspect ratio and ensure a distortion-free display.

Read more
Posted 2024-10-23 Joe Chu misc 5 minutes read (About 683 words)

JNI Registers Native Methods

Register native C++ methods for Java to access them.

Read more
Posted 2024-06-23 Joe Chu CGV 4 minutes read (About 638 words)

Rendering Using Native OpenGL on Android - 2

We will load a jpeg file as a texture image and render it on the screen.

Read more
Posted 2024-06-22 Joe Chu misc 4 minutes read (About 631 words)

Cross Compile libjpeg for Android

Host machine: MacOS
Target device: Android armv8a

Read more
Posted 2024-06-19 Joe Chu CGV 2 minutes read (About 234 words)

Rendering Using Native OpenGL on Android - 1

  1. Use Android SurfaceView for rendering surface.
  2. In native code, create a rendering thread and call OpenGL for rendering in the same thread.
Read more
Joe Chu

Joe Chu

I like to keep knowledge and memories visible and readable.

Fremont, CA

Posts

282

Categories

8

Tags

223

Follow

follow.it

Advertisement

Recents

2026-10-05

Online Softmax

misc

2026-09-27

Weekend Snapshots

life

2026-09-20

One Weekend in San Francisco

life

2026-09-17

When Smart Pointer Meets Const and Reference

cpp

2026-09-13

Hayward Airport Open House

life

Archives

  • 202628
  • 2025107
  • 2024107
  • 202339
  • 20221
JoeChu

© 2026 Joe Chu  Powered by Markdown & Icarus
uv 0
pv 0

© 2019

×