OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // This file intentionally does not have header guards, it's included | |
6 // inside a macro to generate enum and a java class for the values. | |
7 | |
8 #ifndef DEFINE_ANDROID_IMAGEFORMAT | |
9 #error "DEFINE_ANDROID_IMAGEFORMAT should be defined." | |
10 #endif | |
11 | |
12 // Android graphics ImageFormat mapping, see reference in: | |
13 // http://developer.android.com/reference/android/graphics/ImageFormat.html | |
14 | |
15 DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_JPEG, 0) | |
Ami GONE FROM CHROMIUM
2013/09/12 17:03:16
If you used the same values that the SDK uses (i.e
mcasas
2013/09/13 08:42:51
Do you mean hardcoding the ImageFormat.xyz values?
Ami GONE FROM CHROMIUM
2013/09/13 17:29:00
You are already hard-coding values of -1..5. I'm
mcasas
2013/09/16 08:43:02
Done not making up new numbers for the imageformat
bulach
2013/09/16 08:45:02
hey Ami, Miguel,
I think I should clarify a bit m
| |
16 DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_NV16, 1) | |
17 DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_NV21, 2) | |
18 DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_RGB_565, 3) | |
19 DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_YUY2, 4) | |
20 DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_YV12, 5) | |
21 | |
22 DEFINE_ANDROID_IMAGEFORMAT(ANDROID_IMAGEFORMAT_UNKNOWN, -1) | |
OLD | NEW |