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
7a7656de
Commit
7a7656de
authored
Aug 18, 2013
by
Vianney Boyer
Committed by
Jean-Baptiste Kempf
Aug 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vhs, oldmovie: code cosmetics
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
24d7d66f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
modules/video_filter/oldmovie.c
modules/video_filter/oldmovie.c
+6
-6
modules/video_filter/vhs.c
modules/video_filter/vhs.c
+5
-5
No files found.
modules/video_filter/oldmovie.c
View file @
7a7656de
...
...
@@ -50,9 +50,9 @@ static inline int64_t MOD(int64_t a, int64_t b) {
return
(
(
a
%
b
)
+
b
)
%
b
;
}
#define SUB_MIN(val, sub_val, min) val = \
((val-(int32_t)sub_val)<min?min:val-sub_val)
((val-(int32_t)sub_val)<min?min:val-sub_val)
#define ADD_MAX(val, add_val, max) val = \
((val+(int32_t)add_val)>max?max:val+add_val)
((val+(int32_t)add_val)>max?max:val+add_val)
static
inline
int32_t
PIX_OFS
(
int32_t
i_x
,
int32_t
i_y
,
plane_t
*
ps_plane
)
{
return
i_x
*
ps_plane
->
i_pixel_pitch
+
i_y
*
ps_plane
->
i_pitch
;
}
...
...
@@ -784,8 +784,8 @@ static int oldmovie_lens_hair_effect( filter_t *p_filter, picture_t *p_pic_out )
f_current_y
+=
cos
(
(
double
)
i_current_rot
/
128
.
0
*
M_PI
);
CHECK_N_DARKEN_PIXEL
(
(
int32_t
)
f_current_x
,
(
int32_t
)
f_current_y
,
p_sys
->
p_hair
[
i_h
]
->
i_intensity
,
&
p_pic_out
->
p
[
Y_PLANE
]
);
p_sys
->
p_hair
[
i_h
]
->
i_intensity
,
&
p_pic_out
->
p
[
Y_PLANE
]
);
}
}
}
...
...
@@ -866,8 +866,8 @@ static int oldmovie_lens_dust_effect( filter_t *p_filter, picture_t *p_pic_out )
if
(
i_x
*
i_x
+
i_y
*
i_y
<=
p_sys
->
p_dust
[
i_d
]
->
i_width
*
p_sys
->
p_dust
[
i_d
]
->
i_width
)
CHECK_N_DARKEN_PIXEL
(
i_x
+
p_sys
->
p_dust
[
i_d
]
->
i_x
,
i_y
+
p_sys
->
p_dust
[
i_d
]
->
i_y
,
p_sys
->
p_dust
[
i_d
]
->
i_intensity
,
&
p_pic_out
->
p
[
Y_PLANE
]
);
p_sys
->
p_dust
[
i_d
]
->
i_intensity
,
&
p_pic_out
->
p
[
Y_PLANE
]
);
}
return
VLC_SUCCESS
;
...
...
modules/video_filter/vhs.c
View file @
7a7656de
...
...
@@ -315,17 +315,17 @@ static int vhs_blue_red_line_effect( filter_t *p_filter, picture_t *p_pic_out )
switch
(
i_p
)
{
case
Y_PLANE
:
memset
(
&
p_pic_out
->
p
[
i_p
].
p_pixels
[
i_pix_ofs
],
127
,
p_pic_out
->
p
[
i_p
].
i_visible_pitch
);
p_pic_out
->
p
[
i_p
].
i_visible_pitch
);
break
;
case
U_PLANE
:
memset
(
&
p_pic_out
->
p
[
i_p
].
p_pixels
[
i_pix_ofs
],
(
p_sys
->
p_BR_lines
[
i_b
]
->
b_blue_red
?
255
:
0
),
p_pic_out
->
p
[
i_p
].
i_visible_pitch
);
(
p_sys
->
p_BR_lines
[
i_b
]
->
b_blue_red
?
255
:
0
),
p_pic_out
->
p
[
i_p
].
i_visible_pitch
);
break
;
case
V_PLANE
:
memset
(
&
p_pic_out
->
p
[
i_p
].
p_pixels
[
i_pix_ofs
],
(
p_sys
->
p_BR_lines
[
i_b
]
->
b_blue_red
?
0
:
255
),
p_pic_out
->
p
[
i_p
].
i_visible_pitch
);
(
p_sys
->
p_BR_lines
[
i_b
]
->
b_blue_red
?
0
:
255
),
p_pic_out
->
p
[
i_p
].
i_visible_pitch
);
break
;
}
...
...
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