diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-12-22 11:52:39 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-12-22 11:52:39 +0000 |
commit | 71e7b0bb663197c4bbc4aad55082dd6424e0fb33 (patch) | |
tree | c79cc705da2c3e986aa33fed999b236c310c931f /mediaplugin/src/mediaplugins/include/core | |
parent | dbdb5b7e4fc5acd72c9283990a412fffb7bb33c3 (diff) | |
download | usdx-71e7b0bb663197c4bbc4aad55082dd6424e0fb33.tar.gz usdx-71e7b0bb663197c4bbc4aad55082dd6424e0fb33.tar.xz usdx-71e7b0bb663197c4bbc4aad55082dd6424e0fb33.zip |
meld video-frame info (width/height/aspect) to reduce exported functions
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2766 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'mediaplugin/src/mediaplugins/include/core')
-rw-r--r-- | mediaplugin/src/mediaplugins/include/core/plugin_core.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mediaplugin/src/mediaplugins/include/core/plugin_core.h b/mediaplugin/src/mediaplugins/include/core/plugin_core.h index a4839909..acbe0f4a 100644 --- a/mediaplugin/src/mediaplugins/include/core/plugin_core.h +++ b/mediaplugin/src/mediaplugins/include/core/plugin_core.h @@ -203,6 +203,12 @@ typedef struct audioConverterInfo_t { double PLUGIN_CALL (*getRatio)(audioConvertStream_t *stream); } audioConverterInfo_t; +typedef struct videoFrameInfo_t { + int width; + int height; + double aspect; +} videoFrameInfo_t; + typedef struct videoDecoderInfo_t { int priority; BOOL PLUGIN_CALL (*init)(); @@ -213,9 +219,7 @@ typedef struct videoDecoderInfo_t { BOOL PLUGIN_CALL (*getLoop)(videoDecodeStream_t *stream); void PLUGIN_CALL (*setPosition)(videoDecodeStream_t *stream, double time); double PLUGIN_CALL (*getPosition)(videoDecodeStream_t *stream); - int PLUGIN_CALL (*getFrameWidth)(videoDecodeStream_t *stream); - int PLUGIN_CALL (*getFrameHeight)(videoDecodeStream_t *stream); - double PLUGIN_CALL (*getFrameAspect)(videoDecodeStream_t *stream); + void PLUGIN_CALL (*getFrameInfo)(videoDecodeStream_t *stream, videoFrameInfo_t *info); uint8_t* PLUGIN_CALL (*getFrame)(videoDecodeStream_t *stream, long double time); } videoDecoderInfo_t; |