Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
fcc6a70f
Commit
fcc6a70f
authored
Aug 04, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move and split dummy video output
parent
9d85032d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
35 deletions
+48
-35
modules/LIST
modules/LIST
+1
-0
modules/misc/dummy/Modules.am
modules/misc/dummy/Modules.am
+0
-1
modules/misc/dummy/dummy.c
modules/misc/dummy/dummy.c
+0
-21
modules/misc/dummy/dummy.h
modules/misc/dummy/dummy.h
+0
-4
modules/video_output/Modules.am
modules/video_output/Modules.am
+6
-0
modules/video_output/vdummy.c
modules/video_output/vdummy.c
+40
-8
po/POTFILES.in
po/POTFILES.in
+1
-1
No files found.
modules/LIST
View file @
fcc6a70f
...
@@ -342,6 +342,7 @@ $Id$
...
@@ -342,6 +342,7 @@ $Id$
* vc1: VC-1 Video demuxer
* vc1: VC-1 Video demuxer
* vcd: input module for accessing Video CDs
* vcd: input module for accessing Video CDs
* vcdx: input module for accessing Video CDs with navigation & stills
* vcdx: input module for accessing Video CDs with navigation & stills
* vdummy: dummy video display
* visual: visualisation system
* visual: visualisation system
* vmem: memory video driver
* vmem: memory video driver
* vobsub: VobSUB subtitles demuxer
* vobsub: VobSUB subtitles demuxer
...
...
modules/misc/dummy/Modules.am
View file @
fcc6a70f
SOURCES_dummy = \
SOURCES_dummy = \
dummy.c \
dummy.c \
dummy.h \
dummy.h \
vout.c \
interface.c \
interface.c \
input.c \
input.c \
decoder.c \
decoder.c \
...
...
modules/misc/dummy/dummy.c
View file @
fcc6a70f
...
@@ -39,12 +39,6 @@ static int OpenDummy(vlc_object_t *);
...
@@ -39,12 +39,6 @@ static int OpenDummy(vlc_object_t *);
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
#define CHROMA_TEXT N_("Dummy image chroma format")
#define CHROMA_LONGTEXT N_( \
"Force the dummy video output to create images using a specific chroma " \
"format instead of trying to improve performances by using the most " \
"efficient one.")
#define SAVE_TEXT N_("Save raw codec data")
#define SAVE_TEXT N_("Save raw codec data")
#define SAVE_LONGTEXT N_( \
#define SAVE_LONGTEXT N_( \
"Save the raw codec data if you have selected/forced the dummy " \
"Save the raw codec data if you have selected/forced the dummy " \
...
@@ -92,21 +86,6 @@ vlc_module_begin ()
...
@@ -92,21 +86,6 @@ vlc_module_begin ()
set_description
(
N_
(
"Dummy encoder function"
)
)
set_description
(
N_
(
"Dummy encoder function"
)
)
set_capability
(
"encoder"
,
0
)
set_capability
(
"encoder"
,
0
)
set_callbacks
(
OpenEncoder
,
CloseEncoder
)
set_callbacks
(
OpenEncoder
,
CloseEncoder
)
add_submodule
()
set_description
(
N_
(
"Dummy video output function"
)
)
set_section
(
N_
(
"Dummy Video output"
),
NULL
)
set_capability
(
"vout display"
,
1
)
set_callbacks
(
OpenVideo
,
CloseVideo
)
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
add_category_hint
(
N_
(
"Video"
),
NULL
,
false
)
add_string
(
"dummy-chroma"
,
NULL
,
CHROMA_TEXT
,
CHROMA_LONGTEXT
,
true
)
add_submodule
()
set_section
(
N_
(
"Stats video output"
),
NULL
)
set_description
(
N_
(
"Stats video output function"
)
)
set_capability
(
"vout display"
,
0
)
add_shortcut
(
"stats"
)
set_callbacks
(
OpenVideoStat
,
CloseVideo
)
add_submodule
()
add_submodule
()
set_description
(
N_
(
"Dummy font renderer function"
)
)
set_description
(
N_
(
"Dummy font renderer function"
)
)
set_capability
(
"text renderer"
,
1
)
set_capability
(
"text renderer"
,
1
)
...
...
modules/misc/dummy/dummy.h
View file @
fcc6a70f
...
@@ -36,8 +36,4 @@ void CloseDecoder ( vlc_object_t * );
...
@@ -36,8 +36,4 @@ void CloseDecoder ( vlc_object_t * );
int
OpenEncoder
(
vlc_object_t
*
);
int
OpenEncoder
(
vlc_object_t
*
);
void
CloseEncoder
(
vlc_object_t
*
);
void
CloseEncoder
(
vlc_object_t
*
);
int
OpenVideo
(
vlc_object_t
*
);
int
OpenVideoStat
(
vlc_object_t
*
);
void
CloseVideo
(
vlc_object_t
*
);
int
OpenRenderer
(
vlc_object_t
*
);
int
OpenRenderer
(
vlc_object_t
*
);
modules/video_output/Modules.am
View file @
fcc6a70f
...
@@ -119,6 +119,12 @@ EXTRA_LTLIBRARIES += libegl_plugin.la
...
@@ -119,6 +119,12 @@ EXTRA_LTLIBRARIES += libegl_plugin.la
libvlc_LTLIBRARIES += $(LTLIBegl)
libvlc_LTLIBRARIES += $(LTLIBegl)
### Common ###
### Common ###
libvdummy_plugin_la_SOURCES = vdummy.c
libvdummy_plugin_la_CFLAGS = $(AM_CFLAGS)
libvdummy_plugin_la_LIBADD = $(AM_LIBADD)
libvdummy_plugin_la_DEPENDENCIES =
libvlc_LTLIBRARIES += \
libvlc_LTLIBRARIES += \
libvdummy_plugin.la \
libvmem_plugin.la \
libvmem_plugin.la \
libyuv_plugin.la
libyuv_plugin.la
modules/
misc/dummy/vout
.c
→
modules/
video_output/vdummy
.c
View file @
fcc6a70f
...
@@ -30,8 +30,37 @@
...
@@ -30,8 +30,37 @@
#endif
#endif
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
#include <vlc_vout_display.h>
#include "dummy.h"
#define CHROMA_TEXT N_("Dummy image chroma format")
#define CHROMA_LONGTEXT N_( \
"Force the dummy video output to create images using a specific chroma " \
"format instead of trying to improve performances by using the most " \
"efficient one.")
static
int
OpenDummy
(
vlc_object_t
*
);
static
int
OpenStats
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
vlc_module_begin
()
set_shortname
(
N_
(
"Dummy"
)
)
set_description
(
N_
(
"Dummy video output"
)
)
set_capability
(
"vout display"
,
1
)
set_callbacks
(
OpenDummy
,
Close
)
add_shortcut
(
"dummy"
)
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
add_string
(
"dummy-chroma"
,
NULL
,
CHROMA_TEXT
,
CHROMA_LONGTEXT
,
true
)
add_submodule
()
set_description
(
N_
(
"Statistics video output"
)
)
set_capability
(
"vout display"
,
0
)
add_shortcut
(
"stats"
)
set_callbacks
(
OpenStats
,
Close
)
vlc_module_end
()
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
...
@@ -48,7 +77,8 @@ static void Manage (vout_display_t *);
...
@@ -48,7 +77,8 @@ static void Manage (vout_display_t *);
/*****************************************************************************
/*****************************************************************************
* OpenVideo: activates dummy vout display method
* OpenVideo: activates dummy vout display method
*****************************************************************************/
*****************************************************************************/
static
int
OpenVideoCommon
(
vlc_object_t
*
object
,
bool
display_stat
)
static
int
Open
(
vlc_object_t
*
object
,
void
(
*
display
)(
vout_display_t
*
,
picture_t
*
,
subpicture_t
*
))
{
{
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_sys_t
*
sys
;
vout_display_sys_t
*
sys
;
...
@@ -71,22 +101,24 @@ static int OpenVideoCommon(vlc_object_t *object, bool display_stat)
...
@@ -71,22 +101,24 @@ static int OpenVideoCommon(vlc_object_t *object, bool display_stat)
}
}
vd
->
pool
=
Pool
;
vd
->
pool
=
Pool
;
vd
->
prepare
=
NULL
;
vd
->
prepare
=
NULL
;
vd
->
display
=
display
_stat
?
DisplayStat
:
Display
;
vd
->
display
=
display
;
vd
->
control
=
Control
;
vd
->
control
=
Control
;
vd
->
manage
=
Manage
;
vd
->
manage
=
Manage
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
int
OpenVideo
(
vlc_object_t
*
object
)
static
int
OpenDummy
(
vlc_object_t
*
object
)
{
{
return
Open
VideoCommon
(
object
,
false
);
return
Open
(
object
,
Display
);
}
}
int
OpenVideoStat
(
vlc_object_t
*
object
)
static
int
OpenStats
(
vlc_object_t
*
object
)
{
{
return
Open
VideoCommon
(
object
,
true
);
return
Open
(
object
,
DisplayStat
);
}
}
void
CloseVideo
(
vlc_object_t
*
object
)
static
void
Close
(
vlc_object_t
*
object
)
{
{
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_sys_t
*
sys
=
vd
->
sys
;
vout_display_sys_t
*
sys
=
vd
->
sys
;
...
...
po/POTFILES.in
View file @
fcc6a70f
...
@@ -914,7 +914,6 @@ modules/misc/dummy/encoder.c
...
@@ -914,7 +914,6 @@ modules/misc/dummy/encoder.c
modules/misc/dummy/input.c
modules/misc/dummy/input.c
modules/misc/dummy/interface.c
modules/misc/dummy/interface.c
modules/misc/dummy/renderer.c
modules/misc/dummy/renderer.c
modules/misc/dummy/vout.c
modules/misc/gnutls.c
modules/misc/gnutls.c
modules/misc/inhibit.c
modules/misc/inhibit.c
modules/misc/inhibit/osso.c
modules/misc/inhibit/osso.c
...
@@ -1121,6 +1120,7 @@ modules/video_output/msw/events.c
...
@@ -1121,6 +1120,7 @@ modules/video_output/msw/events.c
modules/video_output/msw/glwin32.c
modules/video_output/msw/glwin32.c
modules/video_output/msw/wingdi.c
modules/video_output/msw/wingdi.c
modules/video_output/sdl.c
modules/video_output/sdl.c
modules/video_output/vdummy.c
modules/video_output/vmem.c
modules/video_output/vmem.c
modules/video_output/xcb/glx.c
modules/video_output/xcb/glx.c
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
...
...
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