Commit e9caa9b4 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

hw:d3d11: rename the Open/Close for each module

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 004264bc
......@@ -324,7 +324,7 @@ static int AdjustCallback( vlc_object_t *p_this, char const *psz_var,
return VLC_SUCCESS;
}
static int Open(vlc_object_t *obj)
static int D3D11OpenAdjust(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
HRESULT hr;
......@@ -587,7 +587,7 @@ error:
return VLC_EGENERIC;
}
static void Close(vlc_object_t *obj)
static void D3D11CloseAdjust(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
filter_sys_t *sys = filter->p_sys;
......@@ -620,7 +620,7 @@ vlc_module_begin()
set_capability("video filter", 0)
set_category( CAT_VIDEO )
set_subcategory( SUBCAT_VIDEO_VFILTER )
set_callbacks(Open, Close)
set_callbacks(D3D11OpenAdjust, D3D11CloseAdjust)
add_shortcut( "adjust" )
add_float_with_range( "contrast", 1.0, 0.0, 2.0,
......
......@@ -281,7 +281,7 @@ static picture_t *NewOutputPicture( filter_t *p_filter )
return pic;
}
static int Open(vlc_object_t *obj)
static int D3D11OpenDeinterlace(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
HRESULT hr;
......@@ -515,7 +515,7 @@ error:
return VLC_EGENERIC;
}
static void Close(vlc_object_t *obj)
static void D3D11CloseDeinterlace(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
filter_sys_t *sys = filter->p_sys;
......@@ -535,6 +535,6 @@ vlc_module_begin()
set_capability("video filter", 0)
set_category(CAT_VIDEO)
set_subcategory(SUBCAT_VIDEO_VFILTER)
set_callbacks(Open, Close)
set_callbacks(D3D11OpenDeinterlace, D3D11CloseDeinterlace)
add_shortcut ("deinterlace")
vlc_module_end()
......@@ -624,7 +624,7 @@ VIDEO_FILTER_WRAPPER (D3D11_NV12)
VIDEO_FILTER_WRAPPER (D3D11_YUY2)
VIDEO_FILTER_WRAPPER (NV12_D3D11)
static int OpenConverter( vlc_object_t *obj )
static int D3D11OpenConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
int err = VLC_EGENERIC;
......@@ -671,7 +671,7 @@ done:
return err;
}
static int OpenFromCPU( vlc_object_t *obj )
static int D3D11OpenCPUConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
int err = VLC_EGENERIC;
......@@ -796,7 +796,7 @@ done:
return err;
}
static void CloseConverter( vlc_object_t *obj )
static void D3D11CloseConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys;
......@@ -819,7 +819,7 @@ static void CloseConverter( vlc_object_t *obj )
p_filter->p_sys = NULL;
}
static void CloseFromCPU( vlc_object_t *obj )
static void D3D11CloseCPUConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys;
......@@ -836,8 +836,8 @@ static void CloseFromCPU( vlc_object_t *obj )
vlc_module_begin ()
set_description( N_("Conversions from D3D11 to YUV") )
set_capability( "video converter", 10 )
set_callbacks( OpenConverter, CloseConverter )
set_callbacks( D3D11OpenConverter, D3D11CloseConverter )
add_submodule()
set_callbacks( OpenFromCPU, CloseFromCPU )
set_callbacks( D3D11OpenCPUConverter, D3D11CloseCPUConverter )
set_capability( "video converter", 10 )
vlc_module_end ()
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