DOC

Camera Training

By Chris Garcia,2014-04-27 16:48
9 views 0
Camera Training

    Camera module training base on Dragonfly Platform

    一:Camera module framework

    MMI

    Still Picture

    VideoSingleBurst(Default)

    File StorageManagementMPEG4File StorageManagementJPEG

    VES

    GIMAGINGGAUDIO

    Low level modules(HWL, Drivers,...)

二:Camera feature list

    1: single snapshot (format is JPEG);

    2: burst snapshot (format is JPEG);

    3: record video (format is mpeg4 or 3gp);

    4: self mode (include 1, 2, 3)

    5: OSD snapshot (single)

三:imaging introduce

    1: Capture environmentstandard room darkness(sensor parameter)

    2: Capture effectnormal, sepia, monochrome(sensor parameter)

    3: brightness: -2, -1, 0, +1, +2(sensor parameter)

    4: sensor finder resolution (sensor parameter)

    1-4 step set before preview start

    5: Zoom: 1,2,3,4

    Zoom set during on preview

    6: image quality: super fine, fine, normal

    Image quality set during on preview and snapshot

7: Capture image sizeCLI, Wall PaperSQCIF, QCIF, QQVGA, VGA, XGA, SXGA, UXGA etc

    Image size set before preview start

四:photo preview process

    1: preview is available: MC_GI_PREVIEW_ISAVAILABLE

     Input parameter: null

     Output parameter: true or false

    2: preview open (get preview session id): MC_GI_PREVIEW_OPEN

     Input parameter: Set first LCD or second LCD.

     Output parameter: preview session id

    3: preview set to: MC_GI_PREVIEW_SETTO

     Input parameter: preview session id; Preview position; preview size (width must be 4 multiple)

    Output parameter: status

    4: preview start: MC_GI_PREVIEW_START

     Input parameter: preview session id

     Output parameter: status

    5: preview stop: MC_GI_PREVIEW_STOP

     Input parameter: preview session id

     Output parameter: status

    6: preview close: MC_GI_PREVIEW_CLOSE

     Input parameter: preview session id

     Output parameter: status

五:photo overlay process

    1: overlay set palette: MC_GI_OVERLAY_SETPALETTE

     Input parameter: palette

     Output parameter: status

    2: overlay set mode: MC_GI_OVERLAY_SETMODE

     Input parameter: Is Animation, Animation size

     Output parameter: status

    3: overlay set position: MC_GI_OVERLAY_SETPOSITION

     Input parameter: overlay position (base on preview area) Output parameter: status

    13 step before preview start 4: overlay is available: MC_GI_OVERLAY_ISAVAILABLE

     Input parameter: null

     Output parameter: true or false

    5: overlay open (get overlay session id): MC_GI_OVERLAY_OPEN

     Input parameter: preview session id

     Output parameter: overlay session id

    6: overlay draw icon: MC_GI_OVERLAY_DRAWICON

     Input parameter: overlay session id; overlay icon position;

    icon size (width must be 4 multiple) ;Icon buffer

    Output parameter: status

7: overlay close: MC_GI_OVERLAY_CLOSE

     Input parameter: overlay session id;

    Output parameter: status

    47 step base on preview start , that is preview session id is not mull

六:photo snapshot process

    1: reader is available: MC_GI_READER_ISAVAILABLE

     Input parameter: image formatjpeg

     Output parameter: true ,false

    2: reader open (get reader session id): MC_GI_READER_OPEN

     Input parameter: image formatjpeg.

     Output parameter: reader session id

    3: reader set to: MC_GI_READER_SETTO

     Input parameter: reader session id; image size; image quality; target size (0) Output parameter: status

    4: reader do read: MC_GI_READER_DOREAD

     Input parameter: reader session id, is overlay, is preview, callback (return jpeg buffer point and

    buffer length)

     Output parameter: status

    5: reader close: MC_GI_READER_CLOSE

     Input parameter: session id

     Output parameter: status

七:record video process

    1: VES INIT:

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_INIT_REQ , (t_MsgHeader * )pl_VESInitReq);

    2: VES OPEN:

     pl_OpenReq = (t_ves_open_req*) MC_RTK_GET_MEMORY( sizeof(t_ves_open_req) );

     pl_OpenReq->pFilename = gv_CamVideoFilePath;

     pl_OpenReq->outputFileSize = M4VES_kNO_LIMIT;

     pl_OpenReq->outputVideoFrameSize = M4VES_kQCIF;

     pl_OpenReq->outputVideoBitrate = M4VES_k64_KBPS;

     pl_OpenReq->outputVideoFormat = M4VES_kMPEG4; //M4VES_kH263;

     pl_OpenReq->mediaSelection = M4VES_kAUDIOVIDEO;

     pl_OpenReq->outputVideoFrameRate = M4VES_k15_FPS;

     pl_OpenReq->enableVideoPreview = M4OSA_FALSE;

     pl_OpenReq->outputFileType = M4VES_k3GPP;

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_OPEN_REQ , (t_MsgHeader * )pl_OpenReq);

    Preview open and preview start

    3: VES START:

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_START_REQ , (t_MsgHeader * )pl_StartReq); 4: VES STARTRECORD:

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_STARTRECORD_REQ , (t_MsgHeader * )pl_StartRecReq); 5: VES STOPRECORD:

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_STOPRECORD_REQ , (t_MsgHeader * )pl_StartRecReq); 6: VES STOP:

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_STOP_REQ , (t_MsgHeader * )pl_StartReq); Preview stop and preview close

    7: VES CLOSE

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_CLOSE_REQ , (t_MsgHeader * )pl_CloseReq); 8: VES FREE

     MC_RTK_SEND_MSG_TO_PROCESS( PROCESS_MMI, 0, PROCESS_VES, 0,

     M4USER_VES_FREE_REQ, (t_MsgHeader * )pl_vesFreeReq);

八:photo playback process

    1: write is available: MC_GI_WRITER_ISAVAILABLE

     Input parameter: image formatjpeg

     Output parameter: true ,false

    2: write open (get write session id) MC_GI_WRITER_OPEN

     Input parameter: main LCD or second LCD ,image formatjpeg.

     Output parameter: write session id

    3: write set from: MC_GI_WRITER_SETFROM

     Input parameter: write session id; image size;

    Output parameter: status

    4: write set to: MC_GI_WRITER_SETTO

     Input parameter: write session id; image show position;

    image show size (width must be 4 mutiple); target size (0)

    Output parameter: status

    5: write to write: MC_GI_WRITER_WRITE

     Input parameter: write session id, image buffer and buffer length pointer, callback

     Output parameter: status

    6: write close: MC_GI_WRITER_CLOSE

     Input parameter: write session id

     Output parameter: status

Report this document

For any questions or suggestions please email
cust-service@docsford.com