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
0b25a3ca
Commit
0b25a3ca
authored
10 years ago
by
Dmitry Kovalev
Browse files
Options
Download
Patches
Plain Diff
Inlining vp9_set_segmentation_map() function.
Change-Id: I82f23f0f91a0be8329e20fcd2a5918c6a096dacc
parent
0bba4f1e
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
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
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
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
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
vp9/encoder/vp9_onyx_if.c
+3
-3
vp9/encoder/vp9_onyx_if.c
vp9/encoder/vp9_segmentation.c
+0
-12
vp9/encoder/vp9_segmentation.c
vp9/encoder/vp9_segmentation.h
+0
-3
vp9/encoder/vp9_segmentation.h
with
3 additions
and
18 deletions
vp9/encoder/vp9_onyx_if.c
+
3
−
3
View file @
0b25a3ca
...
...
@@ -2894,9 +2894,10 @@ int vp9_set_roimap(VP9_COMP *cpi, unsigned char *map, unsigned int rows,
unsigned
int
threshold
[
MAX_SEGMENTS
])
{
signed
char
feature_data
[
SEG_LVL_MAX
][
MAX_SEGMENTS
];
struct
segmentation
*
seg
=
&
cpi
->
common
.
seg
;
const
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
int
i
;
if
(
c
pi
->
common
.
mb_rows
!=
rows
||
c
pi
->
common
.
mb_cols
!=
cols
)
if
(
c
m
->
mb_rows
!=
rows
||
c
m
->
mb_cols
!=
cols
)
return
-
1
;
if
(
!
map
)
{
...
...
@@ -2904,8 +2905,7 @@ int vp9_set_roimap(VP9_COMP *cpi, unsigned char *map, unsigned int rows,
return
0
;
}
// Set the segmentation Map
vp9_set_segmentation_map
(
cpi
,
map
);
vpx_memcpy
(
cpi
->
segmentation_map
,
map
,
cm
->
mi_rows
*
cm
->
mi_cols
);
// Activate segmentation.
vp9_enable_segmentation
(
seg
);
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/vp9_segmentation.c
+
0
−
12
View file @
0b25a3ca
...
...
@@ -29,18 +29,6 @@ void vp9_disable_segmentation(struct segmentation *seg) {
seg
->
enabled
=
0
;
}
void
vp9_set_segmentation_map
(
VP9_COMP
*
cpi
,
unsigned
char
*
segmentation_map
)
{
struct
segmentation
*
const
seg
=
&
cpi
->
common
.
seg
;
// Copy in the new segmentation map
vpx_memcpy
(
cpi
->
segmentation_map
,
segmentation_map
,
(
cpi
->
common
.
mi_rows
*
cpi
->
common
.
mi_cols
));
// Signal that the map should be updated.
seg
->
update_map
=
1
;
seg
->
update_data
=
1
;
}
void
vp9_set_segment_data
(
struct
segmentation
*
seg
,
signed
char
*
feature_data
,
unsigned
char
abs_delta
)
{
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/vp9_segmentation.h
+
0
−
3
View file @
0b25a3ca
...
...
@@ -28,9 +28,6 @@ void vp9_disable_segfeature(struct segmentation *seg,
void
vp9_clear_segdata
(
struct
segmentation
*
seg
,
int
segment_id
,
SEG_LVL_FEATURES
feature_id
);
// Valid values for a segment are 0 to 3
// Segmentation map is arrange as [Rows][Columns]
void
vp9_set_segmentation_map
(
VP9_COMP
*
cpi
,
unsigned
char
*
segmentation_map
);
// The values given for each segment can be either deltas (from the default
// value chosen for the frame) or absolute values.
...
...
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