root/include/remotecap_core.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef REMOTECAP_CORE_H
   2 #define REMOTECAP_CORE_H
   3 #include "remotecap.h"
   4 /*
   5  * remotecap functions not exported to modules
   6  */
   7 // called by ptp to get currently available type and image number
   8 void remotecap_is_ready(int *available_type,int *image_num);
   9 // call from task hooks to notify remotecap of data
  10 void remotecap_raw_available(char *rawadr);
  11 void remotecap_jpeg_available(void);
  12 void remotecap_type_complete(int type);
  13 // called by ptp code to get next chunk address/size for the format (fmt) that is being currently worked on
  14 int remotecap_get_data_chunk( int fmt, char **addr, unsigned int *size, int *pos );
  15 // called by ptp code to notify remotecap that chunk send is complete
  16 // returns false if ptp call should return an error, otherwise true
  17 int remotecap_send_complete(int rcgd_status,int type);
  18 // sets jpeg_chunks to NULL for DryOS r50+
  19 void remotecap_jpeg_chunks_done(void);
  20 
  21 // status for remotecap_get_data_chunk
  22 #define REMOTECAP_CHUNK_STATUS_ERROR 0
  23 #define REMOTECAP_CHUNK_STATUS_MORE 1
  24 #define REMOTECAP_CHUNK_STATUS_LAST 2
  25 
  26 // status for filewrite_get_jpeg_chunk
  27 #define REMOTECAP_JPEG_CHUNK_STATUS_MORE 1 // more chunks in current session
  28 #define REMOTECAP_JPEG_CHUNK_STATUS_LAST 2 // last chunk for all session
  29 #define REMOTECAP_JPEG_CHUNK_STATUS_SESS_LAST 3 // last chunk in current session (only for FILEWRITETASK_SEEKS)
  30 
  31 #endif

/* [<][>][^][v][top][bottom][index][help] */