aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/src/media/UVideoDecoderPlugin.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-12-22 11:52:39 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-12-22 11:52:39 +0000
commit71e7b0bb663197c4bbc4aad55082dd6424e0fb33 (patch)
treec79cc705da2c3e986aa33fed999b236c310c931f /mediaplugin/src/media/UVideoDecoderPlugin.pas
parentdbdb5b7e4fc5acd72c9283990a412fffb7bb33c3 (diff)
downloadusdx-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/media/UVideoDecoderPlugin.pas')
-rw-r--r--mediaplugin/src/media/UVideoDecoderPlugin.pas15
1 files changed, 12 insertions, 3 deletions
diff --git a/mediaplugin/src/media/UVideoDecoderPlugin.pas b/mediaplugin/src/media/UVideoDecoderPlugin.pas
index 722928d8..ef411023 100644
--- a/mediaplugin/src/media/UVideoDecoderPlugin.pas
+++ b/mediaplugin/src/media/UVideoDecoderPlugin.pas
@@ -204,18 +204,27 @@ begin
end;
function TPluginVideoDecodeStream.GetFrameWidth(): integer;
+var
+ FrameInfo: TVideoFrameInfo;
begin
- Result := fVideoDecoderInfo.getFrameWidth(fStream);
+ fVideoDecoderInfo.getFrameInfo(fStream, @FrameInfo);
+ Result := FrameInfo.width;
end;
function TPluginVideoDecodeStream.GetFrameHeight(): integer;
+var
+ FrameInfo: TVideoFrameInfo;
begin
- Result := fVideoDecoderInfo.getFrameHeight(fStream);
+ fVideoDecoderInfo.getFrameInfo(fStream, @FrameInfo);
+ Result := FrameInfo.height;
end;
function TPluginVideoDecodeStream.GetFrameAspect(): real;
+var
+ FrameInfo: TVideoFrameInfo;
begin
- Result := fVideoDecoderInfo.getFrameAspect(fStream);
+ fVideoDecoderInfo.getFrameInfo(fStream, @FrameInfo);
+ Result := FrameInfo.aspect;
end;
end.