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
49708746
Commit
49708746
authored
Jun 04, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gray for the place holder color on packed formats (else you'd end up
with an ugly green in packed YUV).
parent
35877427
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
modules/video_filter/ripple.c
modules/video_filter/ripple.c
+2
-1
modules/video_filter/wall.c
modules/video_filter/wall.c
+4
-4
modules/video_filter/wave.c
modules/video_filter/wave.c
+3
-2
No files found.
modules/video_filter/ripple.c
View file @
49708746
...
...
@@ -143,7 +143,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
uint8_t
black_pixel
;
uint8_t
*
p_in
,
*
p_out
;
black_pixel
=
(
i_index
==
Y_PLANE
)
?
0x00
:
0x80
;
black_pixel
=
(
p_pic
->
i_planes
>
1
&&
i_index
==
Y_PLANE
)
?
0x00
:
0x80
;
i_num_lines
=
p_pic
->
p
[
i_index
].
i_visible_lines
;
i_pixel_pitch
=
p_pic
->
p
[
i_index
].
i_pixel_pitch
;
...
...
modules/video_filter/wall.c
View file @
49708746
...
...
@@ -299,12 +299,12 @@ static int Init( vout_thread_t *p_vout )
w1
&=
~
1
;
h1
=
w1
*
VOUT_ASPECT_FACTOR
/
i_aspect
&~
1
;
h1
&=
~
1
;
h2
=
p_vout
->
output
.
i_height
/
p_vout
->
p_sys
->
i_row
&~
1
;
h2
&=
~
1
;
w2
=
h2
*
i_aspect
/
VOUT_ASPECT_FACTOR
&~
1
;
w2
&=
~
1
;
if
(
h1
*
p_vout
->
p_sys
->
i_row
<
p_vout
->
output
.
i_height
)
{
unsigned
int
i_tmp
;
...
...
@@ -340,7 +340,7 @@ static int Init( vout_thread_t *p_vout )
p_vout
->
p_sys
->
i_vout
=
0
;
msg_Dbg
(
p_vout
,
"target window (%d,%d)-(%d,%d)"
,
i_hstart
,
i_vstart
,
i_hend
,
i_vend
);
i_top
=
0
;
i_height
=
0
;
...
...
@@ -375,7 +375,7 @@ static int Init( vout_thread_t *p_vout )
i_align
|=
VOUT_ALIGN_RIGHT
;
}
}
if
(
i_row
*
i_target_height
>=
i_vstart
&&
(
i_row
+
1
)
*
i_target_height
<=
i_vend
)
{
...
...
modules/video_filter/wave.c
View file @
49708746
/*****************************************************************************
* wave.c : Wave video effect plugin for vlc
*****************************************************************************
* Copyright (C) 2000-200
6
the VideoLAN team
* Copyright (C) 2000-200
8
the VideoLAN team
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
...
...
@@ -152,7 +152,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
i_pixel_pitch
=
p_pic
->
p
[
i_index
].
i_pixel_pitch
;
i_visible_pixels
=
i_visible_pitch
/
i_pixel_pitch
;
black_pixel
=
(
i_index
==
Y_PLANE
)
?
0x00
:
0x80
;
black_pixel
=
(
p_pic
->
i_planes
>
1
&&
i_index
==
Y_PLANE
)
?
0x00
:
0x80
;
/* Ok, we do 3 times the sin() calculation for each line. So what ? */
for
(
i_line
=
0
;
i_line
<
i_num_lines
;
i_line
++
)
...
...
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