Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f2de4386
Commit
f2de4386
authored
Mar 28, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a SetPalette function so "vlc --vout dummy --dummy-chroma RGB2" don't
segfault.
parent
ea9bb58e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
modules/misc/dummy/vout.c
modules/misc/dummy/vout.c
+19
-6
No files found.
modules/misc/dummy/vout.c
View file @
f2de4386
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_dummy.c: Dummy video output display method for testing purposes
* vout_dummy.c: Dummy video output display method for testing purposes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: vout.c,v 1.
3 2002/11/18 18:05:13 sam
Exp $
* $Id: vout.c,v 1.
4 2003/03/28 11:34:52 sigmunau
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -37,11 +37,12 @@
...
@@ -37,11 +37,12 @@
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
*****************************************************************************/
*****************************************************************************/
static
int
Init
(
vout_thread_t
*
);
static
int
Init
(
vout_thread_t
*
);
static
void
End
(
vout_thread_t
*
);
static
void
End
(
vout_thread_t
*
);
static
int
Manage
(
vout_thread_t
*
);
static
int
Manage
(
vout_thread_t
*
);
static
void
Render
(
vout_thread_t
*
,
picture_t
*
);
static
void
Render
(
vout_thread_t
*
,
picture_t
*
);
static
void
Display
(
vout_thread_t
*
,
picture_t
*
);
static
void
Display
(
vout_thread_t
*
,
picture_t
*
);
static
void
SetPalette
(
vout_thread_t
*
,
u16
*
,
u16
*
,
u16
*
);
/*****************************************************************************
/*****************************************************************************
* OpenVideo: activates dummy video thread output method
* OpenVideo: activates dummy video thread output method
...
@@ -92,6 +93,10 @@ static int Init( vout_thread_t *p_vout )
...
@@ -92,6 +93,10 @@ static int Init( vout_thread_t *p_vout )
msg_Dbg
(
p_vout
,
"forcing chroma 0x%.8x (%4.4s)"
,
msg_Dbg
(
p_vout
,
"forcing chroma 0x%.8x (%4.4s)"
,
i_chroma
,
(
char
*
)
&
i_chroma
);
i_chroma
,
(
char
*
)
&
i_chroma
);
p_vout
->
output
.
i_chroma
=
i_chroma
;
p_vout
->
output
.
i_chroma
=
i_chroma
;
if
(
i_chroma
==
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'2'
)
)
{
p_vout
->
output
.
pf_setpalette
=
SetPalette
;
}
p_vout
->
output
.
i_width
=
p_vout
->
render
.
i_width
;
p_vout
->
output
.
i_width
=
p_vout
->
render
.
i_width
;
p_vout
->
output
.
i_height
=
p_vout
->
render
.
i_height
;
p_vout
->
output
.
i_height
=
p_vout
->
render
.
i_height
;
p_vout
->
output
.
i_aspect
=
p_vout
->
render
.
i_aspect
;
p_vout
->
output
.
i_aspect
=
p_vout
->
render
.
i_aspect
;
...
@@ -190,3 +195,11 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -190,3 +195,11 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic )
/* No need to do anything, the fake direct buffers stay as they are */
/* No need to do anything, the fake direct buffers stay as they are */
}
}
/*****************************************************************************
* SetPalette: set the palette for the picture
*****************************************************************************/
static
void
SetPalette
(
vout_thread_t
*
p_vout
,
u16
*
red
,
u16
*
green
,
u16
*
blue
)
{
/* No need to do anything, the fake direct buffers stay as they are */
}
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