X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvideo_output%2Fcontrol.h;h=2e25cb856c31dfd5da5405b548ac98103d5d56b6;hb=4542dccea1b28b44fbe208c6278463f1bf18fe6a;hp=b47cd457bdbe525adabec5afdb0c5c50d7aff5fc;hpb=7e7f8be16ba22cf63c5b45887dc690e5c4c0f340;p=vlc diff --git a/src/video_output/control.h b/src/video_output/control.h index b47cd457bd..2e25cb856c 100644 --- a/src/video_output/control.h +++ b/src/video_output/control.h @@ -6,27 +6,23 @@ * * Authors: Laurent Aimar * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) -# error This header file can only be included from LibVLC. -#endif - -#ifndef _VOUT_INTERNAL_CONTROL_H -#define _VOUT_INTERNAL_CONTROL_H +#ifndef LIBVLC_VOUT_INTERNAL_CONTROL_H +#define LIBVLC_VOUT_INTERNAL_CONTROL_H /* */ enum { @@ -39,9 +35,13 @@ enum { VOUT_CONTROL_START, VOUT_CONTROL_STOP, #endif + VOUT_CONTROL_SUBPICTURE, /* subpicture */ + VOUT_CONTROL_FLUSH_SUBPICTURE, /* integer */ VOUT_CONTROL_OSD_TITLE, /* string */ VOUT_CONTROL_CHANGE_FILTERS, /* string */ + VOUT_CONTROL_CHANGE_SUB_SOURCES, /* string */ VOUT_CONTROL_CHANGE_SUB_FILTERS, /* string */ + VOUT_CONTROL_CHANGE_SUB_MARGIN, /* integer */ VOUT_CONTROL_PAUSE, VOUT_CONTROL_RESET, @@ -67,6 +67,7 @@ typedef struct { mtime_t time; mtime_t *time_ptr; char *string; + int integer; struct { int a; int b; @@ -92,6 +93,7 @@ typedef struct { unsigned height; } window; const vout_configuration_t *cfg; + subpicture_t *subpicture; } u; } vout_control_cmd_t; @@ -121,6 +123,7 @@ void vout_control_WaitEmpty(vout_control_t *); void vout_control_Push(vout_control_t *, vout_control_cmd_t *); void vout_control_PushVoid(vout_control_t *, int type); void vout_control_PushBool(vout_control_t *, int type, bool boolean); +void vout_control_PushInteger(vout_control_t *, int type, int integer); void vout_control_PushTime(vout_control_t *, int type, mtime_t time); void vout_control_PushMessage(vout_control_t *, int type, int channel, const char *string); void vout_control_PushPair(vout_control_t *, int type, int a, int b); @@ -132,4 +135,3 @@ int vout_control_Pop(vout_control_t *, vout_control_cmd_t *, mtime_t deadline, m void vout_control_Dead(vout_control_t *); #endif -