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

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

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e9caa9b4
......@@ -216,7 +216,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 D3D9OpenAdjust(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
filter_sys_t *sys = NULL;
......@@ -424,7 +424,7 @@ error:
return VLC_EGENERIC;
}
static void Close(vlc_object_t *obj)
static void D3D9CloseAdjust(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
filter_sys_t *sys = filter->p_sys;
......@@ -443,7 +443,7 @@ vlc_module_begin()
set_capability("video filter", 0)
set_category(CAT_VIDEO)
set_subcategory(SUBCAT_VIDEO_VFILTER)
set_callbacks(Open, Close)
set_callbacks(D3D9OpenAdjust, D3D9CloseAdjust)
add_shortcut( "adjust" )
add_float_with_range( "contrast", 1.0, 0.0, 2.0,
......
......@@ -287,7 +287,7 @@ VIDEO_FILTER_WRAPPER (DXA9_YV12)
VIDEO_FILTER_WRAPPER (DXA9_NV12)
VIDEO_FILTER_WRAPPER (YV12_D3D9)
static int OpenConverter( vlc_object_t *obj )
static int D3D9OpenConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
HINSTANCE hd3d_dll = NULL;
......@@ -336,7 +336,7 @@ done:
return err;
}
static int OpenFromCPU( vlc_object_t *obj )
static int D3D9OpenCPUConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
int err = VLC_EGENERIC;
......@@ -455,7 +455,7 @@ done:
return err;
}
static void CloseConverter( vlc_object_t *obj )
static void D3D9CloseConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
copy_cache_t *p_copy_cache = (copy_cache_t*) p_filter->p_sys;
......@@ -464,7 +464,7 @@ static void CloseConverter( vlc_object_t *obj )
p_filter->p_sys = NULL;
}
static void CloseFromCPU( vlc_object_t *obj )
static void D3D9CloseCPUConverter( vlc_object_t *obj )
{
filter_t *p_filter = (filter_t *)obj;
filter_sys_t *p_sys = (filter_sys_t*) p_filter->p_sys;
......@@ -482,8 +482,8 @@ static void CloseFromCPU( vlc_object_t *obj )
vlc_module_begin ()
set_description( N_("Conversions from DxVA2 to YUV") )
set_capability( "video converter", 10 )
set_callbacks( OpenConverter, CloseConverter )
set_callbacks( D3D9OpenConverter, D3D9CloseConverter )
add_submodule()
set_callbacks( OpenFromCPU, CloseFromCPU )
set_callbacks( D3D9OpenCPUConverter, D3D9CloseCPUConverter )
set_capability( "video converter", 10 )
vlc_module_end ()
......@@ -266,7 +266,7 @@ static picture_t *NewOutputPicture( filter_t *p_filter )
return pic;
}
static int Open(vlc_object_t *obj)
static int D3D9OpenDeinterlace(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
filter_sys_t *sys = NULL;
......@@ -492,7 +492,7 @@ error:
return VLC_EGENERIC;
}
static void Close(vlc_object_t *obj)
static void D3D9CloseDeinterlace(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
filter_sys_t *sys = filter->p_sys;
......@@ -511,6 +511,6 @@ vlc_module_begin()
set_capability("video filter", 0)
set_category(CAT_VIDEO)
set_subcategory(SUBCAT_VIDEO_VFILTER)
set_callbacks(Open, Close)
set_callbacks(D3D9OpenDeinterlace, D3D9CloseDeinterlace)
add_shortcut ("deinterlace")
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