[vlc-devel] [PATCH 2/2] Add Brightness control

Jean-Baptiste Kempf jb at videolan.org
Mon Nov 18 01:46:24 CET 2013


On 17 Nov, Edward Wang wrote :
> On 2013-11-17 19:20, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> >Close #3792
> >---
> >  modules/control/hotkeys.c | 20 ++++++++++++++++++++
> >  1 file changed, 20 insertions(+)
> >
> >diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
> >index e23156e..c409c24 100644
> >--- a/modules/control/hotkeys.c
> >+++ b/modules/control/hotkeys.c
> >@@ -1036,6 +1036,26 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
> >              if( p_vout && vout_OSDEpg( p_vout, input_GetItem( p_input ) ) )
> >                  DisplayPosition( p_intf, p_vout, p_input );
> >              break;
> >+
> >+        case ACTIONID_BRIGHTNESS_UP:
> >+        case ACTIONID_BRIGHTNESS_DOWN:
> >+            if( p_vout )
> >+            {
> >+                vout_EnableFilter( p_vout, "adjust", 1, false );
> >+
> >+                vlc_object_t *p_adjust = vlc_object_find_name( p_vout, "adjust" );
> 
> Wasn't this function supposed to be deprecated?

And what do you suggest to control video filters?

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list