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
f5f0a1cd
Commit
f5f0a1cd
authored
May 21, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./plugins/chroma/i420_yuy2.c: margin support for the 420 planar to 422
packed chroma transformations.
parent
6eb7dd20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
1 deletion
+51
-1
plugins/chroma/i420_yuy2.c
plugins/chroma/i420_yuy2.c
+51
-1
No files found.
plugins/chroma/i420_yuy2.c
View file @
f5f0a1cd
...
...
@@ -2,7 +2,7 @@
* i420_yuy2.c : YUV to YUV conversion module for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_yuy2.c,v 1.
6 2002/04/23 13:47:30
sam Exp $
* $Id: i420_yuy2.c,v 1.
7 2002/05/21 03:37:17
sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -179,6 +179,11 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source,
int
i_x
,
i_y
;
const
int
i_source_margin
=
p_source
->
p
->
b_margin
?
p_source
->
p
->
i_pitch
-
p_source
->
p
->
i_visible_bytes
:
0
;
const
int
i_dest_margin
=
p_dest
->
p
->
b_margin
?
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_bytes
:
0
;
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
{
p_line1
=
p_line2
;
...
...
@@ -198,6 +203,11 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source,
MMX_CALL
(
MMX_YUV420_YUYV
);
#endif
}
p_y1
+=
i_source_margin
;
p_y2
+=
i_source_margin
;
p_line1
+=
i_dest_margin
;
p_line2
+=
i_dest_margin
;
}
}
...
...
@@ -214,6 +224,11 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source,
int
i_x
,
i_y
;
const
int
i_source_margin
=
p_source
->
p
->
b_margin
?
p_source
->
p
->
i_pitch
-
p_source
->
p
->
i_visible_bytes
:
0
;
const
int
i_dest_margin
=
p_dest
->
p
->
b_margin
?
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_bytes
:
0
;
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
{
p_line1
=
p_line2
;
...
...
@@ -233,6 +248,11 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source,
MMX_CALL
(
MMX_YUV420_YVYU
);
#endif
}
p_y1
+=
i_source_margin
;
p_y2
+=
i_source_margin
;
p_line1
+=
i_dest_margin
;
p_line2
+=
i_dest_margin
;
}
}
...
...
@@ -249,6 +269,11 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source,
int
i_x
,
i_y
;
const
int
i_source_margin
=
p_source
->
p
->
b_margin
?
p_source
->
p
->
i_pitch
-
p_source
->
p
->
i_visible_bytes
:
0
;
const
int
i_dest_margin
=
p_dest
->
p
->
b_margin
?
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_bytes
:
0
;
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
{
p_line1
=
p_line2
;
...
...
@@ -268,6 +293,11 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source,
MMX_CALL
(
MMX_YUV420_UYVY
);
#endif
}
p_y1
+=
i_source_margin
;
p_y2
+=
i_source_margin
;
p_line1
+=
i_dest_margin
;
p_line2
+=
i_dest_margin
;
}
}
...
...
@@ -297,6 +327,11 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source,
int
i_x
,
i_y
;
const
int
i_source_margin
=
p_source
->
p
->
b_margin
?
p_source
->
p
->
i_pitch
-
p_source
->
p
->
i_visible_bytes
:
0
;
const
int
i_dest_margin
=
p_dest
->
p
->
b_margin
?
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_bytes
:
0
;
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
{
p_line1
-=
3
*
p_dest
->
p
->
i_pitch
;
...
...
@@ -316,6 +351,11 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source,
MMX_CALL
(
MMX_YUV420_UYVY
);
#endif
}
p_y1
+=
i_source_margin
;
p_y2
+=
i_source_margin
;
p_line1
+=
i_dest_margin
;
p_line2
+=
i_dest_margin
;
}
}
...
...
@@ -333,6 +373,11 @@ static void I420_Y211( vout_thread_t *p_vout, picture_t *p_source,
int
i_x
,
i_y
;
const
int
i_source_margin
=
p_source
->
p
->
b_margin
?
p_source
->
p
->
i_pitch
-
p_source
->
p
->
i_visible_bytes
:
0
;
const
int
i_dest_margin
=
p_dest
->
p
->
b_margin
?
p_dest
->
p
->
i_pitch
-
p_dest
->
p
->
i_visible_bytes
:
0
;
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
{
p_line1
=
p_line2
;
...
...
@@ -346,6 +391,11 @@ static void I420_Y211( vout_thread_t *p_vout, picture_t *p_source,
C_YUV420_Y211
(
);
C_YUV420_Y211
(
);
}
p_y1
+=
i_source_margin
;
p_y2
+=
i_source_margin
;
p_line1
+=
i_dest_margin
;
p_line2
+=
i_dest_margin
;
}
}
#endif
...
...
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