Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
583f2d8f
Commit
583f2d8f
authored
13 years ago
by
Paul Wilkins
Browse files
Options
Download
Patches
Plain Diff
Deleted code.
Removed redundant code for ref frame cost.
parent
fb472c5b
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m29-baseline
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
vp9-preview
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vp8/common/blockd.h
+0
-3
vp8/common/blockd.h
vp8/encoder/encodeframe.c
+0
-33
vp8/encoder/encodeframe.c
with
0 additions
and
36 deletions
vp8/common/blockd.h
+
0
−
3
View file @
583f2d8f
...
...
@@ -299,9 +299,6 @@ typedef struct MacroBlockD
int
mb_to_top_edge
;
int
mb_to_bottom_edge
;
// TODO this is not used in the decoder so should not be in this structure
int
ref_frame_cost
[
MAX_REF_FRAMES
];
unsigned
int
frames_since_golden
;
unsigned
int
frames_till_alt_ref_frame
;
vp8_subpix_fn_t
subpixel_predict
;
...
...
This diff is collapsed.
Click to expand it.
vp8/encoder/encodeframe.c
+
0
−
33
View file @
583f2d8f
...
...
@@ -1025,39 +1025,6 @@ void init_encode_frame_mb_context(VP8_COMP *cpi)
vpx_memset
(
cm
->
above_context
,
0
,
sizeof
(
ENTROPY_CONTEXT_PLANES
)
*
cm
->
mb_cols
);
//#if CONFIG_COMPRED
// TODO... this will all need changing for new reference frame coding model
// in addition... ref_frame_cost should not be in the MACROBLOCKD structure as
// it is only referenced in the encoder.
//#endif
xd
->
ref_frame_cost
[
INTRA_FRAME
]
=
vp8_cost_zero
(
cm
->
prob_intra_coded
);
// Special case treatment when GF and ARF are not sensible options for reference
if
(
cpi
->
ref_frame_flags
==
VP8_LAST_FLAG
)
{
xd
->
ref_frame_cost
[
LAST_FRAME
]
=
vp8_cost_one
(
cm
->
prob_intra_coded
)
+
vp8_cost_zero
(
255
);
xd
->
ref_frame_cost
[
GOLDEN_FRAME
]
=
vp8_cost_one
(
cm
->
prob_intra_coded
)
+
vp8_cost_one
(
255
)
+
vp8_cost_zero
(
128
);
xd
->
ref_frame_cost
[
ALTREF_FRAME
]
=
vp8_cost_one
(
cm
->
prob_intra_coded
)
+
vp8_cost_one
(
255
)
+
vp8_cost_one
(
128
);
}
else
{
xd
->
ref_frame_cost
[
LAST_FRAME
]
=
vp8_cost_one
(
cm
->
prob_intra_coded
)
+
vp8_cost_zero
(
cm
->
prob_last_coded
);
xd
->
ref_frame_cost
[
GOLDEN_FRAME
]
=
vp8_cost_one
(
cm
->
prob_intra_coded
)
+
vp8_cost_one
(
cm
->
prob_last_coded
)
+
vp8_cost_zero
(
cm
->
prob_gf_coded
);
xd
->
ref_frame_cost
[
ALTREF_FRAME
]
=
vp8_cost_one
(
cm
->
prob_intra_coded
)
+
vp8_cost_one
(
cm
->
prob_last_coded
)
+
vp8_cost_one
(
cm
->
prob_gf_coded
);
}
xd
->
fullpixel_mask
=
0xffffffff
;
if
(
cm
->
full_pixel
)
xd
->
fullpixel_mask
=
0xfffffff8
;
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets