API Guide Home (Online version only) |

# CameraLibCommon.h File Reference

## Detailed Description

Public 68K common header file for camera support for Treo 600 devices.

This file contains the library constants and error codes used in the APIs.

Definition in file CameraLibCommon.h.

Go to the source code of this file.

## Defines

- #define kCameraLibType sysFileTLibrary
- #define kCameraLibCreator 'HsCa'
- #define kCameraLibName "CameraLib"

Image Format

- #define kCameraImageFormatRGB1 1
- #define kCameraImageFormatRGB4 2
- #define kCameraImageFormatRGB8 3
- #define kCameraImageFormatRGB16 4
- #define kCameraImageFormatRGB24 5
- #define kCameraImageFormatRGB32 6
- #define kCameraImageFormatYCrCb 7
- #define kCameraImageLittleEndian 0x8000
- #define kCameraImageFormatYCbCr kCameraImageFormatYCrCb

Error Codes

- #define errCam 0xaf00
- #define errCamNoFrame (errCam + 0)
- #define errInPreviewMode (errCam + 1)
- #define errCamOverflow (errCam + 2)
- #define errInvalidAddress (errCam + 3)
- #define errCamWriteFailed (errCam + 4)

Function Traps

- #define kCameraLibTrapOpen sysLibTrapOpen
- #define kCameraLibTrapClose sysLibTrapClose
- #define kCameraLibTrapSleep sysLibTrapSleep
- #define kCameraLibTrapWake sysLibTrapWake
- #define kCameraLibTrapCameraLibCapture (sysLibTrapCustom)
- #define kCameraLibTrapCameraLibPreview (sysLibTrapCustom+1)
- #define kCameraLibTrapCameraLibPreviewStart (sysLibTrapCustom+2)
- #define kCameraLibTrapCameraLibPreviewStop (sysLibTrapCustom+3)
- #define kCameraLibTrapCameraLibRegisterGet (sysLibTrapCustom+4)
- #define kCameraLibTrapCameraLibRegisterSet (sysLibTrapCustom+5)

## Define Documentation

#define errCam 0xaf00

Definition at line 44 of file CameraLibCommon.h.

#define errCamNoFrame (errCam + 0)

Definition at line 45 of file CameraLibCommon.h.

#define errCamOverflow (errCam + 2)

Definition at line 47 of file CameraLibCommon.h.

#define errCamWriteFailed (errCam + 4)

Definition at line 49 of file CameraLibCommon.h.

#define errInPreviewMode (errCam + 1)

Definition at line 46 of file CameraLibCommon.h.

#define errInvalidAddress (errCam + 3)

Definition at line 48 of file CameraLibCommon.h.

#define kCameraImageFormatRGB1 1

Whatever RGB1 Format is

Definition at line 29 of file CameraLibCommon.h.

#define kCameraImageFormatRGB16 4

Whatever RGB16 Format is

Definition at line 32 of file CameraLibCommon.h.

#define kCameraImageFormatRGB24 5

Whatever RGB24 Format is

Definition at line 33 of file CameraLibCommon.h.

#define kCameraImageFormatRGB32 6

Whatever RGB32 Format is

Definition at line 34 of file CameraLibCommon.h.

#define kCameraImageFormatRGB4 2

Whatever RGB4 Format is

Definition at line 30 of file CameraLibCommon.h.

#define kCameraImageFormatRGB8 3

Whatever RGB8 Format is

Definition at line 31 of file CameraLibCommon.h.

#define kCameraImageFormatYCbCr kCameraImageFormatYCrCb

not used

Definition at line 37 of file CameraLibCommon.h.

#define kCameraImageFormatYCrCb 7

Whatever RGBYCrCb Format is

Definition at line 35 of file CameraLibCommon.h.

#define kCameraImageLittleEndian 0x8000

Whatever LittleEndian Format is

Definition at line 36 of file CameraLibCommon.h.

#define kCameraLibCreator 'HsCa'

Camera library creator ID

Definition at line 21 of file CameraLibCommon.h.

#define kCameraLibName "CameraLib"

Camera library database name

Definition at line 22 of file CameraLibCommon.h.

#define kCameraLibTrapCameraLibCapture (sysLibTrapCustom)

Definition at line 60 of file CameraLibCommon.h.

#define kCameraLibTrapCameraLibPreview (sysLibTrapCustom+1)

Definition at line 61 of file CameraLibCommon.h.

#define kCameraLibTrapCameraLibPreviewStart (sysLibTrapCustom+2)

Definition at line 62 of file CameraLibCommon.h.

#define kCameraLibTrapCameraLibPreviewStop (sysLibTrapCustom+3)

Definition at line 63 of file CameraLibCommon.h.

#define kCameraLibTrapCameraLibRegisterGet (sysLibTrapCustom+4)

Definition at line 64 of file CameraLibCommon.h.

#define kCameraLibTrapCameraLibRegisterSet (sysLibTrapCustom+5)

Definition at line 65 of file CameraLibCommon.h.

#define kCameraLibTrapClose sysLibTrapClose

Definition at line 57 of file CameraLibCommon.h.

#define kCameraLibTrapOpen sysLibTrapOpen

Definition at line 56 of file CameraLibCommon.h.

#define kCameraLibTrapSleep sysLibTrapSleep

Definition at line 58 of file CameraLibCommon.h.

#define kCameraLibTrapWake sysLibTrapWake

Definition at line 59 of file CameraLibCommon.h.

#define kCameraLibType sysFileTLibrary

Default library type

Definition at line 20 of file CameraLibCommon.h.

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