API Guide Home (Online version only) |

# CameraLibCommon.h

Go to the documentation of this file.

    00001 /*******************************************************************************
    00002  * Copyright (c) 2004-2005 palmOne, Inc. or its subsidiaries.
    00003  * All rights reserved.
    00004  ******************************************************************************/
    00005 /**
    00006  *@ingroup Camera
    00007  */
    00008
    00009 /**
    00010  * @file    CameraLibCommon.h
    00011  * @brief   Public 68K common header file for camera support for Treo 600 devices.
    00012  *
    00013  * This file contains the library constants and error codes used in the APIs.
    00014  * <hr>
    00015  */
    00016
    00017 #ifndef CAMERA_LIB_COMMON_H
    00018 #define CAMERA_LIB_COMMON_H
    00019
    00020 #define kCameraLibType      sysFileTLibrary /**< Default library type */
    00021 #define kCameraLibCreator   'HsCa'          /**< Camera library creator ID */
    00022 #define kCameraLibName      "CameraLib"     /**< Camera library database name */
    00023
    00024
    00025 /**
    00026  * @name Image Format
    00027  */
    00028 /*@{*/
    00029 #define kCameraImageFormatRGB1        1 /**<Whatever RGB1 Format is*/
    00030 #define kCameraImageFormatRGB4        2 /**<Whatever RGB4 Format is*/
    00031 #define kCameraImageFormatRGB8        3 /**<Whatever RGB8 Format is*/
    00032 #define kCameraImageFormatRGB16       4 /**<Whatever RGB16 Format is*/
    00033 #define kCameraImageFormatRGB24       5 /**<Whatever RGB24 Format is*/
    00034 #define kCameraImageFormatRGB32       6 /**<Whatever RGB32 Format is*/
    00035 #define kCameraImageFormatYCrCb       7 /**<Whatever RGBYCrCb Format is*/
    00036 #define kCameraImageLittleEndian      0x8000 /**<Whatever LittleEndian Format is*/
    00037 #define kCameraImageFormatYCbCr       kCameraImageFormatYCrCb /**< not used */
    00038 /*@}*/
    00039
    00040 /**
    00041  * @name Error Codes
    00042  */
    00043 /*@{*/
    00044 #define errCam                        0xaf00
    00045 #define errCamNoFrame                 (errCam + 0)
    00046 #define errInPreviewMode              (errCam + 1)
    00047 #define errCamOverflow                (errCam + 2)
    00048 #define errInvalidAddress             (errCam + 3)
    00049 #define errCamWriteFailed             (errCam + 4)
    00050 /*@}*/
    00051
    00052 /**
    00053  * @name Function Traps
    00054  */
    00055 /*@{*/
    00056 #define kCameraLibTrapOpen                  sysLibTrapOpen
    00057 #define kCameraLibTrapClose                 sysLibTrapClose
    00058 #define kCameraLibTrapSleep                 sysLibTrapSleep
    00059 #define kCameraLibTrapWake                  sysLibTrapWake
    00060 #define kCameraLibTrapCameraLibCapture      (sysLibTrapCustom)
    00061 #define kCameraLibTrapCameraLibPreview      (sysLibTrapCustom+1)
    00062 #define kCameraLibTrapCameraLibPreviewStart (sysLibTrapCustom+2)
    00063 #define kCameraLibTrapCameraLibPreviewStop  (sysLibTrapCustom+3)
    00064 #define kCameraLibTrapCameraLibRegisterGet  (sysLibTrapCustom+4)
    00065 #define kCameraLibTrapCameraLibRegisterSet  (sysLibTrapCustom+5)
    00066 /*@}*/
    00067
    00068 #endif

Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:06:52 2008 for Palm API Guide