From 71e7b0bb663197c4bbc4aad55082dd6424e0fb33 Mon Sep 17 00:00:00 2001 From: tobigun Date: Wed, 22 Dec 2010 11:52:39 +0000 Subject: 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 --- mediaplugin/src/mediaplugins/include/core/plugin_core.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mediaplugin/src/mediaplugins/include/core') 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; -- cgit v1.2.3