Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
c438a010
Commit
c438a010
authored
Oct 16, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split vout_internal.h to hide vout_thread_t definition from decoder.
parent
4f460e2f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
39 deletions
+76
-39
src/Makefile.am
src/Makefile.am
+1
-0
src/input/decoder.c
src/input/decoder.c
+1
-1
src/video_output/vout_control.h
src/video_output/vout_control.h
+72
-0
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+2
-38
No files found.
src/Makefile.am
View file @
c438a010
...
...
@@ -331,6 +331,7 @@ SOURCES_libvlc_common = \
video_output/vout_subpictures.c
\
video_output/vout_intf.c
\
video_output/vout_internal.h
\
video_output/vout_control.h
\
audio_output/aout_internal.h
\
audio_output/common.c
\
audio_output/dec.c
\
...
...
src/input/decoder.c
View file @
c438a010
...
...
@@ -47,7 +47,7 @@
#include "clock.h"
#include "decoder.h"
#include "../video_output/vout_
interna
l.h"
#include "../video_output/vout_
contro
l.h"
static
decoder_t
*
CreateDecoder
(
input_thread_t
*
,
es_format_t
*
,
int
,
sout_instance_t
*
p_sout
);
static
void
DeleteDecoder
(
decoder_t
*
);
...
...
src/video_output/vout_control.h
0 → 100644
View file @
c438a010
/*****************************************************************************
* vout_control.h : Vout control function definitions
*****************************************************************************
* Copyright (C) 2008 the VideoLAN team
* Copyright (C) 2008 Laurent Aimar
* $Id$
*
* Authors: Laurent Aimar < fenrir _AT_ videolan _DOT_ org >
*
* 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
* (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.
*
* 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.
*****************************************************************************/
#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
# error This header file can only be included from LibVLC.
#endif
#ifndef _VOUT_CONTROL_H
#define _VOUT_CONTROL_H 1
/* DO NOT use vout_CountPictureAvailable unless your are in src/input/decoder.c (no exception) */
int
vout_CountPictureAvailable
(
vout_thread_t
*
);
/**
* This function will (un)pause the display of pictures.
* It is thread safe
*/
void
vout_ChangePause
(
vout_thread_t
*
,
bool
b_paused
,
mtime_t
i_date
);
/**
* This function will apply an offset on subtitle subpicture.
*/
void
spu_OffsetSubtitleDate
(
spu_t
*
p_spu
,
mtime_t
i_duration
);
/**
* This function will return and reset internal statistics.
*/
void
vout_GetResetStatistic
(
vout_thread_t
*
p_vout
,
int
*
pi_displayed
,
int
*
pi_lost
);
/**
* This function will ensure that all ready/displayed pciture have at most
* the provided dat
*/
void
vout_Flush
(
vout_thread_t
*
p_vout
,
mtime_t
i_date
);
/**
* This function will try to detect if pictures are being leaked. If so it
* will release them.
*
* XXX This function is there to workaround bugs in decoder
*/
void
vout_FixLeaks
(
vout_thread_t
*
p_vout
,
bool
b_forced
);
/**
* This functions will drop a picture retreived by vout_CreatePicture.
*/
void
vout_DropPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
);
#endif
src/video_output/vout_internal.h
View file @
c438a010
...
...
@@ -30,6 +30,8 @@
#ifndef _VOUT_INTERNAL_H
#define _VOUT_INTERNAL_H 1
#include "vout_control.h"
struct
vout_thread_sys_t
{
/* */
...
...
@@ -79,43 +81,5 @@ struct vout_thread_sys_t
picture_t
*
vout_RenderPicture
(
vout_thread_t
*
,
picture_t
*
,
subpicture_t
*
,
bool
b_paused
);
/* DO NOT use vout_CountPictureAvailable unless your are in src/input/decoder.c (no exception) */
int
vout_CountPictureAvailable
(
vout_thread_t
*
);
/**
* This function will (un)pause the display of pictures.
* It is thread safe
*/
void
vout_ChangePause
(
vout_thread_t
*
,
bool
b_paused
,
mtime_t
i_date
);
/**
* This function will apply an offset on subtitle subpicture.
*/
void
spu_OffsetSubtitleDate
(
spu_t
*
p_spu
,
mtime_t
i_duration
);
/**
* This function will return and reset internal statistics.
*/
void
vout_GetResetStatistic
(
vout_thread_t
*
p_vout
,
int
*
pi_displayed
,
int
*
pi_lost
);
/**
* This function will ensure that all ready/displayed pciture have at most
* the provided dat
*/
void
vout_Flush
(
vout_thread_t
*
p_vout
,
mtime_t
i_date
);
/**
* This function will try to detect if pictures are being leaked. If so it
* will release them.
*
* XXX This function is there to workaround bugs in decoder
*/
void
vout_FixLeaks
(
vout_thread_t
*
p_vout
,
bool
b_forced
);
/**
* This functions will drop a picture retreived by vout_CreatePicture.
*/
void
vout_DropPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment