Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
4d2f1d8c
Commit
4d2f1d8c
authored
Oct 30, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale.c:remove fill_plane9or10() use fillPlane16()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
70c25c62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
29 deletions
+4
-29
swscale.c
libswscale/swscale.c
+4
-29
No files found.
libswscale/swscale.c
View file @
4d2f1d8c
...
...
@@ -62,28 +62,6 @@ static av_always_inline void fillPlane(uint8_t *plane, int stride, int width,
}
}
static
void
fill_plane9or10
(
uint8_t
*
plane
,
int
stride
,
int
width
,
int
height
,
int
y
,
uint8_t
val
,
const
int
dst_depth
,
const
int
big_endian
)
{
int
i
,
j
;
uint16_t
*
dst
=
(
uint16_t
*
)
(
plane
+
stride
*
y
);
#define FILL8TO9_OR_10(wfunc) \
for (i = 0; i < height; i++) { \
for (j = 0; j < width; j++) { \
wfunc(&dst[j], (val << (dst_depth - 8)) | \
(val >> (16 - dst_depth))); \
} \
dst += stride / 2; \
}
if
(
big_endian
)
{
FILL8TO9_OR_10
(
AV_WB16
);
}
else
{
FILL8TO9_OR_10
(
AV_WL16
);
}
}
static
void
hScale16To19_c
(
SwsContext
*
c
,
int16_t
*
_dst
,
int
dstW
,
const
uint8_t
*
_src
,
const
int16_t
*
filter
,
const
int32_t
*
filterPos
,
int
filterSize
)
...
...
@@ -681,18 +659,15 @@ static int swScale(SwsContext *c, const uint8_t *src[],
}
}
}
if
(
isPlanar
(
dstFormat
)
&&
isALPHA
(
dstFormat
)
&&
!
alpPixBuf
)
{
int
length
=
dstW
;
int
height
=
dstY
-
lastDstY
;
if
(
is16BPS
(
c
->
dstFormat
))
length
*=
2
;
if
(
is
9_OR_10
BPS
(
dstFormat
))
{
if
(
is
16BPS
(
dstFormat
)
||
isN
BPS
(
dstFormat
))
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
dstFormat
);
fill
_plane9or10
(
dst
[
3
],
dstStride
[
3
],
length
,
height
,
lastDstY
,
255
,
desc
->
comp
[
3
].
depth_minus1
+
1
,
isBE
(
dstFormat
));
fill
Plane16
(
dst
[
3
],
dstStride
[
3
],
length
,
height
,
lastDstY
,
1
,
desc
->
comp
[
3
].
depth_minus
1
,
isBE
(
dstFormat
));
}
else
fillPlane
(
dst
[
3
],
dstStride
[
3
],
length
,
height
,
lastDstY
,
255
);
}
...
...
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