# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html
# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.4.1)
# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK.
set(lib_src_DIR ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI})
include_directories(
${CMAKE_SOURCE_DIR}/src/main/cpp/include/ffmpeg
${CMAKE_SOURCE_DIR}/src/main/cpp/include
)
add_library(avcodec-56 SHARED IMPORTED)
set_target_properties(avcodec-56 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libavcodec-56.so)
add_library(avformat-56 SHARED IMPORTED)
set_target_properties(avformat-56 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libavformat-56.so)
add_library(avutil-54 SHARED IMPORTED)
set_target_properties(avutil-54 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libavutil-54.so)
add_library(swresample-1 SHARED IMPORTED)
set_target_properties(swresample-1 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libswresample-1.so)
add_library(swscale-3 SHARED IMPORTED)
set_target_properties(swscale-3 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libswscale-3.so)
add_library(avdevice-56 SHARED IMPORTED)
set_target_properties(avdevice-56 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libavdevice-56.so)
add_library(postproc-53 SHARED IMPORTED)
set_target_properties(postproc-53 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libpostproc-53.so)
add_library(avfilter-5 SHARED IMPORTED)
set_target_properties(avfilter-5 PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libavfilter-5.so)
add_library(yuv SHARED IMPORTED)
set_target_properties(yuv PROPERTIES IMPORTED_LOCATION
${lib_src_DIR}/libyuv.so)
# build application's shared lib
file(GLOB native_srccpps "${CMAKE_SOURCE_DIR}/src/main/cpp/*.cpp")
file(GLOB native_srccs "${CMAKE_SOURCE_DIR}/src/main/cpp/*.c")
add_library(native-lib SHARED
${native_srccpps} ${native_srccs})
# Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by
# default, you only need to specify the name of the public NDK library
# you want to add. CMake verifies that the library exists before
# completing its build.
find_library( # Sets the name of the path variable.
log-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
log )
# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.
target_link_libraries( # Specifies the target library.
native-lib
#-ljnigraphics
-landroid
#lib_opencv
avcodec-56
avformat-56
avutil-54
swresample-1
swscale-3
avdevice-56
postproc-53
avfilter-5
yuv
# Links the target library to the log library
# included in the NDK.
${log-lib}
${jnigraphics-lib})
没有合适的资源?快使用搜索试试~ 我知道了~
FFMPEG AndroidStudio工程示例
共242个文件
h:125个
xml:33个
so:18个
5星 · 超过95%的资源 需积分: 9 15 下载量 54 浏览量
2018-06-27
13:57:54
上传
评论
收藏 40.94MB ZIP 举报
温馨提示
FFMPEG AndroidStudio工程,编译了ameabi、x86两个平台动态库(libavcodec-56.so、libavdevice-56.so、libavfilter-5.so、libavformat-56.so、libavutil-54.so、libpostproc-53.so、libswresample-1.so、libswscale-3.so)。编译了yuv像素转换库libyuv.so
资源推荐
资源详情
资源评论
收起资源包目录
FFMPEG AndroidStudio工程示例 (242个子文件)
a.amr 13KB
gradlew.bat 2KB
taskHistory.bin 1.02MB
taskHistory.bin 708KB
classAnalysis.bin 692KB
jarAnalysis.bin 260KB
fileHashes.bin 190KB
taskJars.bin 21KB
outputFiles.bin 20KB
resourceHashesCache.bin 19KB
fileHashes.bin 18KB
last-build.bin 1B
last-build.bin 1B
ffmpeg.c 146KB
ffmpeg_opt.c 123KB
cmdutils.c 70KB
ffmpeg_filter.c 37KB
ffmpegobj.cpp 10KB
.gitignore 147B
.gitignore 8B
build.gradle 1KB
build.gradle 573B
settings.gradle 16B
gradlew 5KB
avcodec.h 177KB
avformat.h 101KB
row.h 98KB
config.h 56KB
config.h 56KB
avfilter.h 56KB
opt.h 37KB
pixfmt.h 33KB
scale_row.h 25KB
frame.h 23KB
planar_functions.h 20KB
avresample.h 19KB
cmdutils.h 19KB
swresample.h 19KB
avio.h 19KB
intreadwrite.h 18KB
avdevice.h 18KB
ffmpeg.h 16KB
pixdesc.h 15KB
common.h 15KB
mem.h 14KB
old_pix_fmts.h 14KB
avstring.h 13KB
swscale.h 12KB
convert_argb.h 11KB
old_codec_ids.h 10KB
log.h 10KB
samplefmt.h 10KB
buffer.h 10KB
convert.h 9KB
channel_layout.h 9KB
macros_msa.h 9KB
avutil.h 8KB
imgutils.h 8KB
vdpau.h 8KB
dict.h 8KB
bprint.h 8KB
buffersink.h 7KB
parseutils.h 7KB
video_common.h 6KB
version.h 6KB
os_support.h 6KB
convert_from.h 6KB
convert_from_argb.h 6KB
xvmc.h 6KB
mjpeg_decoder.h 6KB
error.h 5KB
vda.h 5KB
timecode.h 5KB
eval.h 5KB
mathematics.h 5KB
rotate_row.h 5KB
fifo.h 5KB
buffersrc.h 5KB
cpu.h 5KB
audio_fifo.h 4KB
attributes.h 4KB
rational.h 4KB
vaapi.h 4KB
dv_profile.h 4KB
version.h 4KB
libm.h 4KB
rotate.h 4KB
stereo3d.h 4KB
scale.h 4KB
hash.h 4KB
asrc_abuffer.h 3KB
basic_types.h 3KB
downmix_info.h 3KB
display.h 3KB
threadmessage.h 3KB
avfft.h 3KB
postprocess.h 3KB
version.h 3KB
cmdutils_common_opts.h 3KB
hmac.h 3KB
共 242 条
- 1
- 2
- 3
资源评论
- xiaob1352019-10-28刚才没有下载成功,重试一下。
vincent1245637641
- 粉丝: 2
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Three.js介绍.zip
- Android14 CTS Verifier测试手册.pdf
- NC65 UAP65 流程开发 – 业务流 – 推单 详细笔记
- 两种计算CDF累加分布函数的Matlab程序,可以选择使用 .rar
- Windows操作系统介绍.zip
- 汉森的广义t分布的matlab程序(金融)cdf.zip
- Three.js介绍.zip0002
- 人工智能BBSO算法,MATLAB实现,很基本的人工智能算法,里面有很多源程序
- 高端大气科技互联网项目融资商业计划书产品公司品牌介绍PPT模板.pptx
- Sora AI文字生成视频实操教程、由给定的图片生成视频的教程说明书,祝你一臂之力 轻松上手Sora
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功