31 #include <dc1394/control.h> 32 #include <dc1394/conversions.h> 42 namespace core{
class ImgBase; }
48 class DCDeviceOptions;
55 std::string
to_string(dc1394video_mode_t vm);
58 std::string
to_string(dc1394framerate_t fr);
61 std::string
to_string(dc1394color_filter_t f);
64 std::string
to_string(dc1394bayer_method_t bm);
85 void initialize_dc_cam(dc1394camera_t *c,
int nDMABuffers, DCDeviceOptions *options);
102 dc1394video_frame_t *
get_a_frame(dc1394camera_t* c);
110 dc1394color_filter_t bayerLayout,
111 core::ImgBase **ppoDst,
112 const utils::Size &desiredSizeHint,
115 std::vector<icl8u> &dataBuffer,
116 dc1394bayer_method_t bayerMethod);
121 dc1394color_filter_t bayerLayout,
122 core::ImgBase **ppoDst,
123 std::vector<icl8u> &dataBuffer,
124 dc1394bayer_method_t bayerMethod);
129 const utils::Size &desiredSizeHint,
dc1394video_frame_t * get_a_frame(dc1394camera_t *c)
gets a new frame from the given camera
dc1394_t * get_static_context()
since rc9 of libdc, a libary context was introduced
undocument this line if you encounter any issues!
Definition: Any.h:37
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
void set_streaming(dc1394camera_t *c, bool on)
ensures iso streaming of the given camera to have the given state (on or off)
std::string to_string(dc1394video_mode_t vm)
translate a dc1394video_mode_t into a string representation
void release_dc_cam(dc1394camera_t *c)
stops the capturing and streaming process
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
void initialize_dc_cam(dc1394camera_t *c, int nDMABuffers, DCDeviceOptions *options)
(TODO) sets up a camera to some useful defaults dependent on its model id
dc1394feature_t feature_from_string(const std::string &s)
translate a dc1394feature_t from a string representation
void extract_image_to_2(dc1394video_frame_t *f, dc1394color_filter_t bayerLayout, core::ImgBase **ppoDst, std::vector< icl8u > &dataBuffer, dc1394bayer_method_t bayerMethod)
extracts the given frame (in most appropiate way)
bool can_extract_image_to(dc1394video_frame_t *f, const utils::Size &desiredSizeHint, core::format desiredFormatHint, core::depth desiredDepthHint)
determins if the desired parameters can be fullfilled by extract_image_to(..)
dc1394framerate_t framerate_from_string(const std::string &s)
translate a dc1394framerate_t from a string representation
dc1394video_frame_t * get_newest_frame(dc1394camera_t *c)
gets the newest frame from a given camera
void bayer2gray(icl8u *src, icl8u *dst, int w, int h)
internally used bayer conversion function
bool is_dc800_capable(dc1394camera_t *cam)
returns whether the given camera supports firewire B
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
void free_static_context()
(since rc 9 of libdc) releases the static dc-context
void extract_image_to(dc1394video_frame_t *f, dc1394color_filter_t bayerLayout, core::ImgBase **ppoDst, const utils::Size &desiredSizeHint, core::format desiredFormatHint, core::depth desiredDepthHint, std::vector< icl8u > &dataBuffer, dc1394bayer_method_t bayerMethod)
converts a grabbed frame
dc1394video_mode_t videomode_from_string(const std::string &s)
translate a dc1394video_mode_t from a string representation
dc1394bayer_method_t bayermethod_from_string(const std::string &s)
translate a dc1394bayer_method_t from a string representation
void install_signal_handler()
creates a signal handler for the SIGINT signal
void set_iso_speed(dc1394camera_t *cam, int mbits)
sets iso transmission speed for the wrapped dc1394 context
const std::vector< std::string > & getListOfAllFeatures()
returns a list of all currently implemented dc1394 features