Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
0ed606fd
Commit
0ed606fd
authored
Nov 08, 2013
by
Paul Wilkins
Committed by
Gerrit Code Review
Nov 08, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Removed unused rate parameter."
parents
a6462990
84b3b037
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_encodeframe.c
+2
-9
No files found.
vp9/encoder/vp9_encodeframe.c
View file @
0ed606fd
...
...
@@ -1765,7 +1765,7 @@ static void rd_pick_reference_frame(VP9_COMP *cpi, const TileInfo *const tile,
}
static
void
encode_sb_row
(
VP9_COMP
*
cpi
,
const
TileInfo
*
const
tile
,
int
mi_row
,
TOKENEXTRA
**
tp
,
int
*
totalrate
)
{
int
mi_row
,
TOKENEXTRA
**
tp
)
{
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
int
mi_col
;
...
...
@@ -1910,7 +1910,6 @@ static void encode_frame_internal(VP9_COMP *cpi) {
MACROBLOCK
*
const
x
=
&
cpi
->
mb
;
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
MACROBLOCKD
*
const
xd
=
&
x
->
e_mbd
;
int
totalrate
;
// fprintf(stderr, "encode_frame_internal frame %d (%d) type %d\n",
// cpi->common.current_video_frame, cpi->common.show_frame,
...
...
@@ -1926,8 +1925,6 @@ static void encode_frame_internal(VP9_COMP *cpi) {
}
#endif
totalrate
=
0
;
vp9_zero
(
cm
->
counts
.
switchable_interp
);
vp9_zero
(
cpi
->
tx_stepdown_count
);
...
...
@@ -1989,7 +1986,7 @@ static void encode_frame_internal(VP9_COMP *cpi) {
vp9_tile_init
(
&
tile
,
cm
,
tile_row
,
tile_col
);
for
(
mi_row
=
tile
.
mi_row_start
;
mi_row
<
tile
.
mi_row_end
;
mi_row
+=
8
)
encode_sb_row
(
cpi
,
&
tile
,
mi_row
,
&
tp
,
&
totalrate
);
encode_sb_row
(
cpi
,
&
tile
,
mi_row
,
&
tp
);
cpi
->
tok_count
[
tile_row
][
tile_col
]
=
(
unsigned
int
)(
tp
-
tp_old
);
assert
(
tp
-
cpi
->
tok
<=
get_token_alloc
(
cm
->
mb_rows
,
cm
->
mb_cols
));
...
...
@@ -2015,10 +2012,6 @@ static void encode_frame_internal(VP9_COMP *cpi) {
cpi
->
sf
.
skip_encode_frame
=
0
;
}
// 256 rate units to the bit,
// projected_frame_size in units of BYTES
cpi
->
projected_frame_size
=
totalrate
>>
8
;
#if 0
// Keep record of the total distortion this time around for future use
cpi->last_frame_distortion = cpi->frame_distortion;
...
...
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