Merge branch 'video' of git.linphone.org:linphone-android-private into video
This commit is contained in:
commit
95070d1345
13 changed files with 108 additions and 7 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -25,3 +25,9 @@
|
||||||
[submodule "submodules/externals/libswscale"]
|
[submodule "submodules/externals/libswscale"]
|
||||||
path = submodules/externals/libswscale
|
path = submodules/externals/libswscale
|
||||||
url = git://git.ffmpeg.org/libswscale
|
url = git://git.ffmpeg.org/libswscale
|
||||||
|
[submodule "submodules/externals/x264"]
|
||||||
|
path = submodules/externals/x264
|
||||||
|
url = git://git.videolan.org/x264.git
|
||||||
|
[submodule "submodules/msx264"]
|
||||||
|
path = submodules/msx264
|
||||||
|
url = git://git.linphone.org/msx264.git
|
||||||
|
|
|
@ -68,8 +68,7 @@
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name=".VideoCallActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
<activity android:name=".VideoCallActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
|
||||||
android:screenOrientation="nosensor">
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
@ -115,8 +114,8 @@
|
||||||
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
|
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.BOOT_COMPLETED"></uses-permission>
|
<uses-permission android:name="android.permission.BOOT_COMPLETED"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
|
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.CAMERA" />
|
<uses-permission android:name="android.permission.CAMERA" />
|
||||||
|
|
||||||
<uses-feature android:name="android.hardware.camera" />
|
<uses-feature android:name="android.hardware.camera" />
|
||||||
<uses-feature android:name="android.hardware.camera.autofocus" />
|
<uses-feature android:name="android.hardware.camera.autofocus" />
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,10 @@ include $(root-dir)/submodules/linphone/mediastreamer2/build/android/Android.mk
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||||
include $(root-dir)/submodules/msilbc/Android.mk
|
include $(root-dir)/submodules/msilbc/Android.mk
|
||||||
|
include $(root-dir)/submodules/msx264/Android.mk
|
||||||
include $(root-dir)/submodules/externals/build/ffmpeg/Android.mk
|
include $(root-dir)/submodules/externals/build/ffmpeg/Android.mk
|
||||||
|
include $(root-dir)/submodules/externals/build/x264/Android.mk
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(root-dir)/submodules/linphone/build/android/Android.mk
|
include $(root-dir)/submodules/linphone/build/android/Android.mk
|
||||||
|
|
|
@ -3,7 +3,7 @@ APP_MODULES :=libspeex libgsm libortp libosip2 libeXosip2 libmediastreamer2
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||||
APP_MODULES +=libmsilbc libavutil libavcore libavcodec libswscale
|
APP_MODULES +=libmsilbc libavutil libavcore libavcodec libswscale libx264 libmsx264
|
||||||
endif
|
endif
|
||||||
APP_BUILD_SCRIPT:=$(call my-dir)/Android.mk
|
APP_BUILD_SCRIPT:=$(call my-dir)/Android.mk
|
||||||
APP_PLATFORM := android-8
|
APP_PLATFORM := android-8
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/video_frame" android:orientation="vertical"
|
android:id="@+id/video_frame"
|
||||||
android:layout_height="fill_parent" android:layout_width="fill_parent">
|
android:layout_height="fill_parent" android:layout_width="fill_parent">
|
||||||
|
|
||||||
<SurfaceView android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/video_surface"></SurfaceView>
|
<SurfaceView android:layout_height="fill_parent" android:layout_width="fill_parent" android:id="@+id/video_surface"></SurfaceView>
|
||||||
|
|
|
@ -48,10 +48,16 @@ public class AndroidVideoWindowImpl {
|
||||||
}
|
}
|
||||||
if (mListener!=null)
|
if (mListener!=null)
|
||||||
mListener.onSurfaceDestroyed(AndroidVideoWindowImpl.this);
|
mListener.onSurfaceDestroyed(AndroidVideoWindowImpl.this);
|
||||||
Log.w("Linphone", "Video display surface destroyed");
|
Log.d("Linphone", "Video display surface destroyed");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
static final int LANDSCAPE=0;
|
||||||
|
static final int PORTRAIT=1;
|
||||||
|
public void requestOrientation(int orientation){
|
||||||
|
//Surface.setOrientation(0, orientation==LANDSCAPE ? 1 : 0);
|
||||||
|
//Log.d("Linphone", "Orientation changed.");
|
||||||
|
}
|
||||||
public void setListener(VideoWindowListener l){
|
public void setListener(VideoWindowListener l){
|
||||||
mListener=l;
|
mListener=l;
|
||||||
}
|
}
|
||||||
|
|
61
submodules/externals/build/x264/Android.mk
vendored
Normal file
61
submodules/externals/build/x264/Android.mk
vendored
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
#
|
||||||
|
# List of compiled files and related options obtained using
|
||||||
|
# ./configure --cross-prefix=arm-none-linux-gnueabi- --host=arm-none-linux-gnueabi --disable-pthread --enable-pic
|
||||||
|
# && make
|
||||||
|
#
|
||||||
|
|
||||||
|
LOCAL_PATH:= $(call my-dir)/../../x264
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_MODULE := libx264
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES = \
|
||||||
|
common/mc.c \
|
||||||
|
common/predict.c \
|
||||||
|
common/pixel.c \
|
||||||
|
common/macroblock.c \
|
||||||
|
common/frame.c \
|
||||||
|
common/dct.c \
|
||||||
|
common/cpu.c \
|
||||||
|
common/cabac.c \
|
||||||
|
common/common.c \
|
||||||
|
common/mdate.c \
|
||||||
|
common/rectangle.c \
|
||||||
|
common/set.c \
|
||||||
|
common/quant.c \
|
||||||
|
common/deblock.c \
|
||||||
|
common/vlc.c \
|
||||||
|
common/mvpred.c \
|
||||||
|
common/bitstream.c \
|
||||||
|
encoder/analyse.c \
|
||||||
|
encoder/me.c \
|
||||||
|
encoder/ratecontrol.c \
|
||||||
|
encoder/set.c \
|
||||||
|
encoder/macroblock.c \
|
||||||
|
encoder/cabac.c \
|
||||||
|
encoder/cavlc.c \
|
||||||
|
encoder/encoder.c \
|
||||||
|
encoder/lookahead.c \
|
||||||
|
common/arm/mc-c.c \
|
||||||
|
common/arm/predict-c.c \
|
||||||
|
common/arm/cpu-a.S \
|
||||||
|
common/arm/pixel-a.S \
|
||||||
|
common/arm/mc-a.S \
|
||||||
|
common/arm/dct-a.S \
|
||||||
|
common/arm/quant-a.S \
|
||||||
|
common/arm/deblock-a.S \
|
||||||
|
common/arm/predict-a.S
|
||||||
|
|
||||||
|
|
||||||
|
LOCAL_ARM_MODE := arm
|
||||||
|
|
||||||
|
|
||||||
|
LOCAL_CFLAGS += -DPIC -DBIT_DEPTH=8 -std=gnu99
|
||||||
|
|
||||||
|
#for including config.h:
|
||||||
|
LOCAL_C_INCLUDES += \
|
||||||
|
$(LOCAL_PATH)/../build/x264 \
|
||||||
|
$(LOCAL_PATH)/
|
||||||
|
|
||||||
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
24
submodules/externals/build/x264/config.h
vendored
Normal file
24
submodules/externals/build/x264/config.h
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#define HAVE_MALLOC_H 1
|
||||||
|
#define HAVE_ARMV6 1
|
||||||
|
#define HAVE_ARMV6T2 1
|
||||||
|
#define HAVE_NEON 1
|
||||||
|
#define ARCH_ARM 1
|
||||||
|
#define SYS_LINUX 1
|
||||||
|
#define HAVE_LOG2F 0
|
||||||
|
#define fseek fseeko
|
||||||
|
#define ftell ftello
|
||||||
|
#define BIT_DEPTH 8
|
||||||
|
#define HAVE_GPL 1
|
||||||
|
#define HAVE_ALTIVEC 0
|
||||||
|
#define HAVE_ALTIVEC_H 0
|
||||||
|
#define HAVE_MMX 0
|
||||||
|
#define HAVE_PTHREAD 0
|
||||||
|
#define HAVE_VISUALIZE 0
|
||||||
|
#define HAVE_SWSCALE 0
|
||||||
|
#define HAVE_LAVF 0
|
||||||
|
#define HAVE_FFMS 0
|
||||||
|
#define HAVE_GPAC 0
|
||||||
|
#define HAVE_GF_MALLOC 0
|
||||||
|
#define HAVE_AVS 0
|
||||||
|
#define X264_VERSION " r1804 e89c4cf"
|
||||||
|
#define X264_POINTVER "0.110.1804 e89c4cf"
|
1
submodules/externals/x264
vendored
Submodule
1
submodules/externals/x264
vendored
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e89c4cfc9f37d0b7684507974b333545b5bcc37a
|
|
@ -1 +1 @@
|
||||||
Subproject commit a5d821c32ea57fa44d8cec86ca0d9b805a3b3f4a
|
Subproject commit 5cdf291009aa0481259b99ff15c62d0c178d5e36
|
1
submodules/msx264
Submodule
1
submodules/msx264
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e9852e6e87809242ad126fc776fa1373673ab7f2
|
Loading…
Reference in a new issue