Check if the specified property is supported
#include <vcapture/capture.h>
int capture_is_property(capture_context_t context, uint32_t prop)
This function checks if the connected video capture device or driver supports the property specified in the argument prop.
void get_video_info(capture_context_t context) { char *cur_norm = NULL; if(capture_is_property(context, CAPTURE_PROPERTY_CURRENT_NORM)) { capture_get_property_p(context, CAPTURE_PROPERTY_CURRENT_NORM, (void **)&cur_norm); } fprintf(stderr, "current norm: %s", cur_norm? cur_norm : "unavailable"); fprintf(stderr, "\n"); }
1 if the specified property is supported; or 0 otherwise.