summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2014-09-02 11:29:40 -0700
committerDmitry Kovalev <dkovalev@google.com>2014-09-02 11:29:40 -0700
commit296f2e6b93638aa57092acc5d1b273f8201d4a6c (patch)
tree1d3f931a43796959d6316d87839772b4b6ba3988 /examples
parent6b649a0db9727f3dd1d77af7046ecf3b31e18099 (diff)
downloadlibvpx-296f2e6b93638aa57092acc5d1b273f8201d4a6c.tar
libvpx-296f2e6b93638aa57092acc5d1b273f8201d4a6c.tar.gz
libvpx-296f2e6b93638aa57092acc5d1b273f8201d4a6c.tar.bz2
libvpx-296f2e6b93638aa57092acc5d1b273f8201d4a6c.zip
Switching back to #define instead of static const int.
To avoid 'variable length array' warnings from gcc. Change-Id: I426f7e93ce674a10b901e79c0c9d9df5d4e47cb6
Diffstat (limited to 'examples')
-rw-r--r--examples/vp8_multi_resolution_encoder.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/vp8_multi_resolution_encoder.c b/examples/vp8_multi_resolution_encoder.c
index 783c9d3a3..7c050fa3e 100644
--- a/examples/vp8_multi_resolution_encoder.c
+++ b/examples/vp8_multi_resolution_encoder.c
@@ -31,6 +31,14 @@
#include "./tools_common.h"
#include "./video_writer.h"
+// The input video frame is downsampled several times to generate a
+// multi-level hierarchical structure. kNumEncoders is defined as the number
+// of encoding levels required. For example, if the size of input video is
+// 1280x720, kNumEncoders is 3, and down-sampling factor is 2, the encoder
+// outputs 3 bitstreams with resolution of 1280x720(level 0),
+// 640x360(level 1), and 320x180(level 2) respectively.
+#define kNumEncoders 3
+
static const char *exec_name;
void usage_exit() {
@@ -41,14 +49,6 @@ void usage_exit() {
}
int main(int argc, char *argv[]) {
- // The input video frame is downsampled several times to generate a
- // multi-level hierarchical structure. kNumEncoders is defined as the number
- // of encoding levels required. For example, if the size of input video is
- // 1280x720, kNumEncoders is 3, and down-sampling factor is 2, the encoder
- // outputs 3 bitstreams with resolution of 1280x720(level 0),
- // 640x360(level 1), and 320x180(level 2) respectively.
- static const int kNumEncoders = 3;
-
int frame_cnt = 0;
FILE *infile = NULL;
VpxVideoWriter *writers[kNumEncoders];