Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
a5db3967
Commit
a5db3967
authored
Oct 05, 2013
by
Jim Bankoski
Committed by
Gerrit Code Review
Oct 05, 2013
Browse files
Merge "encodemb cpplint issues revisited."
parents
7edc5ac4
bf21ce63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
vp9/encoder/vp9_encodemb.c
vp9/encoder/vp9_encodemb.c
+6
-8
No files found.
vp9/encoder/vp9_encodemb.c
View file @
a5db3967
...
...
@@ -80,8 +80,7 @@ void vp9_subtract_sb(MACROBLOCK *x, BLOCK_SIZE bsize) {
vp9_subtract_sbuv
(
x
,
bsize
);
}
#define RDTRUNC(RM,DM,R,D) ( (128+(R)*(RM)) & 0xFF )
#define RDTRUNC(RM, DM, R, D) ((128 + (R) * (RM)) & 0xFF)
typedef
struct
vp9_token_state
vp9_token_state
;
struct
vp9_token_state
{
...
...
@@ -92,7 +91,7 @@ struct vp9_token_state {
short
qc
;
};
// TODO: experiment
s
to find optimal
multiple
numbers
// TODO
(jimbankoski)
: experiment to find optimal
RD
numbers
.
#define Y1_RD_MULT 4
#define UV_RD_MULT 2
...
...
@@ -272,11 +271,10 @@ static void optimize_b(MACROBLOCK *mb,
best_index
[
i
][
1
]
=
best
;
/* Finally, make this the new head of the trellis. */
next
=
i
;
}
/* There's no choice to make for a zero coefficient, so we don't
* add a new trellis node, but we do need to update the costs.
*/
else
{
}
else
{
/* There's no choice to make for a zero coefficient, so we don't
* add a new trellis node, but we do need to update the costs.
*/
band
=
get_coef_band
(
band_translate
,
i
+
1
);
t0
=
tokens
[
next
][
0
].
token
;
t1
=
tokens
[
next
][
1
].
token
;
...
...
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