Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
49741fee
Commit
49741fee
authored
Jul 01, 2014
by
Tim Kopp
Browse files
Replaced loops with vpx_memcpy()
Change-Id: Icbe05657f0e92c3838e6a5a975f4f82d21328a2e
parent
82dc1332
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_denoiser.c
View file @
49741fee
...
...
@@ -81,13 +81,11 @@ static uint8_t *block_start(uint8_t *framebuf, int stride,
return
framebuf
+
(
stride
*
mi_row
*
8
)
+
(
mi_col
*
8
);
}
void
copy_block
(
uint8_t
*
dest
,
int
dest_stride
,
uint8_t
*
src
,
int
src_stride
,
BLOCK_SIZE
bs
)
{
int
r
,
c
;
static
void
copy_block
(
uint8_t
*
dest
,
int
dest_stride
,
const
uint8_t
*
src
,
int
src_stride
,
BLOCK_SIZE
bs
)
{
int
r
;
for
(
r
=
0
;
r
<
heights
[
bs
];
++
r
)
{
for
(
c
=
0
;
c
<
widths
[
bs
];
++
c
)
{
dest
[
c
]
=
src
[
c
];
}
vpx_memcpy
(
dest
,
src
,
widths
[
bs
]);
dest
+=
dest_stride
;
src
+=
src_stride
;
}
...
...
@@ -254,16 +252,14 @@ void vp9_denoiser_denoise(VP9_DENOISER *denoiser, MACROBLOCK *mb,
}
static
void
copy_frame
(
YV12_BUFFER_CONFIG
dest
,
const
YV12_BUFFER_CONFIG
src
)
{
int
r
,
c
;
int
r
;
const
uint8_t
*
srcbuf
=
src
.
y_buffer
;
uint8_t
*
destbuf
=
dest
.
y_buffer
;
assert
(
dest
.
y_width
==
src
.
y_width
);
assert
(
dest
.
y_height
==
src
.
y_height
);
for
(
r
=
0
;
r
<
dest
.
y_height
;
++
r
)
{
for
(
c
=
0
;
c
<
dest
.
y_width
;
++
c
)
{
destbuf
[
c
]
=
srcbuf
[
c
];
}
vpx_memcpy
(
destbuf
,
srcbuf
,
dest
.
y_width
);
destbuf
+=
dest
.
y_stride
;
srcbuf
+=
src
.
y_stride
;
}
...
...
Write
Preview
Supports
Markdown
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