CAMSetupInfo

Syntax

#include <cafe/camera/camera.h>

#define CAM_THREAD_ATTR_AFFINITY_NONE  0x00000007u        // affinity to run on every core
#define CAM_THREAD_ATTR_AFFINITY_CORE0 0x00000001u        // run only on core0
#define CAM_THREAD_ATTR_AFFINITY_CORE1 0x00000002u        // run only on core1
#define CAM_THREAD_ATTR_AFFINITY_CORE2 0x00000004u        // run only on core2

typedef struct _CAMSetupInfo
{
    CAMStreamInfo    StreamInfo;       
    CAMWorkMem       WorkMem;          
    CAMEventHandler  eventHandler;     
    CAMMode          mode; 
    int              ThreadAffinity;
    int              reserve[4];
} CAMSetupInfo;

Elements

StreamInfo Information about the camera stream.
WorkMem Information about the working memory needed by the camera library.
eventHandler Callback function pointer.
mode Camera mode settings.
ThreadAffinity Core affinity for camera threads; It should be OR'd bit value of CAM_THREAD_ATTR_AFFINITY_* attributes.
reserve Reserved for future use.

Description

The CAMSetupInfo structure stores all the information necessary for initializing the camera library that is detailed in the table above.

See Also

CAMStreamInfo
CAMWorkMem
CAMEventHandler
CAMMode
CAMInit

Revision History

2013-05-08 Automated cleanup pass.
2012-08-02 Cleanup Pass.
2011-10-24 Initial version.


CONFIDENTIAL