成员rawFrame类型如下: typedef struct { /* Format of the frame */ camera_format_type format; /* For pre-V7, Width and height of the picture. * For V7: * Snapshot: thumbnail dimension * Raw Snapshot: not applicable * Preview: not applicable */ uint16 dx; uint16 dy; /* For pre_V7: For BAYER format, RAW data before scaling. * For V7: * Snapshot: Main image dimension * Raw snapshot: raw image dimension * Preview: preview image dimension */ uint16 captured_dx; uint16 captured_dy; /* it indicates the degree of clockwise rotation that should be * applied to obtain the exact view of the captured image. */
uint16 rotation; #ifdef FEATURE_CAMERA_V7 /* Preview: not applicable * Raw shapshot: not applicable * Snapshot: thumbnail image buffer */ uint8 *thumbnail_image; #endif /* FEATURE_CAMERA_V7 */ /* For pre-V7: * Image buffer ptr * For V7: * Preview: preview image buffer ptr * Raw snapshot: Raw image buffer ptr * Shapshot: Main image buffer ptr */ byte * buffer; #ifdef FEATURE_FTM_CAMCORDER_RECORDING #error code not present #endif /*FEATURE_FTM_CAMCORDER_RECORDING*/ } camera_frame_type;