GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
|
#include <gpac/terminal.h>
#include <gpac/internal/terminal_dev.h>
#include <gpac/internal/compositor_dev.h>
#include <gpac/modules/codec.h>
#include <gpac/constants.h>
#include <gpac/modules/service.h>
#include <gpac/thread.h>
#include <gpac/media_tools.h>
#include <jni.h>
#include <android/log.h>
Data Structures | |
struct | ISOMReader |
Macros | |
#define | LOG_TAG "ANDROID_CAMERA" |
#define | QUOTEME_(x) #x |
#define | QUOTEME(x) QUOTEME_(x) |
#define | LOGI(...) fprintf(stderr, "I/" LOG_TAG " (" __FILE__ ":" QUOTEME(__LINE__) "): " __VA_ARGS__) |
#define | LOGE(...) fprintf(stderr, "E/" LOG_TAG "(" ")" __VA_ARGS__) |
#define | CAM_PIXEL_FORMAT GF_PIXEL_NV21 |
#define | CAM_PIXEL_SIZE 1.5f |
#define | CAM_WIDTH 640 |
#define | CAM_HEIGHT 480 |
Variables | |
static JavaVM * | javaVM = 0 |
static jclass | camCtrlClass |
static jmethodID | cid |
static jmethodID | startCamera |
static jmethodID | stopCamera |
static jmethodID | startProcessing |
static jmethodID | stopProcessing |
static jmethodID | getImageFormat |
static jmethodID | getImageHeight |
static jmethodID | getImageWidth |
ISOMReader * | globReader |
struct ISOMReader |
Data Fields | ||
---|---|---|
GF_InputService * | input | |
GF_ClientService * | service | |
LPNETCHANNEL | channel | |
u32 | time_scale | |
u32 | base_track_id | |
struct _tag_terminal * | term | |
u32 | cntr | |
u32 | width | |
u32 | height | |
Bool | started | |
JNIEnv * | env | |
u8 | isAttached | |
jclass | camCtrlClass | |
jmethodID | cid | |
jobject | camCtrlObj | |
jmethodID | startCamera | |
jmethodID | stopCamera | |
jmethodID | startProcessing | |
jmethodID | stopProcessing | |
jmethodID | getImageFormat | |
jmethodID | getImageHeight | |
jmethodID | getImageWidth | |
GF_List * | channels | |
GF_ISOFile * | mov | |
GF_DownloadSession * | dnload | |
u64 | missing_bytes | |
u64 | last_size | |
Bool | no_service_desc | |
u32 | frag_type | |
Bool | waiting_for_data | |
GF_Mutex * | segment_mutex | |
Bool | use_memory | |
u32 | seg_opened | |
Bool | drop_next_segment | |
Bool | in_data_flush | |
s32 | has_pending_segments |
#define LOG_TAG "ANDROID_CAMERA" |
#define QUOTEME_ | ( | x | ) | #x |
#define QUOTEME | ( | x | ) | QUOTEME_(x) |
#define LOGI | ( | ... | ) | fprintf(stderr, "I/" LOG_TAG " (" __FILE__ ":" QUOTEME(__LINE__) "): " __VA_ARGS__) |
#define LOGE | ( | ... | ) | fprintf(stderr, "E/" LOG_TAG "(" ")" __VA_ARGS__) |
#define CAM_PIXEL_FORMAT GF_PIXEL_NV21 |
#define CAM_PIXEL_SIZE 1.5f |
#define CAM_WIDTH 640 |
#define CAM_HEIGHT 480 |
jint JNI_OnLoad | ( | JavaVM * | vm, |
void * | reserved | ||
) |
JavaVM* GetJavaVM | ( | ) |
JNIEnv* GetEnv | ( | ) |
void JNI_OnUnload | ( | JavaVM * | vm, |
void * | reserved | ||
) |
void loadCameraControler | ( | ISOMReader * | read | ) |
void camStartCamera | ( | ISOMReader * | read | ) |
void camStopCamera | ( | ISOMReader * | read | ) |
Bool CAM_CanHandleURL | ( | GF_InputService * | plug, |
const char * | url | ||
) |
void unloadCameraControler | ( | ISOMReader * | read | ) |
u32 unregisterFunc | ( | void * | data | ) |
GF_Err CAM_ConnectService | ( | GF_InputService * | plug, |
GF_ClientService * | serv, | ||
const char * | url | ||
) |
GF_Err CAM_CloseService | ( | GF_InputService * | plug | ) |
u32 getWidth | ( | ISOMReader * | read | ) |
u32 getHeight | ( | ISOMReader * | read | ) |
|
static |
GF_Err CAM_ConnectChannel | ( | GF_InputService * | plug, |
LPNETCHANNEL | channel, | ||
const char * | url, | ||
Bool | upstream | ||
) |
GF_Err CAM_DisconnectChannel | ( | GF_InputService * | plug, |
LPNETCHANNEL | channel | ||
) |
int* decodeYUV420SP | ( | char * | yuv420sp, |
int | width, | ||
int | height | ||
) |
void Java_com_gpac_Osmo4_Preview_processFrameBuf | ( | JNIEnv * | env, |
jobject | thiz, | ||
jbyteArray | arr | ||
) |
void CallCamMethod | ( | ISOMReader * | read, |
jmethodID | methodID | ||
) |
void pauseCamera | ( | ISOMReader * | read | ) |
void resumeCamera | ( | ISOMReader * | read | ) |
GF_Err CAM_ServiceCommand | ( | GF_InputService * | plug, |
GF_NetworkCommand * | com | ||
) |
GF_InputService* CAM_client_load | ( | ) |
void CAM_client_del | ( | GF_BaseInterface * | bi | ) |
const u32* QueryInterfaces | ( | ) |
GF_BaseInterface* LoadInterface | ( | u32 | InterfaceType | ) |
void ShutdownInterface | ( | GF_BaseInterface * | ifce | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
ISOMReader* globReader |