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
3dd779eb
Commit
3dd779eb
authored
May 08, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: implement Nbit->non native endian 16bit. Fixes v210.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f2bfdc38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
swscale.c
libswscale/swscale.c
+9
-3
v210
tests/ref/fate/v210
+1
-1
No files found.
libswscale/swscale.c
View file @
3dd779eb
...
...
@@ -1910,9 +1910,15 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[
}
}
else
if
(
src_depth
<
dst_depth
)
{
for
(
i
=
0
;
i
<
height
;
i
++
)
{
for
(
j
=
0
;
j
<
length
;
j
++
)
dstPtr2
[
j
]
=
(
srcPtr2
[
j
]
<<
(
dst_depth
-
src_depth
))
|
(
srcPtr2
[
j
]
>>
(
2
*
src_depth
-
dst_depth
));
if
(
isBE
(
c
->
dstFormat
)){
for
(
j
=
0
;
j
<
length
;
j
++
)
AV_WB16
(
&
dstPtr2
[
j
],
(
srcPtr2
[
j
]
<<
(
dst_depth
-
src_depth
))
|
(
srcPtr2
[
j
]
>>
(
2
*
src_depth
-
dst_depth
)));
}
else
{
for
(
j
=
0
;
j
<
length
;
j
++
)
AV_WL16
(
&
dstPtr2
[
j
],
(
srcPtr2
[
j
]
<<
(
dst_depth
-
src_depth
))
|
(
srcPtr2
[
j
]
>>
(
2
*
src_depth
-
dst_depth
)));
}
dstPtr2
+=
dstStride
[
plane
]
/
2
;
srcPtr2
+=
srcStride
[
plane
]
/
2
;
}
...
...
tests/ref/fate/v210
View file @
3dd779eb
0, 0, 3686400, 0x
9c6c
1dde
0, 0, 3686400, 0x
75ee
1dde
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