Commit fa439d80 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: PostProc setter helper

Ref #11613

(cherry picked from commit cca1c1efc30abed41eba0f3b3091735d3cd2e46d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1961ae18
......@@ -698,6 +698,21 @@ void ExtVideo::updateFilterOptions()
setFilterOption( p_intf, qtu( module ), qtu( option ), i_int, f_float, val);
}
void ExtVideo::setPostprocessing( struct intf_thread_t *p_intf, int q)
{
const char *psz_name = "postproc";
if( q == -1 )
{
ChangeVFiltersString( p_intf, psz_name, false );
}
else
{
ChangeVFiltersString( p_intf, psz_name, false );
setFilterOption( p_intf, "postproc", "postproc-q", q, -1, QString() );
}
}
/**********************************************************************
* v4l2 controls
**********************************************************************/
......
......@@ -46,6 +46,7 @@ class ExtVideo: public QObject
friend class ExtendedDialog;
public:
ExtVideo( struct intf_thread_t *, QTabWidget * );
static void setPostprocessing( struct intf_thread_t *, int q);
private:
Ui::ExtVideoWidget ui;
QSignalMapper* filterMapper;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment