[libbluray-devel] Added cropping to BD_OVERLAY
hpi1
git at videolan.org
Wed Sep 12 12:57:06 CEST 2012
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Sep 12 13:11:04 2012 +0300| [622e774056ed2086637ccffb3cbc7b1ac1d71aa1] | committer: hpi1
Added cropping to BD_OVERLAY
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=622e774056ed2086637ccffb3cbc7b1ac1d71aa1
---
src/libbluray/decoders/overlay.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/decoders/overlay.h b/src/libbluray/decoders/overlay.h
index a131531..022f449 100644
--- a/src/libbluray/decoders/overlay.h
+++ b/src/libbluray/decoders/overlay.h
@@ -1,6 +1,6 @@
/*
* This file is part of libbluray
- * Copyright (C) 2010 hpi1
+ * Copyright (C) 2010-2012 Petri Hintukainen <phintuka at users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -32,7 +32,7 @@ typedef enum {
typedef enum {
BD_OVERLAY_INIT, /* init overlay plane. Size of full plane in x,y,w,h */
BD_OVERLAY_CLEAR, /* clear plane */
- BD_OVERLAY_DRAW, /* draw bitmap (x,y,w,h,img,palette) */
+ BD_OVERLAY_DRAW, /* draw bitmap (x,y,w,h,img,palette,crop) */
BD_OVERLAY_WIPE, /* clear area (x,y,w,h) */
BD_OVERLAY_FLUSH, /* all changes have been done, flush overlay to display at given pts */
BD_OVERLAY_CLOSE, /* close overlay */
@@ -63,6 +63,11 @@ typedef struct bd_overlay_s {
const BD_PG_PALETTE_ENTRY * palette;
const BD_PG_RLE_ELEM * img;
+ uint16_t crop_x;
+ uint16_t crop_y;
+ uint16_t crop_w;
+ uint16_t crop_h;
+
} BD_OVERLAY;
More information about the libbluray-devel
mailing list