Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
72d55e2c
Commit
72d55e2c
authored
Apr 25, 2017
by
Luc Trudeau
Browse files
[CFL] Removing excessive consts
Change-Id: Ia97bc1c8b13f73b6dcdd40079535dba0b786c0c6
parent
963cacb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
av1/common/cfl.c
View file @
72d55e2c
...
...
@@ -14,8 +14,7 @@
// CfL computes its own block-level DC_PRED. This is required to compute both
// alpha_cb and alpha_cr before the prediction are computed.
void
cfl_dc_pred
(
MACROBLOCKD
*
const
xd
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
)
{
void
cfl_dc_pred
(
MACROBLOCKD
*
xd
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
)
{
const
struct
macroblockd_plane
*
const
pd_cb
=
&
xd
->
plane
[
AOM_PLANE_U
];
const
struct
macroblockd_plane
*
const
pd_cr
=
&
xd
->
plane
[
AOM_PLANE_V
];
...
...
@@ -73,16 +72,15 @@ void cfl_dc_pred(MACROBLOCKD *const xd, BLOCK_SIZE plane_bsize,
// Predict the current transform block using CfL.
// it is assumed that dst points at the start of the transform block
void
cfl_predict_block
(
uint8_t
*
const
dst
,
int
dst_stride
,
TX_SIZE
tx_size
,
void
cfl_predict_block
(
uint8_t
*
dst
,
int
dst_stride
,
TX_SIZE
tx_size
,
int
dc_pred
)
{
const
int
tx_block_width
=
tx_size_wide
[
tx_size
];
const
int
tx_block_height
=
tx_size_high
[
tx_size
];
int
dst_row
=
0
;
for
(
int
j
=
0
;
j
<
tx_block_height
;
j
++
)
{
for
(
int
i
=
0
;
i
<
tx_block_width
;
i
++
)
{
dst
[
dst_row
+
i
]
=
dc_pred
;
dst
[
i
]
=
dc_pred
;
}
dst
_row
+=
dst_stride
;
dst
+=
dst_stride
;
}
}
av1/common/cfl.h
View file @
72d55e2c
...
...
@@ -15,10 +15,9 @@
#include "av1/common/blockd.h"
#include "av1/common/enums.h"
void
cfl_dc_pred
(
MACROBLOCKD
*
const
xd
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
);
void
cfl_dc_pred
(
MACROBLOCKD
*
xd
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
);
void
cfl_predict_block
(
uint8_t
*
const
dst
,
int
dst_stride
,
TX_SIZE
tx_size
,
void
cfl_predict_block
(
uint8_t
*
dst
,
int
dst_stride
,
TX_SIZE
tx_size
,
int
dc_pred
);
#endif // AV1_COMMON_CFL_H_
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