Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
49741fee
Commit
49741fee
authored
10 years ago
by
Tim Kopp
Browse files
Options
Download
Patches
Plain Diff
Replaced loops with vpx_memcpy()
Change-Id: Icbe05657f0e92c3838e6a5a975f4f82d21328a2e
parent
82dc1332
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
sandbox/Jingning/experimental
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/encoder/vp9_denoiser.c
+6
-10
vp9/encoder/vp9_denoiser.c
with
6 additions
and
10 deletions
vp9/encoder/vp9_denoiser.c
+
6
−
10
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets