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
4f92b96b
Commit
4f92b96b
authored
14 years ago
by
Adrian Grange
Committed by
Code Review
14 years ago
Browse files
Options
Download
Plain Diff
Merge "Moved row-specific computation of MV bounds out of col loop"
parents
ff3068d6
0e7c45b3
v1.14.0-linphone
1.4.X
aylesbury
bali
cayuga
eider
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/atna/dec_sem_sync
sandbox/awatry/initial_opencl_implementation
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/hlundin/error-concealment
sandbox/holmer/error-concealment
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jkoleszar/cached-multibit
sandbox/jkoleszar/experimental-knobs
sandbox/jkoleszar/new-rate-control
sandbox/jkoleszar/new-rtcd
sandbox/jkoleszar/reuse-modemv
sandbox/jkoleszar/use-memcpy
sandbox/jzern@google.com/test
sandbox/slavarnway/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
v1.2.0
v1.1.0
v1.0.0
v0.9.7
v0.9.7-p1
v0.9.6
v0.9.5
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8/encoder/encodeframe.c
+18
-8
vp8/encoder/encodeframe.c
with
18 additions
and
8 deletions
vp8/encoder/encodeframe.c
+
18
−
8
View file @
4f92b96b
...
...
@@ -400,21 +400,31 @@ void encode_mb_row(VP8_COMP *cpi,
cpi
->
tplist
[
mb_row
].
start
=
*
tp
;
//printf("Main mb_row = %d\n", mb_row);
// Distance of Mb to the top & bottom edges, specified in 1/8th pel
// units as they are always compared to values that are in 1/8th pel units
xd
->
mb_to_top_edge
=
-
((
mb_row
*
16
)
<<
3
);
xd
->
mb_to_bottom_edge
=
((
cm
->
mb_rows
-
1
-
mb_row
)
*
16
)
<<
3
;
// Set up limit values for vertical motion vector components
// to prevent them extending beyond the UMV borders
x
->
mv_row_min
=
-
((
mb_row
*
16
)
+
(
VP8BORDERINPIXELS
-
16
));
x
->
mv_row_max
=
((
cm
->
mb_rows
-
1
-
mb_row
)
*
16
)
+
(
VP8BORDERINPIXELS
-
16
);
// for each macroblock col in image
for
(
mb_col
=
0
;
mb_col
<
cm
->
mb_cols
;
mb_col
++
)
{
// Distance of Mb to the various image edges.
// These specified to 8th pel as they are always compared to values that are in 1/8th pel units
// Distance of Mb to the left & right edges, specified in
// 1/8th pel units as they are always compared to values
// that are in 1/8th pel units
xd
->
mb_to_left_edge
=
-
((
mb_col
*
16
)
<<
3
);
xd
->
mb_to_right_edge
=
((
cm
->
mb_cols
-
1
-
mb_col
)
*
16
)
<<
3
;
xd
->
mb_to_top_edge
=
-
((
mb_row
*
16
)
<<
3
);
xd
->
mb_to_bottom_edge
=
((
cm
->
mb_rows
-
1
-
mb_row
)
*
16
)
<<
3
;
// Set up limit values for motion vectors used to prevent them extending outside the UMV borders
// Set up limit values for horizontal motion vector components
// to prevent them extending beyond the UMV borders
x
->
mv_col_min
=
-
((
mb_col
*
16
)
+
(
VP8BORDERINPIXELS
-
16
));
x
->
mv_col_max
=
((
cm
->
mb_cols
-
1
-
mb_col
)
*
16
)
+
(
VP8BORDERINPIXELS
-
16
);
x
->
mv_row_min
=
-
((
mb_row
*
16
)
+
(
VP8BORDERINPIXELS
-
16
));
x
->
mv_row_max
=
((
cm
->
mb_rows
-
1
-
mb_row
)
*
16
)
+
(
VP8BORDERINPIXELS
-
16
);
x
->
mv_col_max
=
((
cm
->
mb_cols
-
1
-
mb_col
)
*
16
)
+
(
VP8BORDERINPIXELS
-
16
);
xd
->
dst
.
y_buffer
=
cm
->
yv12_fb
[
dst_fb_idx
].
y_buffer
+
recon_yoffset
;
xd
->
dst
.
u_buffer
=
cm
->
yv12_fb
[
dst_fb_idx
].
u_buffer
+
recon_uvoffset
;
...
...
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