diff options
Diffstat (limited to 'chromium/media/video/capture/android/imageformat_list.h')
-rw-r--r-- | chromium/media/video/capture/android/imageformat_list.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/media/video/capture/android/imageformat_list.h b/chromium/media/video/capture/android/imageformat_list.h new file mode 100644 index 00000000000..57c5ba114f7 --- /dev/null +++ b/chromium/media/video/capture/android/imageformat_list.h @@ -0,0 +1,22 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file intentionally does not have header guards, it's included +// inside a macro to generate enum and a java class for the values. + +#ifndef DEFINE_ANDROID_IMAGEFORMAT +#error "DEFINE_ANDROID_IMAGEFORMAT should be defined." +#endif + +// Android graphics ImageFormat mapping, see reference in: +// http://developer.android.com/reference/android/graphics/ImageFormat.html + +DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_JPEG, 256) +DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_NV16, 16) +DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_NV21, 17) +DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_RGB_565, 4) +DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_YUY2, 20) +DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_YV12, 842094169) + +DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_UNKNOWN, 0) |