Commit 94c56b98 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: PostProc getter helper

Ref #11613

(cherry picked from commit 36f457d0ad9bb8dabfac5a51328799c48ed33a9f)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fa439d80
...@@ -698,6 +698,18 @@ void ExtVideo::updateFilterOptions() ...@@ -698,6 +698,18 @@ void ExtVideo::updateFilterOptions()
setFilterOption( p_intf, qtu( module ), qtu( option ), i_int, f_float, val); setFilterOption( p_intf, qtu( module ), qtu( option ), i_int, f_float, val);
} }
int ExtVideo::getPostprocessing( struct intf_thread_t *p_intf)
{
char *psz_config = config_GetPsz(p_intf, "video-filter");
int i_q = -1;
if (psz_config) {
if (strstr(psz_config, "postproc"))
i_q = config_GetInt(p_intf, "postproc-q");
free(psz_config);
}
return i_q;
}
void ExtVideo::setPostprocessing( struct intf_thread_t *p_intf, int q) void ExtVideo::setPostprocessing( struct intf_thread_t *p_intf, int q)
{ {
const char *psz_name = "postproc"; const char *psz_name = "postproc";
......
...@@ -47,6 +47,7 @@ class ExtVideo: public QObject ...@@ -47,6 +47,7 @@ class ExtVideo: public QObject
public: public:
ExtVideo( struct intf_thread_t *, QTabWidget * ); ExtVideo( struct intf_thread_t *, QTabWidget * );
static void setPostprocessing( struct intf_thread_t *, int q); static void setPostprocessing( struct intf_thread_t *, int q);
static int getPostprocessing( struct intf_thread_t *p_intf);
private: private:
Ui::ExtVideoWidget ui; Ui::ExtVideoWidget ui;
QSignalMapper* filterMapper; 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