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
d4d186d1
Commit
d4d186d1
authored
Mar 14, 2013
by
Ronald S. Bultje
Committed by
Martin Storsjö
Apr 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: Remove non-8bpp draw_edge
It is never used. Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
c9f5fcd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
dsputil.c
libavcodec/dsputil.c
+2
-2
dsputil_template.c
libavcodec/dsputil_template.c
+2
-8
No files found.
libavcodec/dsputil.c
View file @
d4d186d1
...
@@ -2724,12 +2724,12 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
...
@@ -2724,12 +2724,12 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
#define FUNC(f, depth) f ## _ ## depth
#define FUNC(f, depth) f ## _ ## depth
#define FUNCC(f, depth) f ## _ ## depth ## _c
#define FUNCC(f, depth) f ## _ ## depth ## _c
c
->
draw_edges
=
FUNCC
(
draw_edges
,
8
);
c
->
clear_block
=
FUNCC
(
clear_block
,
8
);
c
->
clear_block
=
FUNCC
(
clear_block
,
8
);
c
->
clear_blocks
=
FUNCC
(
clear_blocks
,
8
);
c
->
clear_blocks
=
FUNCC
(
clear_blocks
,
8
);
#define BIT_DEPTH_FUNCS(depth) \
#define BIT_DEPTH_FUNCS(depth) \
c->get_pixels = FUNCC(get_pixels, depth);\
c->get_pixels = FUNCC(get_pixels, depth);
c->draw_edges = FUNCC(draw_edges, depth);
switch
(
avctx
->
bits_per_raw_sample
)
{
switch
(
avctx
->
bits_per_raw_sample
)
{
case
9
:
case
9
:
...
...
libavcodec/dsputil_template.c
View file @
d4d186d1
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include "bit_depth_template.c"
#include "bit_depth_template.c"
#if BIT_DEPTH == 8
/* draw the edges of width 'w' of an image of size width, height */
/* draw the edges of width 'w' of an image of size width, height */
//FIXME check that this is ok for mpeg4 interlaced
//FIXME check that this is ok for mpeg4 interlaced
static
void
FUNCC
(
draw_edges
)(
uint8_t
*
_buf
,
int
_wrap
,
int
width
,
int
height
,
int
w
,
int
h
,
int
sides
)
static
void
FUNCC
(
draw_edges
)(
uint8_t
*
_buf
,
int
_wrap
,
int
width
,
int
height
,
int
w
,
int
h
,
int
sides
)
...
@@ -41,16 +42,8 @@ static void FUNCC(draw_edges)(uint8_t *_buf, int _wrap, int width, int height, i
...
@@ -41,16 +42,8 @@ static void FUNCC(draw_edges)(uint8_t *_buf, int _wrap, int width, int height, i
/* left and right */
/* left and right */
ptr
=
buf
;
ptr
=
buf
;
for
(
i
=
0
;
i
<
height
;
i
++
)
{
for
(
i
=
0
;
i
<
height
;
i
++
)
{
#if BIT_DEPTH > 8
int
j
;
for
(
j
=
0
;
j
<
w
;
j
++
)
{
ptr
[
j
-
w
]
=
ptr
[
0
];
ptr
[
j
+
width
]
=
ptr
[
width
-
1
];
}
#else
memset
(
ptr
-
w
,
ptr
[
0
],
w
);
memset
(
ptr
-
w
,
ptr
[
0
],
w
);
memset
(
ptr
+
width
,
ptr
[
width
-
1
],
w
);
memset
(
ptr
+
width
,
ptr
[
width
-
1
],
w
);
#endif
ptr
+=
wrap
;
ptr
+=
wrap
;
}
}
...
@@ -64,6 +57,7 @@ static void FUNCC(draw_edges)(uint8_t *_buf, int _wrap, int width, int height, i
...
@@ -64,6 +57,7 @@ static void FUNCC(draw_edges)(uint8_t *_buf, int _wrap, int width, int height, i
for
(
i
=
0
;
i
<
h
;
i
++
)
for
(
i
=
0
;
i
<
h
;
i
++
)
memcpy
(
last_line
+
(
i
+
1
)
*
wrap
,
last_line
,
(
width
+
w
+
w
)
*
sizeof
(
pixel
));
// bottom
memcpy
(
last_line
+
(
i
+
1
)
*
wrap
,
last_line
,
(
width
+
w
+
w
)
*
sizeof
(
pixel
));
// bottom
}
}
#endif
static
void
FUNCC
(
get_pixels
)(
int16_t
*
restrict
block
,
static
void
FUNCC
(
get_pixels
)(
int16_t
*
restrict
block
,
const
uint8_t
*
_pixels
,
const
uint8_t
*
_pixels
,
...
...
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