Skip to content

Commit

Permalink
perf: Use ImageWriter instead of OpenGL Pipeline for faster process…
Browse files Browse the repository at this point in the history
…ing (#1789)

* perf: Use `ImageWriter` instead of OpenGL Pipeline for faster processing

* chore: Remove C++ part of OpenGL pipeline

* Clean up

* Update README.md
  • Loading branch information
mrousavy authored Sep 11, 2023
1 parent 648c363 commit 4e96eb7
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 943 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ VisionCamera is a powerful and fast Camera component for React Native. It featur
* 🔍 Smooth zooming (Reanimated)
* ⏯️ Fast pause and resume
* 🌓 HDR & Night modes
*Custom C++/GPU accelerated video pipeline (OpenGL)
*Highly efficient C++/GPU buffers

Install VisionCamera from npm:

Expand Down
6 changes: 0 additions & 6 deletions package/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ add_library(
SHARED
../cpp/JSITypedArray.cpp
src/main/cpp/VisionCamera.cpp
src/main/cpp/VideoPipeline.cpp
src/main/cpp/PassThroughShader.cpp
src/main/cpp/OpenGLContext.cpp
src/main/cpp/OpenGLRenderer.cpp
# Frame Processor
src/main/cpp/frameprocessor/FrameHostObject.cpp
src/main/cpp/frameprocessor/FrameProcessorPluginHostObject.cpp
Expand Down Expand Up @@ -58,8 +54,6 @@ target_link_libraries(
ReactAndroid::jsi # <-- RN: JSI
ReactAndroid::reactnativejni # <-- RN: React Native JNI bindings
fbjni::fbjni # <-- fbjni
GLESv2 # <-- OpenGL (for VideoPipeline)
EGL # <-- OpenGL (EGL) (for VideoPipeline)
)

# Optionally also add Frame Processors here
Expand Down
163 changes: 0 additions & 163 deletions package/android/src/main/cpp/OpenGLContext.cpp

This file was deleted.

73 changes: 0 additions & 73 deletions package/android/src/main/cpp/OpenGLContext.h

This file was deleted.

34 changes: 0 additions & 34 deletions package/android/src/main/cpp/OpenGLError.h

This file was deleted.

74 changes: 0 additions & 74 deletions package/android/src/main/cpp/OpenGLRenderer.cpp

This file was deleted.

Loading

1 comment on commit 4e96eb7

@vercel
Copy link

@vercel vercel bot commented on 4e96eb7 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.