GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
droid_vout.c File Reference
#include <gpac/modules/video_out.h>
#include <gpac/list.h>
#include <gpac/constants.h>
#include <gpac/setup.h>
#include <GLES/gl.h>
#include <GLES/glext.h>
#include <android/log.h>
+ Include dependency graph for droid_vout.c:

Data Structures

struct  AndroidContext
 

Macros

#define TAG   "DROID_VIDEO"
 
#define LOG   __android_log_print
 
#define PI   3.1415926535897932f
 
#define RAW_OUT_PIXEL_FORMAT   GF_PIXEL_RGBA
 
#define NBPP   4
 
#define RAWCTX   AndroidContext *rc = (AndroidContext *)dr->opaque
 

Functions

void initGL (AndroidContext *rc)
 
void gluPerspective (GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar)
 
void resizeWindow (AndroidContext *rc)
 
void drawGLScene (AndroidContext *rc)
 
int releaseTexture (AndroidContext *rc)
 
int createTexture (AndroidContext *rc)
 
u32 find_pow_2 (u32 num)
 
static GF_Err droid_Resize (GF_VideoOutput *dr, u32 w, u32 h)
 
GF_Err droid_Setup (GF_VideoOutput *dr, void *os_handle, void *os_display, u32 init_flags)
 
static void droid_Shutdown (GF_VideoOutput *dr)
 
static GF_Err droid_Flush (GF_VideoOutput *dr, GF_Window *dest)
 
static GF_Err droid_LockBackBuffer (GF_VideoOutput *dr, GF_VideoSurface *vi, Bool do_lock)
 
static GF_Err droid_ProcessEvent (GF_VideoOutput *dr, GF_Event *evt)
 
GF_VideoOutputNewRawVideoOutput ()
 
void DeleteVideoOutput (void *ifce)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Data Structure Documentation

struct AndroidContext
+ Collaboration diagram for AndroidContext:
Data Fields
JNIEnv * env
jobject * bitmap
u32 width
u32 height
void * locked_data
u8 out_3d_type
u32 tex_width
u32 tex_height
GLuint texID
GLuint framebuff
GLuint depthbuff
GLubyte * texData
u8 draw_texture
u8 non_power_two

Macro Definition Documentation

#define TAG   "DROID_VIDEO"
#define LOG   __android_log_print
#define PI   3.1415926535897932f
#define RAW_OUT_PIXEL_FORMAT   GF_PIXEL_RGBA
#define NBPP   4
#define RAWCTX   AndroidContext *rc = (AndroidContext *)dr->opaque

Function Documentation

void initGL ( AndroidContext rc)

+ Here is the caller graph for this function:

void gluPerspective ( GLfloat  fovy,
GLfloat  aspect,
GLfloat  zNear,
GLfloat  zFar 
)
void resizeWindow ( AndroidContext rc)

+ Here is the caller graph for this function:

void drawGLScene ( AndroidContext rc)

+ Here is the caller graph for this function:

int releaseTexture ( AndroidContext rc)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int createTexture ( AndroidContext rc)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 find_pow_2 ( u32  num)

+ Here is the caller graph for this function:

static GF_Err droid_Resize ( GF_VideoOutput dr,
u32  w,
u32  h 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err droid_Setup ( GF_VideoOutput dr,
void *  os_handle,
void *  os_display,
u32  init_flags 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void droid_Shutdown ( GF_VideoOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err droid_Flush ( GF_VideoOutput dr,
GF_Window dest 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err droid_LockBackBuffer ( GF_VideoOutput dr,
GF_VideoSurface vi,
Bool  do_lock 
)
static

+ Here is the caller graph for this function:

static GF_Err droid_ProcessEvent ( GF_VideoOutput dr,
GF_Event evt 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_VideoOutput* NewRawVideoOutput ( )

+ Here is the call graph for this function:

void DeleteVideoOutput ( void *  ifce)

+ Here is the call graph for this function:

const u32* QueryInterfaces ( )
GF_BaseInterface* LoadInterface ( u32  InterfaceType)

+ Here is the call graph for this function:

void ShutdownInterface ( GF_BaseInterface ifce)

+ Here is the call graph for this function: