ENGINEERING CASE STUDY · BELLEVUE, WA · DECEMBER 2019–MARCH 2022

I joined OPPO’s U.S. research center to work on mobile inference. Over the next two years, I brought camera workloads onto Hexagon, helped make game-filter validation repeatable, and designed a DSP prototype for a slice of the graphics pipeline. I finished with early Android bring-up for Taichi’s Vulkan runtime.

Xiaohan Wang · System Software Engineer · Innopeak Technology / OPPO US Research Center

Camera inference Custom DSP and night vision Game Filters and RenderDoc UI rendering and vertex offload Taichi AOT Public record

01 / Getting a camera model onto the phone

The team had an Android camera app and a C++ entry point for a nighttime denoising model: RGBA in, RGBA out. Others built that pipeline and trained the model. The original inference plan used shaders in the graphics pipeline. Coming from work on accelerator inference at Aibee, I tried another route through Qualcomm SNPE.

I got quantized inference running on a retail Snapdragon 855 phone in two days. That was the time to first inference, not the time to integrate the feature. I checked the inference result and then wired the model into the existing camera pipeline. Once I could see where inference sat in the app, I tried moving a preprocessing step onto the DSP too.

02 / From model deployment to custom Hexagon code

SNPE ran the model, but it did not answer whether we could bring our own code to the DSP. I started experimenting with custom Hexagon code on a Snapdragon 855 phone. It was a useful point in the platform’s history: Qualcomm’s Hexagon/HVX guide identifies SM8150, the Snapdragon 855, as the starting point for the documented unsigned mode on the compute DSP. That capability was distinct from the permissions and signing policy of a particular retail phone. My first preprocessing step compiled C++ for the DSP, preserved the existing RGBA interface, and did not yet use HVX.

That work led to a separate night-vision prototype. Another small team owned the C++/OpenCV reference and advanced it weekly. I took the previous week’s version and independently adapted it to Hexagon. I used available vector primitives where they fit and wrote replacements where the DSP libraries did not map to OpenCV or behaved differently. The results were compared visually against the reference.

The team provided both the Snapdragon 855 and 865 Mobile Hardware Development Kits from Intrinsyc’s HDK line. Working on a dedicated board made DSP experiments easier than on the retail phone. On the 855 HDK I used Snapdragon Profiler to inspect DSP L2 misses and vector-unit activity. The night-vision prototype ultimately missed both the visual-quality and runtime goals, and we stopped pursuing it.

HARDWARE ON THE BENCH

855 HDK

SM8150 · Hexagon 690

The board I used for the night-vision development and profiling discussed above.

Intrinsyc’s 2019 unboxing

865 HDK

SM8250 · Hexagon 698

The next-generation board the team also provided.

Intrinsyc’s 2020 announcement

Vendor catalogue with side-by-side model listings and board photographs. The cards above are a schematic comparison, not photos of our lab hardware.

A parallel camera task. While moving over to graphics, I contributed C++ optimizations and OpenGL follow-through to a front-camera beauty pipeline. The team moved from processing faces individually to processing multiple faces together. I did not originate that design.

03 / Game Filters: replay the scene, not the game

After the night-vision work stopped, I moved to validation for OPPO Game Filters. Much of my initial work was checking and aligning results, not writing the filters. OPPO’s product page shows the product feature; the OnePlus 9RT manual documents an Old Movie preset. Those sources establish what users could see, not who implemented each effect.

We originally relied on live end-to-end testing to check changes. Gabriel Huau led a rework of the RenderDoc workflow, and I helped modify the OpenGL replay path. With a phone connected, we could reuse a capture of the same game scene, apply the filter during replay, check that the game image changed but its UI overlay did not, and review the visual result without manually recreating the scene.

I tried several profiling options and integrated Tracy for quick comparisons of filter performance and regressions. We also used repeated playback as a controlled workload for separate power checks, rather than treating it as a full game session.

04 / What belongs on the DSP?

Once Game Filters had been delivered, Gabriel wanted to put the Hexagon experience to work on graphics. We reused a framework that could recognize UI elements and select their draw calls. We wanted to find out how much of that work could leave the GPU without slowing the whole pipeline materially. Both experiments were scoped to selected UI elements, not general 3D rendering.

The broad experiment: render UI through to the overlay

The broader prototype started from a selected draw call and went through UI rendering to the final overlay. It ran end to end, but performance did not meet the project’s needs. The design is documented in WO2023132816A1, automatic game UI rendering.

The narrower experiment: transform UI vertices

I designed and implemented the complete UI vertex-transform operator myself, then validated and optimized it. There was no existing CPU implementation to port. I worked out what the relevant graphics stages consumed and produced, implemented the C++ operator on Hexagon HVX, and connected it back to the rendering flow. Vertex data alignment and zero-copy buffer sharing mattered because the native GPU path was already fast.

In tests with real mobile-game scenes, the end-to-end cost of offloading those transforms was negligible by our assessment. The native graphics path still ran faster. This was a feasibility result: the DSP could do a bounded piece of graphics work without materially slowing the tested pipeline. It did not establish power savings or a shipping deployment. The related WO2022126140A1 vertex-shader application names me as a co-inventor; it is separate from the broader UI-rendering application.

05 / Taichi AOT: what it took to start on Android

My last project was early Taichi bring-up on OPPO Android phones. The idea was to compile Taichi kernels ahead of time and run the resulting SPIR-V shaders from a native Vulkan application. I set up the environment and performed early validation. Vulkan and shader capabilities on the devices we were using constrained what I could run. I no longer have a verified device/API version to cite.

The upstream record makes the division of work visible. Gabriel’s InnoPeak account landed initial Android support and Vulkan AOT runtime symbol exports. A related symbol-visibility change named both of us for Android testing. My own LLVM-off build report came from work to use the exported Taichi core in an external application. I retested the maintainers’ fix and confirmed that it resolved the build error I was seeing.

Separately, while measuring the Vulkan backend on desktop Linux, I saw process memory grow while CUDA and OpenGL stayed stable on the same sample. I reproduced the behavior from the Python frontend and reported it upstream. That observation was on desktop Linux, not evidence of the Android compatibility blocker.

On March 2, 2022, my last day, I submitted a Vulkan renderer patch that calls cleanup on destruction and bases the circle radius on the shorter screen dimension. The PR was closed without merging. On April 20, after I had left, Taichi published an Android AOT demo and credited OPPO US Research Center as a collaborator. My role was in the early bring-up and validation, not the later public release.

Public record / How to verify the story

The camera and replay sections are first-person recollections. Public links corroborate the product, design, or upstream contribution indicated; they do not independently verify the internal tests or recollected outcomes.