Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
2da8d24e
Commit
2da8d24e
authored
Jun 04, 2015
by
James Zern
Committed by
Gerrit Code Review
Jun 04, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "vp9_reconintra: simplify d45_predictor"
parents
a9f55e83
acc481ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
vp9/common/vp9_reconintra.c
vp9/common/vp9_reconintra.c
+11
-8
No files found.
vp9/common/vp9_reconintra.c
View file @
2da8d24e
...
...
@@ -472,14 +472,17 @@ void vp9_d45_predictor_4x4_c(uint8_t *dst, ptrdiff_t stride,
static
INLINE
void
d45_predictor
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
int
bs
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
int
r
,
c
;
(
void
)
left
;
for
(
r
=
0
;
r
<
bs
;
++
r
)
{
for
(
c
=
0
;
c
<
bs
;
++
c
)
dst
[
c
]
=
r
+
c
+
2
<
bs
*
2
?
ROUND_POWER_OF_TWO
(
above
[
r
+
c
]
+
above
[
r
+
c
+
1
]
*
2
+
above
[
r
+
c
+
2
],
2
)
:
above
[
bs
*
2
-
1
];
const
uint8_t
above_right
=
above
[
bs
-
1
];
int
x
,
size
;
uint8_t
avg
[
31
];
// TODO(jzern): this could be block size specific
(
void
)
left
;
for
(
x
=
0
;
x
<
bs
-
1
;
++
x
)
{
avg
[
x
]
=
AVG3
(
above
[
x
],
above
[
x
+
1
],
above
[
x
+
2
]);
}
for
(
x
=
0
,
size
=
bs
-
1
;
x
<
bs
;
++
x
,
--
size
)
{
memcpy
(
dst
,
avg
+
x
,
size
);
memset
(
dst
+
size
,
above_right
,
x
+
1
);
dst
+=
stride
;
}
}
...
...
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