summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_onyx.h
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2013-04-24 13:04:45 +0100
committerPaul Wilkins <paulwilkins@google.com>2013-04-24 16:36:47 +0100
commit31ee193a9ccfccef65dad0fba3462b9f83db97fa (patch)
treea2d5f3cfb21c928911173031951c78604f37284c /vp9/common/vp9_onyx.h
parentc77aff1286df07fb9f3b49feaacf384703813eca (diff)
downloadlibvpx-31ee193a9ccfccef65dad0fba3462b9f83db97fa.tar
libvpx-31ee193a9ccfccef65dad0fba3462b9f83db97fa.tar.gz
libvpx-31ee193a9ccfccef65dad0fba3462b9f83db97fa.tar.bz2
libvpx-31ee193a9ccfccef65dad0fba3462b9f83db97fa.zip
Extension of segmentation to 8 segments.
Also some further simplification following removal of top node code. There is an issue in regards to the shared file vp8cx.h in regard to the roi_map as this interface assumes that there are only 4 segments. I have left the value here as 4 for now meaning that the roi_map interface is broken for VP9. Note that this change would have been easier if I hadn't had to search for hard wire instances of the number 4 and <= 3. Change-Id: Ia8b6deea4be4dbd20deb1656e689dd43a5f190e8
Diffstat (limited to 'vp9/common/vp9_onyx.h')
-rw-r--r--vp9/common/vp9_onyx.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/vp9/common/vp9_onyx.h b/vp9/common/vp9_onyx.h
index 422f3885f..b85b88968 100644
--- a/vp9/common/vp9_onyx.h
+++ b/vp9/common/vp9_onyx.h
@@ -21,6 +21,9 @@ extern "C"
#include "vpx/vp8cx.h"
#include "vpx_scale/yv12config.h"
#include "vp9/common/vp9_ppflags.h"
+
+#define MAX_MB_SEGMENTS 8
+
typedef int *VP9_PTR;
/* Create/destroy static data structures. */
@@ -225,8 +228,9 @@ extern "C"
int vp9_set_roimap(VP9_PTR comp, unsigned char *map,
unsigned int rows, unsigned int cols,
- int delta_q[4], int delta_lf[4],
- unsigned int threshold[4]);
+ int delta_q[MAX_MB_SEGMENTS],
+ int delta_lf[MAX_MB_SEGMENTS],
+ unsigned int threshold[MAX_MB_SEGMENTS]);
int vp9_set_active_map(VP9_PTR comp, unsigned char *map,
unsigned int rows, unsigned int cols);