From 35beeabffed61e1597aaffc0c5926ab5ef86d32e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 Apr 2012 21:18:03 +0200 Subject: TextureSequence Shader Support; GLMediaPlayer uses 'int' where possible; General enhancments. For details about TextureSequence/GLMediaPlayer shader collaboration w/ your own shader source, see TextureSequence and TexCubeES2 / MovieSimple demo. TextureSequence allows implementations to provide their own texture lookup function which may provide color space conversion (YUV) .. or other runtime hw-accel features. Have a look at the next commit, which provides an Libav/FFMpeg implementation w/ YUV/RGB shader conversion. MovieCube adds keyboard control (Android: firm touch on display to launch keyboard, don't break it though :) --- src/jogl/native/openmax/omx_tool.h | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'src/jogl/native/openmax/omx_tool.h') diff --git a/src/jogl/native/openmax/omx_tool.h b/src/jogl/native/openmax/omx_tool.h index 1ade60e4f..414befca0 100644 --- a/src/jogl/native/openmax/omx_tool.h +++ b/src/jogl/native/openmax/omx_tool.h @@ -73,16 +73,16 @@ typedef struct { OMX_HANDLETYPE endComponent; OMX_CALLBACKTYPE callbacks; - KDchar audioCodec[256]; - KDchar audioCodecComponent[256]; - KDchar videoCodec[256]; - KDchar videoCodecComponent[256]; + KDchar audioCodec[64]; + KDchar audioCodecComponent[64]; + KDchar videoCodec[64]; + KDchar videoCodecComponent[64]; int audioPort; int videoPort; KDuint32 width; KDuint32 height; KDuint32 bitrate; // per seconds - KDuint32 framerate; // per seconds + KDfloat32 framerate; // per seconds KDfloat32 length; // seconds KDfloat32 speed; // current clock scale KDfloat32 play_speed; // current play clock scale @@ -99,17 +99,7 @@ typedef struct { int status; - intptr_t jni_env; intptr_t jni_instance; - intptr_t jni_mid_saveAttributes; - intptr_t jni_mid_attributesUpdated; - intptr_t jni_fid_width; - intptr_t jni_fid_height; - intptr_t jni_fid_fps; - intptr_t jni_fid_bps; - intptr_t jni_fid_totalFrames; - intptr_t jni_fid_acodec; - intptr_t jni_fid_vcodec; } OMXToolBasicAV_t ; // -- cgit v1.2.3