mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
First draft of an automatic discoverer for gst device source caps
(framerate, resolution and image format) to enable auto creation of DeviceSource.
This commit is contained in:
@@ -72,11 +72,14 @@ guint Stream::texture() const
|
||||
}
|
||||
|
||||
|
||||
void Stream::open(const std::string &gstreamer_description)
|
||||
void Stream::open(const std::string &gstreamer_description, int w, int h)
|
||||
{
|
||||
// set gstreamer pipeline source
|
||||
description_ = gstreamer_description;
|
||||
|
||||
if (w>0) width_ = w;
|
||||
if (h>0) height_ = h;
|
||||
|
||||
// close before re-openning
|
||||
if (isOpen())
|
||||
close();
|
||||
@@ -95,7 +98,6 @@ int Stream::id() const
|
||||
return id_;
|
||||
}
|
||||
|
||||
|
||||
void Stream::execute_open()
|
||||
{
|
||||
// reset
|
||||
|
||||
Reference in New Issue
Block a user