summaryrefslogtreecommitdiffstats
path: root/sys/dshowsrcwrapper/gstdshowvideosrc.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-08-10Remove execute flags from source filesTim-Philipp Müller1-0/+0
2009-08-10dshowsrcwrapper: can list more than 1 deviceJulien Isorce1-3/+2
something like the following code now works: vector<string> getVideoDeviceNames() { vector<string> l_name; string property; GstElement* videodevicesrc = create_element("dshowvideosrc", "videodevicesrc"); GstPropertyProbe* probe = GST_PROPERTY_PROBE (videodevicesrc); GValueArray* va = gst_property_probe_get_values_name (probe, "device-name"); if (va) { for(size_t i=0; i < va->n_values; ++i) { GValue* v = g_value_array_get_nth(va, i); string name(g_value_get_string(v)); l_name.push_back(name); } } if (videodevicesrc) gst_object_unref(GST_OBJECT (videodevicesrc)); return l_name; }
2009-08-10dshowsrcwrapper: add a helper function to check a media typeJulien Isorce1-33/+11
2009-08-10dshowvideosrc: can use other video sizes and framerates than the defaultsJulien Isorce1-25/+157
Even if the device could capture several video sizes at several framerates, without this commit, it was only possible to use one video size and one framerate: the default directshow values.
2009-07-27dshowsrcwrapper: remove use of IGstDshowInterfaceJulien Isorce1-30/+7
2009-07-22dshowvideosrc: converts code to C++Julien Isorce1-0/+1047