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
7e00a8db
Commit
7e00a8db
authored
Nov 11, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- make sure chroma converters respect picture line pitch for packed chroma
parent
fb635e21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/video_chroma/i422_yuy2.c
modules/video_chroma/i422_yuy2.c
+12
-3
No files found.
modules/video_chroma/i422_yuy2.c
View file @
7e00a8db
...
...
@@ -142,7 +142,8 @@ static int Activate( vlc_object_t *p_this )
static
void
I422_YUY2
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
{
uint8_t
*
p_line
=
p_dest
->
p
->
p_pixels
;
uint8_t
*
p_pixels
=
p_dest
->
p
->
p_pixels
;
int
i_pitch
=
p_dest
->
p
->
i_pitch
;
uint8_t
*
p_y
=
p_source
->
Y_PIXELS
;
uint8_t
*
p_u
=
p_source
->
U_PIXELS
;
uint8_t
*
p_v
=
p_source
->
V_PIXELS
;
...
...
@@ -151,6 +152,7 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source,
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
{
uint8_t
*
p_line
=
p_pixels
;
for
(
i_x
=
p_vout
->
render
.
i_width
/
8
;
i_x
--
;
)
{
#if defined (MODULE_NAME_IS_i422_yuy2)
...
...
@@ -165,6 +167,7 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source,
p_line
+=
16
;
p_y
+=
8
;
p_u
+=
4
;
p_v
+=
4
;
#endif
}
p_pixels
+=
i_pitch
;
}
}
...
...
@@ -174,7 +177,8 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source,
static
void
I422_YVYU
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
{
uint8_t
*
p_line
=
p_dest
->
p
->
p_pixels
;
uint8_t
*
p_pixels
=
p_dest
->
p
->
p_pixels
;
int
i_pitch
=
p_dest
->
p
->
i_pitch
;
uint8_t
*
p_y
=
p_source
->
Y_PIXELS
;
uint8_t
*
p_u
=
p_source
->
U_PIXELS
;
uint8_t
*
p_v
=
p_source
->
V_PIXELS
;
...
...
@@ -183,6 +187,7 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source,
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
{
uint8_t
*
p_line
=
p_pixels
;
for
(
i_x
=
p_vout
->
render
.
i_width
/
8
;
i_x
--
;
)
{
#if defined (MODULE_NAME_IS_i422_yuy2)
...
...
@@ -197,6 +202,7 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source,
p_line
+=
16
;
p_y
+=
8
;
p_u
+=
4
;
p_v
+=
4
;
#endif
}
p_pixels
+=
i_pitch
;
}
}
...
...
@@ -206,7 +212,8 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source,
static
void
I422_UYVY
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
{
uint8_t
*
p_line
=
p_dest
->
p
->
p_pixels
;
uint8_t
*
p_pixels
=
p_dest
->
p
->
p_pixels
;
int
i_pitch
=
p_dest
->
p
->
i_pitch
;
uint8_t
*
p_y
=
p_source
->
Y_PIXELS
;
uint8_t
*
p_u
=
p_source
->
U_PIXELS
;
uint8_t
*
p_v
=
p_source
->
V_PIXELS
;
...
...
@@ -215,6 +222,7 @@ static void I422_UYVY( vout_thread_t *p_vout, picture_t *p_source,
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
{
uint8_t
*
p_line
=
p_pixels
;
for
(
i_x
=
p_vout
->
render
.
i_width
/
8
;
i_x
--
;
)
{
#if defined (MODULE_NAME_IS_i422_yuy2)
...
...
@@ -229,6 +237,7 @@ static void I422_UYVY( vout_thread_t *p_vout, picture_t *p_source,
p_line
+=
16
;
p_y
+=
8
;
p_u
+=
4
;
p_v
+=
4
;
#endif
}
p_pixels
+=
i_pitch
;
}
}
...
...
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