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
484a337c
Commit
484a337c
authored
Feb 20, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: make {add/put/put_signed}_pixels_clamped() non-static.
parent
bbfd2e7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
dsputil.c
libavcodec/dsputil.c
+14
-14
dsputil.h
libavcodec/dsputil.h
+4
-0
No files found.
libavcodec/dsputil.c
View file @
484a337c
...
...
@@ -437,7 +437,7 @@ static void diff_pixels_c(DCTELEM *restrict block, const uint8_t *s1,
}
static
void
put_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
restrict
pixels
,
void
ff_
put_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
restrict
pixels
,
int
line_size
)
{
int
i
;
...
...
@@ -493,7 +493,7 @@ static void put_pixels_clamped2_c(const DCTELEM *block, uint8_t *restrict pixels
}
}
static
void
put_signed_pixels_clamped_c
(
const
DCTELEM
*
block
,
void
ff_
put_signed_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
restrict
pixels
,
int
line_size
)
{
...
...
@@ -535,7 +535,7 @@ static void put_pixels_nonclamped_c(const DCTELEM *block, uint8_t *restrict pixe
}
}
static
void
add_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
restrict
pixels
,
void
ff_
add_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
restrict
pixels
,
int
line_size
)
{
int
i
;
...
...
@@ -3961,22 +3961,22 @@ void ff_wmv2_idct_c(short * block){
static
void
ff_wmv2_idct_put_c
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_wmv2_idct_c
(
block
);
put_pixels_clamped_c
(
block
,
dest
,
line_size
);
ff_
put_pixels_clamped_c
(
block
,
dest
,
line_size
);
}
static
void
ff_wmv2_idct_add_c
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_wmv2_idct_c
(
block
);
add_pixels_clamped_c
(
block
,
dest
,
line_size
);
ff_
add_pixels_clamped_c
(
block
,
dest
,
line_size
);
}
static
void
ff_jref_idct_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
j_rev_dct
(
block
);
put_pixels_clamped_c
(
block
,
dest
,
line_size
);
ff_
put_pixels_clamped_c
(
block
,
dest
,
line_size
);
}
static
void
ff_jref_idct_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
j_rev_dct
(
block
);
add_pixels_clamped_c
(
block
,
dest
,
line_size
);
ff_
add_pixels_clamped_c
(
block
,
dest
,
line_size
);
}
static
void
ff_jref_idct4_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
...
...
@@ -4135,10 +4135,10 @@ av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx)
c
->
get_pixels
=
get_pixels_c
;
c
->
diff_pixels
=
diff_pixels_c
;
c
->
put_pixels_clamped
=
put_pixels_clamped_c
;
c
->
put_signed_pixels_clamped
=
put_signed_pixels_clamped_c
;
c
->
put_pixels_clamped
=
ff_
put_pixels_clamped_c
;
c
->
put_signed_pixels_clamped
=
ff_
put_signed_pixels_clamped_c
;
c
->
put_pixels_nonclamped
=
put_pixels_nonclamped_c
;
c
->
add_pixels_clamped
=
add_pixels_clamped_c
;
c
->
add_pixels_clamped
=
ff_
add_pixels_clamped_c
;
c
->
add_pixels8
=
add_pixels8_c
;
c
->
add_pixels4
=
add_pixels4_c
;
c
->
sum_abs_dctelem
=
sum_abs_dctelem_c
;
...
...
libavcodec/dsputil.h
View file @
484a337c
...
...
@@ -198,6 +198,10 @@ void ff_emulated_edge_mc(uint8_t *buf, const uint8_t *src, int linesize,
int
block_w
,
int
block_h
,
int
src_x
,
int
src_y
,
int
w
,
int
h
);
void
ff_add_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
dest
,
int
linesize
);
void
ff_put_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
dest
,
int
linesize
);
void
ff_put_signed_pixels_clamped_c
(
const
DCTELEM
*
block
,
uint8_t
*
dest
,
int
linesize
);
/**
* DSPContext.
*/
...
...
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