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
060e1eb0
Commit
060e1eb0
authored
May 12, 2017
by
Luc Trudeau
Browse files
[CFL] Rename out parameter signs to signs_out
Change-Id: I443004a9bdc026620f364f5bc1dcc1d5e0e4ca6f
parent
1a47430b
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/encoder/encodemb.c
View file @
060e1eb0
...
...
@@ -1570,7 +1570,8 @@ static int cfl_alpha_dist(const uint8_t *y_pix, int y_stride, double y_avg,
}
static
int
cfl_compute_alpha_ind
(
MACROBLOCK
*
const
x
,
const
CFL_CTX
*
const
cfl
,
BLOCK_SIZE
bsize
,
CFL_SIGN_TYPE
*
signs
)
{
BLOCK_SIZE
bsize
,
CFL_SIGN_TYPE
signs_out
[
CFL_SIGNS
])
{
const
struct
macroblock_plane
*
const
p_u
=
&
x
->
plane
[
AOM_PLANE_U
];
const
struct
macroblock_plane
*
const
p_v
=
&
x
->
plane
[
AOM_PLANE_V
];
const
uint8_t
*
const
src_u
=
p_u
->
src
.
buf
;
...
...
@@ -1598,8 +1599,8 @@ static int cfl_compute_alpha_ind(MACROBLOCK *const x, const CFL_CTX *const cfl,
// Compute least squares parameter of the entire block
// IMPORTANT: We assume that the first code is 0,0
int
ind
=
0
;
signs
[
CFL_PRED_U
]
=
CFL_SIGN_POS
;
signs
[
CFL_PRED_V
]
=
CFL_SIGN_POS
;
signs
_out
[
CFL_PRED_U
]
=
CFL_SIGN_POS
;
signs
_out
[
CFL_PRED_V
]
=
CFL_SIGN_POS
;
dist
=
cfl_alpha_dist
(
tmp_pix
,
MAX_SB_SIZE
,
y_avg
,
src_u
,
src_stride_u
,
block_width
,
block_height
,
dc_pred_u
,
0
,
NULL
)
+
...
...
@@ -1626,8 +1627,8 @@ static int cfl_compute_alpha_ind(MACROBLOCK *const x, const CFL_CTX *const cfl,
if
(
cost
<
best_cost
)
{
best_cost
=
cost
;
ind
=
c
;
signs
[
CFL_PRED_U
]
=
sign_u
;
signs
[
CFL_PRED_V
]
=
sign_v
;
signs
_out
[
CFL_PRED_U
]
=
sign_u
;
signs
_out
[
CFL_PRED_V
]
=
sign_v
;
}
}
}
...
...
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