Code Monkey home page Code Monkey logo

nativeopengllearn's Introduction

参考 字节流动NDK_OpenGLES_3_0 基于c++为主的OpenGL自学项目

项目下载

  git clone https://github.com/ShikinChen/NativeOpenglLearn.git --recursive

主要使用CLion开发(mac osx系统),需要在Preferences->Build,Execution,Deployment->CMake 添加一个ndk配置并且配置相关参数,也可以使用Android studio导入在 platforms/android项目

-DCMAKE_TOOLCHAIN_FILE="ndk的路径/build/cmake/android.toolchain.cmake"
-DCMAKE_SYSTEM_NAME=Android
-DANDROID_ABI=arm64-v8a
-DCMAKE_ANDROID_NDK="ndk的路径"
-DCMAKE_SYSTEM_VERSION=24
-DCMAKE_C_FLAGS=""
-DCMAKE_CXX_FLAGS=""
-DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang

参考图:

配置参考图

资源准备:

需要安装ffmpeg

jpg转nv21

ffmpeg -i test02.jpg -pix_fmt nv21 test02.yuv

jpg转nv12

ffmpeg -i test03.jpg -pix_fmt nv12 test03_nv12.yuv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.