aboutsummaryrefslogtreecommitdiff
path: root/graphics/dxa_player.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/dxa_player.h')
-rw-r--r--graphics/dxa_player.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/dxa_player.h b/graphics/dxa_player.h
index 5415e440d2..d1d6d78c97 100644
--- a/graphics/dxa_player.h
+++ b/graphics/dxa_player.h
@@ -47,6 +47,7 @@ protected:
byte *_frameBuffer2;
byte *_scaledBuffer;
byte *_drawBuffer;
+ byte *_scaledBuffer2;
byte *_inBuffer;
uint32 _inBufferSize;
byte *_decompBuffer;
@@ -60,6 +61,7 @@ protected:
uint16 _frameSkipped;
uint32 _frameTicks;
ScaleMode _scaleMode;
+ uint32 _scaling;
public:
DXAPlayer();
@@ -98,6 +100,14 @@ public:
bool loadFile(const char *filename);
/**
+ * Load a DXA encoded video file and setup scaling if required
+ * @param filename the filename to load
+ * @param maxWidth the maximum width available to the film
+ * @param maxHeight the maximum height available to the film
+ */
+ bool loadFile(const char *filename, uint16 maxWidth, uint16 maxHeight);
+
+ /**
* Close a DXA encoded video file
*/
void closeFile();