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
398aa818
Commit
398aa818
authored
Dec 13, 2010
by
John Koleszar
Committed by
Code Review
Dec 13, 2010
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Reduce size of TOKENEXTRA struct"
parents
136bd245
b7b1e6fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
vp8/encoder/tokenize.c
vp8/encoder/tokenize.c
+0
-8
vp8/encoder/tokenize.h
vp8/encoder/tokenize.h
+3
-4
No files found.
vp8/encoder/tokenize.c
View file @
398aa818
...
...
@@ -131,9 +131,6 @@ static void tokenize2nd_order_b
t
->
Token
=
x
;
t
->
context_tree
=
cpi
->
common
.
fc
.
coef_probs
[
type
]
[
band
]
[
pt
];
t
->
section
=
frametype
*
BLOCK_TYPES
*
2
+
2
*
type
+
(
c
==
0
);
t
->
skip_eob_node
=
pt
==
0
&&
((
band
>
0
&&
type
>
0
)
||
(
band
>
1
&&
type
==
0
));
++
cpi
->
coef_counts
[
type
]
[
band
]
[
pt
]
[
x
];
...
...
@@ -184,8 +181,6 @@ static void tokenize1st_order_b
t
->
Token
=
x
;
t
->
context_tree
=
cpi
->
common
.
fc
.
coef_probs
[
type
]
[
band
]
[
pt
];
t
->
section
=
frametype
*
BLOCK_TYPES
*
2
+
2
*
type
+
(
c
==
0
);
t
->
skip_eob_node
=
pt
==
0
&&
((
band
>
0
&&
type
>
0
)
||
(
band
>
1
&&
type
==
0
));
++
cpi
->
coef_counts
[
type
]
[
band
]
[
pt
]
[
x
];
...
...
@@ -434,7 +429,6 @@ static __inline void stuff2nd_order_b
t
->
Token
=
DCT_EOB_TOKEN
;
t
->
context_tree
=
cpi
->
common
.
fc
.
coef_probs
[
1
]
[
0
]
[
pt
];
t
->
section
=
11
;
t
->
skip_eob_node
=
0
;
++
cpi
->
coef_counts
[
1
]
[
0
]
[
pt
]
[
DCT_EOB_TOKEN
];
++
t
;
...
...
@@ -465,7 +459,6 @@ static __inline void stuff1st_order_b
t
->
Token
=
DCT_EOB_TOKEN
;
t
->
context_tree
=
cpi
->
common
.
fc
.
coef_probs
[
0
]
[
1
]
[
pt
];
t
->
section
=
8
;
t
->
skip_eob_node
=
0
;
++
cpi
->
coef_counts
[
0
]
[
1
]
[
pt
]
[
DCT_EOB_TOKEN
];
++
t
;
...
...
@@ -495,7 +488,6 @@ void stuff1st_order_buv
t
->
Token
=
DCT_EOB_TOKEN
;
t
->
context_tree
=
cpi
->
common
.
fc
.
coef_probs
[
2
]
[
0
]
[
pt
];
t
->
section
=
13
;
t
->
skip_eob_node
=
0
;
++
cpi
->
coef_counts
[
2
]
[
0
]
[
pt
]
[
DCT_EOB_TOKEN
];
++
t
;
...
...
vp8/encoder/tokenize.h
View file @
398aa818
...
...
@@ -25,11 +25,10 @@ typedef struct
typedef
struct
{
int
Token
;
int
Extra
;
const
vp8_prob
*
context_tree
;
int
skip_eob_node
;
int
section
;
char
skip_eob_node
;
char
Token
;
short
Extra
;
}
TOKENEXTRA
;
int
rd_cost_mby
(
MACROBLOCKD
*
);
...
...
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