forked from AutonomyLab/ardrone_autonomy
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AutonomyLab#17 from adamantivm/android-video
Android video
- Loading branch information
Showing
12 changed files
with
459 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/ARDroneLib/Soft/Build/config.makefile b/ARDroneLib/Soft/Build/config.makefile | ||
index eb257e2..45e4ed3 100644 | ||
--- a/ARDroneLib/Soft/Build/config.makefile | ||
+++ b/ARDroneLib/Soft/Build/config.makefile | ||
@@ -126,6 +126,7 @@ ifdef PC_TARGET | ||
endif | ||
|
||
ifeq ("$(USE_ANDROID)","yes") | ||
+ GENERIC_CFLAGS+=-g | ||
SDK_FLAGS+="USE_ANDROID=yes" | ||
SDK_FLAGS+="TOOLCHAIN_VERSION=arm-linux-androideabi-4.6" | ||
SDK_FLAGS+="NDK_PLATFORM_VERSION=android-8" | ||
diff --git a/ARDroneLib/Soft/Build/config.makefile b/ARDroneLib/Soft/Build/config.makefile | ||
index 57a5b0f..ac5ace6 100644 | ||
--- a/ARDroneLib/Soft/Build/config.makefile | ||
+++ b/ARDroneLib/Soft/Build/config.makefile | ||
@@ -3,7 +3,7 @@ | ||
# Common build definitions (CUSTOM) | ||
######################################################### | ||
|
||
-RELEASE_BUILD = yes | ||
+RELEASE_BUILD = no | ||
QUIET_BUILD = yes | ||
VPSDK_PARALLEL_BUILD = no | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/ARDroneLib/Soft/Build/config.makefile b/ARDroneLib/Soft/Build/config.makefile | ||
index 57a5b0f..ac5ace6 100644 | ||
--- a/ARDroneLib/Soft/Build/config.makefile | ||
+++ b/ARDroneLib/Soft/Build/config.makefile | ||
@@ -3,7 +3,7 @@ | ||
# Common build definitions (CUSTOM) | ||
######################################################### | ||
|
||
-RELEASE_BUILD = yes | ||
+RELEASE_BUILD = no | ||
QUIET_BUILD = yes | ||
VPSDK_PARALLEL_BUILD = no | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// Shaders.h | ||
// FreeFlight | ||
// | ||
// Created by Frédéric D'HAEYER on 24/10/11. | ||
// Copyright 2011 PARROT. All rights reserved. | ||
// | ||
#ifndef _OPENGL_SHADER_H_ | ||
#define _OPENGL_SHADER_H_ | ||
#include <GLES2/gl2.h> | ||
#include <GLES2/gl2ext.h> | ||
|
||
// #define DEBUG_SHADER | ||
|
||
/* Shader Utilities */ | ||
GLint opengl_shader_compile(GLuint *shader, GLenum type, GLsizei count, const char *content_file); | ||
GLint opengl_shader_link(GLuint prog); | ||
GLint opengl_shader_validate(GLuint prog); | ||
void opengl_shader_destroy(GLuint vertShader, GLuint fragShader, GLuint prog); | ||
|
||
#endif // _OPENGL_SHADER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* opengl_stage.h | ||
* Test | ||
* | ||
* Created by Karl Leplat on 22/02/10. | ||
* Copyright 2010 Parrot SA. All rights reserved. | ||
* | ||
*/ | ||
#ifndef _OPENGL_STAGE_H_ | ||
#define _OPENGL_STAGE_H_ | ||
|
||
#include <GLES2/gl2.h> | ||
#include <GLES2/gl2ext.h> | ||
|
||
// TODO: Move this define to CMake | ||
#ifndef FFMPEG_SUPPORT | ||
#define FFMPEG_SUPPORT | ||
#endif | ||
|
||
#include <ardrone_tool/Video/video_stage.h> | ||
|
||
typedef struct _opengl_video_config_t | ||
{ | ||
video_decoder_config_t *video_decoder; | ||
vp_os_mutex_t mutex; | ||
GLuint widthImage; | ||
GLuint heightImage; | ||
GLuint widthTexture; | ||
GLuint heightTexture; | ||
|
||
GLfloat scaleModelX; | ||
GLfloat scaleModelY; | ||
GLfloat scaleTextureX; | ||
GLfloat scaleTextureY; | ||
GLuint bytesPerPixel; | ||
GLenum format; | ||
GLenum type; | ||
void* data; | ||
GLuint identifier; | ||
uint32_t num_picture_decoded; | ||
uint32_t num_frames; | ||
} opengl_video_stage_config_t; | ||
|
||
C_RESULT opengl_video_stage_open(opengl_video_stage_config_t *cfg); | ||
C_RESULT opengl_video_stage_transform(opengl_video_stage_config_t *cfg, vp_api_io_data_t *in, vp_api_io_data_t *out); | ||
C_RESULT opengl_video_stage_close(opengl_video_stage_config_t *cfg); | ||
|
||
opengl_video_stage_config_t* opengl_video_stage_get(void); | ||
|
||
extern const vp_api_stage_funcs_t opengl_video_stage_funcs; | ||
|
||
#endif // _OPENGL_STAGE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.