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
bb0ee530
Commit
bb0ee530
authored
Mar 18, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transform: cosmetic fixes
parent
5678c190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/video_filter/transform.c
modules/video_filter/transform.c
+10
-10
No files found.
modules/video_filter/transform.c
View file @
bb0ee530
...
...
@@ -129,16 +129,16 @@ static void Plane16_##f(plane_t *restrict dst, const plane_t *restrict src) \
{ \
const uint16_t *src_pixels = (const uint16_t *)src->p_pixels; \
uint16_t *restrict dst_pixels = (uint16_t *)dst->p_pixels; \
unsigned src_
pitc
h = src->i_pitch / 2; \
unsigned dst_
pitc
h = dst->i_pitch / 2; \
unsigned src_
widt
h = src->i_pitch / 2; \
unsigned dst_
widt
h = dst->i_pitch / 2; \
unsigned dst_visible_width = dst->i_visible_pitch / 2; \
\
for (int y = 0; y < dst->i_visible_lines; y++) { \
for (unsigned x = 0; x < dst_visible_width; x++) { \
int sx, sy; \
(f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y);\
dst_pixels[y * dst_
pitc
h + x] = \
src_pixels[sy * src_
pitc
h + sx]; \
(f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y);
\
dst_pixels[y * dst_
widt
h + x] = \
src_pixels[sy * src_
widt
h + sx]; \
} \
} \
} \
...
...
@@ -147,16 +147,16 @@ static void Plane32_##f(plane_t *restrict dst, const plane_t *restrict src) \
{ \
const uint32_t *src_pixels = (const uint32_t *)src->p_pixels; \
uint32_t *restrict dst_pixels = (uint32_t *)dst->p_pixels; \
unsigned src_
pitc
h = src->i_pitch / 4; \
unsigned dst_
pitc
h = dst->i_pitch / 4; \
unsigned src_
widt
h = src->i_pitch / 4; \
unsigned dst_
widt
h = dst->i_pitch / 4; \
unsigned dst_visible_width = dst->i_visible_pitch / 4; \
\
for (int y = 0; y < dst->i_visible_lines; y++) { \
for (unsigned x = 0; x < dst_visible_width; x++) { \
int sx, sy; \
(f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y);\
dst_pixels[y * dst_
pitc
h + x] = \
src_pixels[sy * src_
pitc
h + sx]; \
(f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y);
\
dst_pixels[y * dst_
widt
h + x] = \
src_pixels[sy * src_
widt
h + sx]; \
} \
} \
}
...
...
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