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
98ea2dfe
Commit
98ea2dfe
authored
Jul 25, 2010
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chroma: minor simplification refactoring in the YUV to RGB conversions.
parent
9c8ec043
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
123 deletions
+15
-123
modules/video_chroma/i420_rgb16.c
modules/video_chroma/i420_rgb16.c
+15
-123
No files found.
modules/video_chroma/i420_rgb16.c
View file @
98ea2dfe
...
...
@@ -108,15 +108,7 @@ void I420_RGB16_dither( filter_t *p_filter, picture_t *p_src,
}
i_right_margin
=
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_pitch
;
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
/* Rule: when a picture of size (x1,y1) with aspect ratio r1 is rendered
* on a picture of size (x2,y2) with aspect ratio r2, if x1 grows to x1'
...
...
@@ -247,15 +239,7 @@ void I420_RGB16( filter_t *p_filter, picture_t *p_src,
-
p_src
->
p
[
1
].
i_visible_pitch
;
i_right_margin
=
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_pitch
;
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
/* Rule: when a picture of size (x1,y1) with aspect ratio r1 is rendered
* on a picture of size (x2,y2) with aspect ratio r2, if x1 grows to x1'
...
...
@@ -366,14 +350,7 @@ void I420_R5G5B5( filter_t *p_filter, picture_t *p_src,
#if defined (MODULE_NAME_IS_i420_rgb_sse2)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
)
{
i_rewind
=
16
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
15
;
/*
** SSE2 128 bits fetch/store instructions are faster
...
...
@@ -493,14 +470,7 @@ void I420_R5G5B5( filter_t *p_filter, picture_t *p_src,
#else // defined (MODULE_NAME_IS_i420_rgb_mmx)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
for
(
i_y
=
0
;
i_y
<
p_filter
->
fmt_in
.
video
.
i_height
;
i_y
++
)
{
...
...
@@ -610,14 +580,7 @@ void I420_R5G6B5( filter_t *p_filter, picture_t *p_src,
#if defined (MODULE_NAME_IS_i420_rgb_sse2)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
)
{
i_rewind
=
16
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
15
;
/*
** SSE2 128 bits fetch/store instructions are faster
...
...
@@ -737,14 +700,7 @@ void I420_R5G6B5( filter_t *p_filter, picture_t *p_src,
#else // defined (MODULE_NAME_IS_i420_rgb_mmx)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
for
(
i_y
=
0
;
i_y
<
p_filter
->
fmt_in
.
video
.
i_height
;
i_y
++
)
{
...
...
@@ -853,15 +809,7 @@ void I420_RGB32( filter_t *p_filter, picture_t *p_src,
-
p_src
->
p
[
1
].
i_visible_pitch
;
i_right_margin
=
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_pitch
;
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
/* Rule: when a picture of size (x1,y1) with aspect ratio r1 is rendered
* on a picture of size (x2,y2) with aspect ratio r2, if x1 grows to x1'
...
...
@@ -969,14 +917,7 @@ void I420_A8R8G8B8( filter_t *p_filter, picture_t *p_src,
#if defined (MODULE_NAME_IS_i420_rgb_sse2)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
)
{
i_rewind
=
16
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
15
;
/*
** SSE2 128 bits fetch/store instructions are faster
...
...
@@ -1096,14 +1037,7 @@ void I420_A8R8G8B8( filter_t *p_filter, picture_t *p_src,
#else // defined (MODULE_NAME_IS_i420_rgb_mmx)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
for
(
i_y
=
0
;
i_y
<
p_filter
->
fmt_in
.
video
.
i_height
;
i_y
++
)
{
...
...
@@ -1211,14 +1145,7 @@ void I420_R8G8B8A8( filter_t *p_filter, picture_t *p_src,
#if defined (MODULE_NAME_IS_i420_rgb_sse2)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
)
{
i_rewind
=
16
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
15
;
/*
** SSE2 128 bits fetch/store instructions are faster
...
...
@@ -1338,14 +1265,7 @@ void I420_R8G8B8A8( filter_t *p_filter, picture_t *p_src,
#else // defined (MODULE_NAME_IS_i420_rgb_mmx)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
for
(
i_y
=
0
;
i_y
<
p_filter
->
fmt_in
.
video
.
i_height
;
i_y
++
)
{
...
...
@@ -1453,14 +1373,7 @@ void I420_B8G8R8A8( filter_t *p_filter, picture_t *p_src,
#if defined (MODULE_NAME_IS_i420_rgb_sse2)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
)
{
i_rewind
=
16
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
15
;
/*
** SSE2 128 bits fetch/store instructions are faster
...
...
@@ -1577,14 +1490,7 @@ void I420_B8G8R8A8( filter_t *p_filter, picture_t *p_src,
#else
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
for
(
i_y
=
0
;
i_y
<
p_filter
->
fmt_in
.
video
.
i_height
;
i_y
++
)
{
...
...
@@ -1692,14 +1598,7 @@ void I420_A8B8G8R8( filter_t *p_filter, picture_t *p_src,
#if defined (MODULE_NAME_IS_i420_rgb_sse2)
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
)
{
i_rewind
=
16
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
15
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
15
;
/*
** SSE2 128 bits fetch/store instructions are faster
...
...
@@ -1816,14 +1715,7 @@ void I420_A8B8G8R8( filter_t *p_filter, picture_t *p_src,
#else
if
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
)
{
i_rewind
=
8
-
(
p_filter
->
fmt_in
.
video
.
i_width
&
7
);
}
else
{
i_rewind
=
0
;
}
i_rewind
=
(
-
p_filter
->
fmt_in
.
video
.
i_width
)
&
7
;
for
(
i_y
=
0
;
i_y
<
p_filter
->
fmt_in
.
video
.
i_height
;
i_y
++
)
{
...
...
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