1a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk/* 2a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * Copyright (C) 2013 The Android Open Source Project 3a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * 4a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * Licensed under the Apache License, Version 2.0 (the "License"); 5a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * you may not use this file except in compliance with the License. 6a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * You may obtain a copy of the License at 7a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * 8a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * http://www.apache.org/licenses/LICENSE-2.0 9a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * 10a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * Unless required by applicable law or agreed to in writing, software 11a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * distributed under the License is distributed on an "AS IS" BASIS, 12a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * See the License for the specific language governing permissions and 14a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk * limitations under the License. 15a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk */ 16a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk 17a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunkpackage com.android.gallery3d.jpegstream; 18a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk 19a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunkpublic interface JpegConfig { 20a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk // Pixel formats 21a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk public static final int FORMAT_GRAYSCALE = 0x001; // 1 byte/pixel 22a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk public static final int FORMAT_RGB = 0x003; // 3 bytes/pixel RGBRGBRGBRGB... 23a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk public static final int FORMAT_RGBA = 0x004; // 4 bytes/pixel RGBARGBARGBARGBA... 24a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk public static final int FORMAT_ABGR = 0x104; // 4 bytes/pixel ABGRABGRABGR... 25a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk 26a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk // Jni error codes 27a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk static final int J_SUCCESS = 0; 28a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk static final int J_ERROR_FATAL = -1; 29a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk static final int J_ERROR_BAD_ARGS = -2; 30a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk static final int J_EXCEPTION = -3; 31a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk static final int J_DONE = -4; 32a8221bbdb8ece9b02dbf7b72565f9fbc5b314f7cRuben Brunk} 33