[libbluray-devel] commit: graphics controller: added GC_CTRL_IG_END and GC_CTRL_RESET (hpi1 )
git at videolan.org
git at videolan.org
Mon Oct 25 11:54:20 CEST 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Oct 18 15:54:41 2010 +0300| [20de6598286a531d8179163f83e454a03540c052] | committer: hpi1
graphics controller: added GC_CTRL_IG_END and GC_CTRL_RESET
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=20de6598286a531d8179163f83e454a03540c052
---
src/libbluray/decoders/graphics_controller.c | 12 +++++++++---
src/libbluray/decoders/graphics_controller.h | 2 ++
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 6401a48..ad42db1 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -535,9 +535,15 @@ void gc_run(GRAPHICS_CONTROLLER *gc, gc_ctrl_e ctrl, uint32_t param, GC_NAV_CMDS
/* fall thru */
case GC_CTRL_NOP:
- _render_page(gc,
- 0xffff,
- cmds);
+ _render_page(gc, 0xffff, cmds);
+ break;
+
+ case GC_CTRL_RESET:
+ _gc_reset(gc);
+ break;
+
+ case GC_CTRL_IG_END:
+ _render_page(gc, 0xffff, cmds);
break;
case GC_CTRL_ENABLE_BUTTON:
diff --git a/src/libbluray/decoders/graphics_controller.h b/src/libbluray/decoders/graphics_controller.h
index b007421..58d927a 100644
--- a/src/libbluray/decoders/graphics_controller.h
+++ b/src/libbluray/decoders/graphics_controller.h
@@ -46,6 +46,8 @@ typedef enum {
GC_CTRL_DISABLE_BUTTON, /* param: button_id */
GC_CTRL_SET_BUTTON_PAGE,
GC_CTRL_POPUP, /* param: on/off */
+ GC_CTRL_IG_END, /* execution of IG object is complete */
+ GC_CTRL_RESET, /* reset graphics controller */
} gc_ctrl_e;
typedef struct {
More information about the libbluray-devel
mailing list