Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
89d2f014
Commit
89d2f014
authored
12 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
sws_unscaled: drop fill_plane9or10()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a44c3ae3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libswscale/swscale_unscaled.c
+0
-35
0 additions, 35 deletions
libswscale/swscale_unscaled.c
with
0 additions
and
35 deletions
libswscale/swscale_unscaled.c
+
0
−
35
View file @
89d2f014
...
@@ -159,27 +159,6 @@ static void fillPlane16(uint8_t *plane, int stride, int width, int height, int y
...
@@ -159,27 +159,6 @@ static void fillPlane16(uint8_t *plane, int stride, int width, int height, int y
}
}
}
}
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
copyPlane
(
const
uint8_t
*
src
,
int
srcStride
,
static
void
copyPlane
(
const
uint8_t
*
src
,
int
srcStride
,
int
srcSliceY
,
int
srcSliceH
,
int
width
,
int
srcSliceY
,
int
srcSliceH
,
int
width
,
uint8_t
*
dst
,
int
dstStride
)
uint8_t
*
dst
,
int
dstStride
)
...
@@ -807,7 +786,6 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
...
@@ -807,7 +786,6 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
// ignore palette for GRAY8
// ignore palette for GRAY8
if
(
plane
==
1
&&
!
dst
[
2
])
continue
;
if
(
plane
==
1
&&
!
dst
[
2
])
continue
;
if
(
!
src
[
plane
]
||
(
plane
==
1
&&
!
src
[
2
]))
{
if
(
!
src
[
plane
]
||
(
plane
==
1
&&
!
src
[
2
]))
{
#if 1
if
(
is16BPS
(
c
->
dstFormat
)
||
isNBPS
(
c
->
dstFormat
))
{
if
(
is16BPS
(
c
->
dstFormat
)
||
isNBPS
(
c
->
dstFormat
))
{
fillPlane16
(
dst
[
plane
],
dstStride
[
plane
],
length
,
height
,
y
,
fillPlane16
(
dst
[
plane
],
dstStride
[
plane
],
length
,
height
,
y
,
plane
==
3
,
desc_dst
->
comp
[
plane
].
depth_minus1
,
plane
==
3
,
desc_dst
->
comp
[
plane
].
depth_minus1
,
...
@@ -816,19 +794,6 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
...
@@ -816,19 +794,6 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[],
fillPlane
(
dst
[
plane
],
dstStride
[
plane
],
length
,
height
,
y
,
fillPlane
(
dst
[
plane
],
dstStride
[
plane
],
length
,
height
,
y
,
(
plane
==
3
)
?
255
:
128
);
(
plane
==
3
)
?
255
:
128
);
}
}
#else
int
val
=
(
plane
==
3
)
?
255
:
128
;
if
(
is16BPS
(
c
->
dstFormat
))
length
*=
2
;
if
(
is9_OR_10BPS
(
c
->
dstFormat
))
{
fill_plane9or10
(
dst
[
plane
],
dstStride
[
plane
],
length
,
height
,
y
,
val
,
desc_dst
->
comp
[
plane
].
depth_minus1
+
1
,
isBE
(
c
->
dstFormat
));
}
else
fillPlane
(
dst
[
plane
],
dstStride
[
plane
],
length
,
height
,
y
,
val
);
#endif
}
else
{
}
else
{
if
(
isNBPS
(
c
->
srcFormat
)
||
isNBPS
(
c
->
dstFormat
)
if
(
isNBPS
(
c
->
srcFormat
)
||
isNBPS
(
c
->
dstFormat
)
||
(
is16BPS
(
c
->
srcFormat
)
!=
is16BPS
(
c
->
dstFormat
))
||
(
is16BPS
(
c
->
srcFormat
)
!=
is16BPS
(
c
->
dstFormat
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment