libgpac
Documentation of the core library of GPAC
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 dependency graph for droid_vout.c:

Data Structures

struct  AndroidContext
 

Macros

#define PI   3.1415926535897932f
 
#define RAW_OUT_PIXEL_FORMAT   GF_PIXEL_RGBA
 
#define NBPP   4
 
#define DROIDVOUTCTX   AndroidContext *rc = (AndroidContext *)dr->opaque
 

Functions

static void initGL (AndroidContext *rc)
 
static void gluPerspective (GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar)
 
static void resizeWindow (AndroidContext *rc)
 
static void drawGLScene (AndroidContext *rc)
 
static int releaseTexture (AndroidContext *rc)
 
static int createTexture (AndroidContext *rc)
 
static u32 find_pow_2 (u32 num)
 
static GF_Err droid_Resize (GF_VideoOutput *dr, u32 w, u32 h)
 
static 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)
 
static GF_Err droid_SetFullScreen (GF_VideoOutput *dr, Bool bOn, u32 *outWidth, u32 *outHeight)
 
GF_VideoOutputNewAndroidVideoOutput ()
 
void DeleteAndroidVideoOutput (void *ifce)
 
GPAC_MODULE_EXPORT const u32QueryInterfaces ()
 
GPAC_MODULE_EXPORT GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
GPAC_MODULE_EXPORT void ShutdownInterface (GF_BaseInterface *ifce)
 

Data Structure Documentation

◆ AndroidContext

struct AndroidContext
Data Fields
JNIEnv * env
jobject * bitmap
u32 width
u32 height
void * locked_data
u8 out_3d_type
u32 tex_width
u32 tex_height
GLint texID
GLubyte * texData
u8 draw_texture
u8 non_power_two
Bool fullscreen

Macro Definition Documentation

◆ PI

#define PI   3.1415926535897932f

◆ RAW_OUT_PIXEL_FORMAT

#define RAW_OUT_PIXEL_FORMAT   GF_PIXEL_RGBA

◆ NBPP

#define NBPP   4

◆ DROIDVOUTCTX

#define DROIDVOUTCTX   AndroidContext *rc = (AndroidContext *)dr->opaque

Function Documentation

◆ initGL()

static void initGL ( AndroidContext rc)
static
+ Here is the caller graph for this function:

◆ gluPerspective()

static void gluPerspective ( GLfloat  fovy,
GLfloat  aspect,
GLfloat  zNear,
GLfloat  zFar 
)
static

◆ resizeWindow()

static void resizeWindow ( AndroidContext rc)
static
+ Here is the caller graph for this function:

◆ drawGLScene()

static void drawGLScene ( AndroidContext rc)
static
+ Here is the caller graph for this function:

◆ releaseTexture()

static int releaseTexture ( AndroidContext rc)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createTexture()

static int createTexture ( AndroidContext rc)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_pow_2()

static u32 find_pow_2 ( u32  num)
static
+ Here is the caller graph for this function:

◆ droid_Resize()

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:

◆ droid_Setup()

static GF_Err droid_Setup ( GF_VideoOutput dr,
void *  os_handle,
void *  os_display,
u32  init_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ droid_Shutdown()

static void droid_Shutdown ( GF_VideoOutput dr)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ droid_Flush()

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:

◆ droid_LockBackBuffer()

static GF_Err droid_LockBackBuffer ( GF_VideoOutput dr,
GF_VideoSurface vi,
Bool  do_lock 
)
static
+ Here is the caller graph for this function:

◆ droid_ProcessEvent()

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:

◆ droid_SetFullScreen()

static GF_Err droid_SetFullScreen ( GF_VideoOutput dr,
Bool  bOn,
u32 outWidth,
u32 outHeight 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewAndroidVideoOutput()

GF_VideoOutput* NewAndroidVideoOutput ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeleteAndroidVideoOutput()

void DeleteAndroidVideoOutput ( void *  ifce)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QueryInterfaces()

GPAC_MODULE_EXPORT const u32* QueryInterfaces ( )

◆ LoadInterface()

GPAC_MODULE_EXPORT GF_BaseInterface* LoadInterface ( u32  InterfaceType)
+ Here is the call graph for this function:

◆ ShutdownInterface()

GPAC_MODULE_EXPORT void ShutdownInterface ( GF_BaseInterface ifce)
+ Here is the call graph for this function: