Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0a05e494
Commit
0a05e494
authored
Apr 21, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed PIX_FMT_YUV422 conversions
Originally committed as revision 1806 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0a9ad8d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
imgconvert.c
libavcodec/imgconvert.c
+12
-12
No files found.
libavcodec/imgconvert.c
View file @
0a05e494
...
@@ -538,8 +538,8 @@ static void yuv422_to_yuv420p(AVPicture *dst, AVPicture *src,
...
@@ -538,8 +538,8 @@ static void yuv422_to_yuv420p(AVPicture *dst, AVPicture *src,
p1
=
src
->
data
[
0
];
p1
=
src
->
data
[
0
];
lum1
=
dst
->
data
[
0
];
lum1
=
dst
->
data
[
0
];
cb1
=
dst
->
data
[
0
];
cb1
=
dst
->
data
[
1
];
cr1
=
dst
->
data
[
0
];
cr1
=
dst
->
data
[
2
];
for
(;
height
>=
2
;
height
-=
2
)
{
for
(;
height
>=
2
;
height
-=
2
)
{
p
=
p1
;
p
=
p1
;
...
@@ -582,9 +582,9 @@ static void yuv422_to_yuv422p(AVPicture *dst, AVPicture *src,
...
@@ -582,9 +582,9 @@ static void yuv422_to_yuv422p(AVPicture *dst, AVPicture *src,
p1
=
src
->
data
[
0
];
p1
=
src
->
data
[
0
];
lum1
=
dst
->
data
[
0
];
lum1
=
dst
->
data
[
0
];
cb1
=
dst
->
data
[
0
];
cb1
=
dst
->
data
[
1
];
cr1
=
dst
->
data
[
0
];
cr1
=
dst
->
data
[
2
];
for
(;
height
>
=
2
;
height
-=
2
)
{
for
(;
height
>
0
;
height
--
)
{
p
=
p1
;
p
=
p1
;
lum
=
lum1
;
lum
=
lum1
;
cb
=
cb1
;
cb
=
cb1
;
...
@@ -615,9 +615,9 @@ static void yuv422p_to_yuv422(AVPicture *dst, AVPicture *src,
...
@@ -615,9 +615,9 @@ static void yuv422p_to_yuv422(AVPicture *dst, AVPicture *src,
p1
=
dst
->
data
[
0
];
p1
=
dst
->
data
[
0
];
lum1
=
src
->
data
[
0
];
lum1
=
src
->
data
[
0
];
cb1
=
src
->
data
[
0
];
cb1
=
src
->
data
[
1
];
cr1
=
src
->
data
[
0
];
cr1
=
src
->
data
[
2
];
for
(;
height
>
=
2
;
height
-=
2
)
{
for
(;
height
>
0
;
height
--
)
{
p
=
p1
;
p
=
p1
;
lum
=
lum1
;
lum
=
lum1
;
cb
=
cb1
;
cb
=
cb1
;
...
@@ -632,10 +632,10 @@ static void yuv422p_to_yuv422(AVPicture *dst, AVPicture *src,
...
@@ -632,10 +632,10 @@ static void yuv422p_to_yuv422(AVPicture *dst, AVPicture *src,
cb
++
;
cb
++
;
cr
++
;
cr
++
;
}
}
p1
+=
src
->
linesize
[
0
];
p1
+=
dst
->
linesize
[
0
];
lum1
+=
dst
->
linesize
[
0
];
lum1
+=
src
->
linesize
[
0
];
cb1
+=
dst
->
linesize
[
1
];
cb1
+=
src
->
linesize
[
1
];
cr1
+=
dst
->
linesize
[
2
];
cr1
+=
src
->
linesize
[
2
];
}
}
}
}
...
...
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