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
215073dd
Commit
215073dd
authored
Jul 04, 2007
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blending for borders in rotate
parent
f36af492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
modules/video_filter/rotate.c
modules/video_filter/rotate.c
+25
-6
No files found.
modules/video_filter/rotate.c
View file @
215073dd
...
...
@@ -192,9 +192,28 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
int
i_line_percent
=
(
i_line_orig0
>>
4
)
&
255
;
int
i_col_percent
=
(
i_col_orig0
>>
4
)
&
255
;
if
(
0
<
i_line_orig
&&
i_line_orig
<
i_visible_lines
-
1
&&
0
<
i_col_orig
&&
i_col_orig
<
i_visible_pitch
-
1
)
if
(
0
<
=
i_line_orig
&&
i_line_orig
<
i_visible_lines
&&
0
<
=
i_col_orig
&&
i_col_orig
<
i_visible_pitch
)
{
uint8_t
i_curpix
=
black_pixel
;
uint8_t
i_colpix
=
black_pixel
;
uint8_t
i_linpix
=
black_pixel
;
uint8_t
i_nexpix
=
black_pixel
;
if
(
(
0
<
i_line_orig
)
&&
(
0
<
i_col_orig
)
)
i_curpix
=
p_in
[
i_line_orig
*
i_pitch
+
i_col_orig
];
if
(
i_line_orig
<
i_visible_lines
-
1
)
{
i_linpix
=
p_in
[(
i_line_orig
+
1
)
*
i_pitch
+
i_col_orig
];
}
if
(
i_col_orig
<
i_visible_pitch
-
1
)
{
i_colpix
=
p_in
[
i_line_orig
*
i_pitch
+
i_col_orig
+
1
];
}
if
(
(
i_line_orig
<
i_visible_lines
-
1
)
&&
(
i_col_orig
<
i_visible_pitch
-
1
)
)
i_nexpix
=
p_in
[(
i_line_orig
+
1
)
*
i_pitch
+
i_col_orig
+
1
];
#define test 1
#undef test
#ifdef test
...
...
@@ -202,13 +221,13 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
#endif
{
unsigned
int
temp
=
0
;
temp
+=
p_in
[
i_line_orig
*
i_pitch
+
i_col_orig
]
*
temp
+=
i_curpix
*
(
256
-
i_line_percent
)
*
(
256
-
i_col_percent
);
temp
+=
p_in
[(
i_line_orig
+
1
)
*
i_pitch
+
i_col_orig
]
*
temp
+=
i_linpix
*
i_line_percent
*
(
256
-
i_col_percent
);
temp
+=
p_in
[(
i_line_orig
+
1
)
*
i_pitch
+
i_col_orig
+
1
]
*
temp
+=
i_nexpix
*
(
i_col_percent
)
*
(
i_line_percent
);
temp
+=
p_in
[
i_line_orig
*
i_pitch
+
i_col_orig
+
1
]
*
temp
+=
i_colpix
*
i_col_percent
*
(
256
-
i_line_percent
);
*
p_out
=
temp
>>
16
;
}
...
...
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