修改cpp部分文件路径

pull/107/head
frank 7 years ago
parent 101b118544
commit 64e00b1f4f
  1. 9
      app/CMakeLists.txt
  2. 0
      app/src/main/cpp/ffmpeg/cmdutils.c
  3. 0
      app/src/main/cpp/ffmpeg/cmdutils.h
  4. 0
      app/src/main/cpp/ffmpeg/cmdutils_common_opts.h
  5. 0
      app/src/main/cpp/ffmpeg/config.h
  6. 0
      app/src/main/cpp/ffmpeg/ffmpeg.c
  7. 0
      app/src/main/cpp/ffmpeg/ffmpeg.h
  8. 2
      app/src/main/cpp/ffmpeg/ffmpeg_filter.c
  9. 6
      app/src/main/cpp/ffmpeg/ffmpeg_opt.c
  10. 2
      app/src/main/cpp/ffmpeg_cmd.c
  11. 2
      app/src/main/cpp/include/libavcodec/arm/mathops.h
  12. 2
      app/src/main/cpp/include/libavcodec/mathops.h
  13. 2
      app/src/main/cpp/include/libavformat/network.h
  14. 2
      app/src/main/cpp/include/libavformat/os_support.h
  15. 2
      app/src/main/cpp/include/libavutil/arm/timer.h
  16. 2
      app/src/main/cpp/include/libavutil/internal.h
  17. 2
      app/src/main/cpp/include/libavutil/libm.h
  18. 2
      app/src/main/cpp/include/libavutil/time_internal.h
  19. 2
      app/src/main/cpp/include/libavutil/timer.h
  20. 2
      app/src/main/java/com/frank/ffmpeg/activity/VideoHandleActivity.java
  21. 2
      app/src/main/res/values/strings.xml

@ -17,11 +17,12 @@ add_library( # Sets the name of the library.
SHARED SHARED
# Provides a relative path to your source file(s). # Provides a relative path to your source file(s).
src/main/cpp/ffmpeg/cmdutils.c
src/main/cpp/ffmpeg/ffmpeg.c
src/main/cpp/ffmpeg/ffmpeg_filter.c
src/main/cpp/ffmpeg/ffmpeg_opt.c
src/main/cpp/ffmpeg_cmd.c src/main/cpp/ffmpeg_cmd.c
src/main/cpp/cmdutils.c
src/main/cpp/ffmpeg.c
src/main/cpp/ffmpeg_filter.c
src/main/cpp/ffmpeg_opt.c
src/main/cpp/audio_player.c src/main/cpp/audio_player.c
src/main/cpp/openSL_audio_player.c src/main/cpp/openSL_audio_player.c
src/main/cpp/video_player.c src/main/cpp/video_player.c

@ -20,7 +20,7 @@
#include <stdint.h> #include <stdint.h>
#include "ffmpeg.h" #include "ffmpeg/ffmpeg.h"
#include "libavfilter/avfilter.h" #include "libavfilter/avfilter.h"
#include "libavfilter/buffersink.h" #include "libavfilter/buffersink.h"

@ -20,8 +20,8 @@
#include <stdint.h> #include <stdint.h>
#include "ffmpeg.h" #include "ffmpeg/ffmpeg.h"
#include "cmdutils.h" #include "ffmpeg/cmdutils.h"
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
@ -3106,7 +3106,7 @@ static int opt_progress(void *optctx, const char *opt, const char *arg)
#define OFFSET(x) offsetof(OptionsContext, x) #define OFFSET(x) offsetof(OptionsContext, x)
const OptionDef options[] = { const OptionDef options[] = {
/* main options */ /* main options */
#include "cmdutils_common_opts.h" #include "ffmpeg/cmdutils_common_opts.h"
{ "f", HAS_ARG | OPT_STRING | OPT_OFFSET | { "f", HAS_ARG | OPT_STRING | OPT_OFFSET |
OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(format) }, OPT_INPUT | OPT_OUTPUT, { .off = OFFSET(format) },
"force format", "fmt" }, "force format", "fmt" },

@ -1,5 +1,5 @@
#include <jni.h> #include <jni.h>
#include "ffmpeg.h" #include "ffmpeg/ffmpeg.h"
JNIEXPORT jint JNICALL Java_com_frank_ffmpeg_FFmpegCmd_handle JNIEXPORT jint JNICALL Java_com_frank_ffmpeg_FFmpegCmd_handle
(JNIEnv *env, jclass obj, jobjectArray commands){ (JNIEnv *env, jclass obj, jobjectArray commands){

@ -23,7 +23,7 @@
#define AVCODEC_ARM_MATHOPS_H #define AVCODEC_ARM_MATHOPS_H
#include <stdint.h> #include <stdint.h>
#include "config.h" #include "ffmpeg/config.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#if HAVE_INLINE_ASM #if HAVE_INLINE_ASM

@ -25,7 +25,7 @@
#include <stdint.h> #include <stdint.h>
#include "libavutil/common.h" #include "libavutil/common.h"
#include "config.h" #include "ffmpeg/config.h"
#define MAX_NEG_CROP 1024 #define MAX_NEG_CROP 1024

@ -24,7 +24,7 @@
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include "config.h" #include "ffmpeg/config.h"
#include "libavutil/error.h" #include "libavutil/error.h"
#include "os_support.h" #include "os_support.h"
#include "avio.h" #include "avio.h"

@ -27,7 +27,7 @@
* miscellaneous OS support macros and functions. * miscellaneous OS support macros and functions.
*/ */
#include "config.h" #include "ffmpeg/config.h"
#include <sys/stat.h> #include <sys/stat.h>

@ -22,7 +22,7 @@
#define AVUTIL_ARM_TIMER_H #define AVUTIL_ARM_TIMER_H
#include <stdint.h> #include <stdint.h>
#include "config.h" #include "ffmpeg/config.h"
#if HAVE_INLINE_ASM && defined(__ARM_ARCH_7A__) #if HAVE_INLINE_ASM && defined(__ARM_ARCH_7A__)

@ -34,7 +34,7 @@
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <assert.h> #include <assert.h>
#include "config.h" #include "ffmpeg/config.h"
#include "attributes.h" #include "attributes.h"
#include "timer.h" #include "timer.h"
#include "cpu.h" #include "cpu.h"

@ -26,7 +26,7 @@
#define AVUTIL_LIBM_H #define AVUTIL_LIBM_H
#include <math.h> #include <math.h>
#include "config.h" #include "ffmpeg/config.h"
#include "attributes.h" #include "attributes.h"
#include "intfloat.h" #include "intfloat.h"
#include "mathematics.h" #include "mathematics.h"

@ -20,7 +20,7 @@
#define AVUTIL_TIME_INTERNAL_H #define AVUTIL_TIME_INTERNAL_H
#include <time.h> #include <time.h>
#include "config.h" #include "ffmpeg/config.h"
#if !HAVE_GMTIME_R && !defined(gmtime_r) #if !HAVE_GMTIME_R && !defined(gmtime_r)
static inline struct tm *gmtime_r(const time_t* clock, struct tm *result) static inline struct tm *gmtime_r(const time_t* clock, struct tm *result)

@ -30,7 +30,7 @@
#include <stdint.h> #include <stdint.h>
#include <inttypes.h> #include <inttypes.h>
#include "config.h" #include "ffmpeg/config.h"
#if HAVE_MACH_MACH_TIME_H #if HAVE_MACH_MACH_TIME_H
#include <mach/mach_time.h> #include <mach/mach_time.h>

@ -78,6 +78,7 @@ public class VideoHandleActivity extends AppCompatActivity implements View.OnCli
findViewById(R.id.btn_generate_gif).setVisibility(View.VISIBLE); findViewById(R.id.btn_generate_gif).setVisibility(View.VISIBLE);
findViewById(R.id.btn_screen_record).setVisibility(View.GONE); findViewById(R.id.btn_screen_record).setVisibility(View.GONE);
findViewById(R.id.btn_combine_video).setVisibility(View.VISIBLE); findViewById(R.id.btn_combine_video).setVisibility(View.VISIBLE);
findViewById(R.id.btn_play_video).setVisibility(View.VISIBLE);
} }
private void setGone() { private void setGone() {
@ -89,6 +90,7 @@ public class VideoHandleActivity extends AppCompatActivity implements View.OnCli
findViewById(R.id.btn_generate_gif).setVisibility(View.GONE); findViewById(R.id.btn_generate_gif).setVisibility(View.GONE);
findViewById(R.id.btn_screen_record).setVisibility(View.GONE); findViewById(R.id.btn_screen_record).setVisibility(View.GONE);
findViewById(R.id.btn_combine_video).setVisibility(View.GONE); findViewById(R.id.btn_combine_video).setVisibility(View.GONE);
findViewById(R.id.btn_play_video).setVisibility(View.GONE);
} }
@Override @Override

@ -1,5 +1,5 @@
<resources> <resources>
<string name="app_name">AudioHandle</string> <string name="app_name">FFmpegAndroid</string>
<string name="audio_transform">音频转码</string> <string name="audio_transform">音频转码</string>
<string name="audio_cut">音频剪切</string> <string name="audio_cut">音频剪切</string>
<string name="audio_concat">音频合并</string> <string name="audio_concat">音频合并</string>

Loading…
Cancel
Save