Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
5d3c921b
Commit
5d3c921b
authored
Jul 18, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use picture helpers (Yield,Release,CopyProperties).
parent
af37ba18
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
80 additions
and
132 deletions
+80
-132
modules/video_filter/adjust.c
modules/video_filter/adjust.c
+5
-6
modules/video_filter/alphamask.c
modules/video_filter/alphamask.c
+3
-3
modules/video_filter/blendbench.c
modules/video_filter/blendbench.c
+4
-4
modules/video_filter/colorthres.c
modules/video_filter/colorthres.c
+1
-2
modules/video_filter/croppadd.c
modules/video_filter/croppadd.c
+1
-2
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+4
-7
modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
...les/video_filter/dynamicoverlay/dynamicoverlay_commands.c
+2
-2
modules/video_filter/erase.c
modules/video_filter/erase.c
+3
-4
modules/video_filter/extract.c
modules/video_filter/extract.c
+2
-4
modules/video_filter/filter_picture.h
modules/video_filter/filter_picture.h
+2
-7
modules/video_filter/gaussianblur.c
modules/video_filter/gaussianblur.c
+1
-2
modules/video_filter/gradient.c
modules/video_filter/gradient.c
+1
-2
modules/video_filter/grain.c
modules/video_filter/grain.c
+1
-2
modules/video_filter/invert.c
modules/video_filter/invert.c
+1
-2
modules/video_filter/logo.c
modules/video_filter/logo.c
+1
-1
modules/video_filter/magnify.c
modules/video_filter/magnify.c
+1
-2
modules/video_filter/mosaic.c
modules/video_filter/mosaic.c
+4
-4
modules/video_filter/motionblur.c
modules/video_filter/motionblur.c
+1
-2
modules/video_filter/motiondetect.c
modules/video_filter/motiondetect.c
+3
-6
modules/video_filter/noise.c
modules/video_filter/noise.c
+1
-2
modules/video_filter/opencv_wrapper.c
modules/video_filter/opencv_wrapper.c
+1
-1
modules/video_filter/postproc.c
modules/video_filter/postproc.c
+1
-2
modules/video_filter/psychedelic.c
modules/video_filter/psychedelic.c
+18
-19
modules/video_filter/ripple.c
modules/video_filter/ripple.c
+1
-2
modules/video_filter/rotate.c
modules/video_filter/rotate.c
+3
-6
modules/video_filter/rss.c
modules/video_filter/rss.c
+2
-2
modules/video_filter/rv32.c
modules/video_filter/rv32.c
+3
-8
modules/video_filter/scale.c
modules/video_filter/scale.c
+3
-10
modules/video_filter/seamcarving.c
modules/video_filter/seamcarving.c
+1
-2
modules/video_filter/sharpen.c
modules/video_filter/sharpen.c
+2
-4
modules/video_filter/swscale.c
modules/video_filter/swscale.c
+2
-8
modules/video_filter/wave.c
modules/video_filter/wave.c
+1
-2
No files found.
modules/video_filter/adjust.c
View file @
5d3c921b
...
@@ -219,8 +219,7 @@ static picture_t *FilterPlanar( filter_t *p_filter, picture_t *p_pic )
...
@@ -219,8 +219,7 @@ static picture_t *FilterPlanar( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -447,8 +446,8 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
...
@@ -447,8 +446,8 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
{
{
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
if
(
p_pic
->
pf_release
)
p_pic
->
pf_r
elease
(
p_pic
);
picture_R
elease
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -456,8 +455,8 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
...
@@ -456,8 +455,8 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
p_pic
->
pf_r
elease
(
p_pic
);
picture_R
elease
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/alphamask.c
View file @
5d3c921b
...
@@ -135,7 +135,7 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -135,7 +135,7 @@ static void Destroy( vlc_object_t *p_this )
vlc_mutex_destroy
(
&
p_sys
->
mask_lock
);
vlc_mutex_destroy
(
&
p_sys
->
mask_lock
);
if
(
p_filter
->
p_sys
->
p_mask
)
if
(
p_filter
->
p_sys
->
p_mask
)
p
_filter
->
p_sys
->
p_mask
->
pf_r
elease
(
p_filter
->
p_sys
->
p_mask
);
p
icture_R
elease
(
p_filter
->
p_sys
->
p_mask
);
free
(
p_filter
->
p_sys
);
free
(
p_filter
->
p_sys
);
}
}
...
@@ -201,7 +201,7 @@ static void LoadMask( filter_t *p_filter, const char *psz_filename )
...
@@ -201,7 +201,7 @@ static void LoadMask( filter_t *p_filter, const char *psz_filename )
memset
(
&
fmt_out
,
0
,
sizeof
(
video_format_t
)
);
memset
(
&
fmt_out
,
0
,
sizeof
(
video_format_t
)
);
fmt_out
.
i_chroma
=
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'A'
);
fmt_out
.
i_chroma
=
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'A'
);
if
(
p_filter
->
p_sys
->
p_mask
)
if
(
p_filter
->
p_sys
->
p_mask
)
p
_filter
->
p_sys
->
p_mask
->
pf_r
elease
(
p_filter
->
p_sys
->
p_mask
);
p
icture_R
elease
(
p_filter
->
p_sys
->
p_mask
);
p_image
=
image_HandlerCreate
(
p_filter
);
p_image
=
image_HandlerCreate
(
p_filter
);
p_filter
->
p_sys
->
p_mask
=
p_filter
->
p_sys
->
p_mask
=
image_ReadUrl
(
p_image
,
psz_filename
,
&
fmt_in
,
&
fmt_out
);
image_ReadUrl
(
p_image
,
psz_filename
,
&
fmt_in
,
&
fmt_out
);
...
@@ -236,7 +236,7 @@ static int MaskCallback( vlc_object_t *p_this, char const *psz_var,
...
@@ -236,7 +236,7 @@ static int MaskCallback( vlc_object_t *p_this, char const *psz_var,
}
}
else
if
(
p_sys
->
p_mask
)
else
if
(
p_sys
->
p_mask
)
{
{
p
_sys
->
p_mask
->
pf_r
elease
(
p_sys
->
p_mask
);
p
icture_R
elease
(
p_sys
->
p_mask
);
p_sys
->
p_mask
=
NULL
;
p_sys
->
p_mask
=
NULL
;
}
}
vlc_mutex_unlock
(
&
p_sys
->
mask_lock
);
vlc_mutex_unlock
(
&
p_sys
->
mask_lock
);
...
...
modules/video_filter/blendbench.c
View file @
5d3c921b
...
@@ -200,8 +200,8 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -200,8 +200,8 @@ static void Destroy( vlc_object_t *p_this )
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
p
_sys
->
p_base_image
->
pf_r
elease
(
p_sys
->
p_base_image
);
p
icture_R
elease
(
p_sys
->
p_base_image
);
p
_sys
->
p_blend_image
->
pf_r
elease
(
p_sys
->
p_blend_image
);
p
icture_R
elease
(
p_sys
->
p_blend_image
);
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -218,7 +218,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -218,7 +218,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_blend
=
vlc_object_create
(
p_filter
,
sizeof
(
filter_t
)
);
p_blend
=
vlc_object_create
(
p_filter
,
sizeof
(
filter_t
)
);
if
(
!
p_blend
)
if
(
!
p_blend
)
{
{
p
_pic
->
pf_r
elease
(
p_pic
);
p
icture_R
elease
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
vlc_object_attach
(
p_blend
,
p_filter
);
vlc_object_attach
(
p_blend
,
p_filter
);
...
@@ -227,7 +227,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -227,7 +227,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_blend
->
p_module
=
module_Need
(
p_blend
,
"video blending"
,
0
,
0
);
p_blend
->
p_module
=
module_Need
(
p_blend
,
"video blending"
,
0
,
0
);
if
(
!
p_blend
->
p_module
)
if
(
!
p_blend
->
p_module
)
{
{
p
_pic
->
pf_r
elease
(
p_pic
);
p
icture_R
elease
(
p_pic
);
vlc_object_detach
(
p_blend
);
vlc_object_detach
(
p_blend
);
vlc_object_release
(
p_blend
);
vlc_object_release
(
p_blend
);
return
NULL
;
return
NULL
;
...
...
modules/video_filter/colorthres.c
View file @
5d3c921b
...
@@ -166,8 +166,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -166,8 +166,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/croppadd.c
View file @
5d3c921b
...
@@ -219,8 +219,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -219,8 +219,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/deinterlace.c
View file @
5d3c921b
...
@@ -2120,7 +2120,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
...
@@ -2120,7 +2120,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
RenderDiscard( p_vout, p_pic_dst, p_pic, 0 );
RenderDiscard( p_vout, p_pic_dst, p_pic, 0 );
#endif
#endif
msg_Err
(
p_vout
,
"discarding lines is not supported yet"
);
msg_Err
(
p_vout
,
"discarding lines is not supported yet"
);
p
_pic_dst
->
pf_r
elease
(
p_pic_dst
);
p
icture_R
elease
(
p_pic_dst
);
return
p_pic
;
return
p_pic
;
break
;
break
;
...
@@ -2137,7 +2137,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
...
@@ -2137,7 +2137,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
RenderLinear( p_vout, pp_outpic[1], p_pic, 1 );
RenderLinear( p_vout, pp_outpic[1], p_pic, 1 );
#endif
#endif
msg_Err
(
p_vout
,
"doubling the frame rate is not supported yet"
);
msg_Err
(
p_vout
,
"doubling the frame rate is not supported yet"
);
p
_pic_dst
->
pf_r
elease
(
p_pic_dst
);
p
icture_R
elease
(
p_pic_dst
);
return
p_pic
;
return
p_pic
;
break
;
break
;
...
@@ -2154,13 +2154,10 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
...
@@ -2154,13 +2154,10 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
break
;
break
;
}
}
p_pic_dst
->
date
=
p_pic
->
date
;
picture_CopyProperties
(
p_pic_dst
,
p_pic
);
p_pic_dst
->
b_force
=
p_pic
->
b_force
;
p_pic_dst
->
i_nb_fields
=
p_pic
->
i_nb_fields
;
p_pic_dst
->
b_progressive
=
true
;
p_pic_dst
->
b_progressive
=
true
;
p_pic_dst
->
b_top_field_first
=
p_pic
->
b_top_field_first
;
p
_pic
->
pf_r
elease
(
p_pic
);
p
icture_R
elease
(
p_pic
);
return
p_pic_dst
;
return
p_pic_dst
;
}
}
...
...
modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
View file @
5d3c921b
...
@@ -512,7 +512,7 @@ static int exec_DataSharedMem( filter_t *p_filter,
...
@@ -512,7 +512,7 @@ static int exec_DataSharedMem( filter_t *p_filter,
msg_Err
(
p_filter
,
msg_Err
(
p_filter
,
"Insufficient data in shared memory. need %zu, got %zu"
,
"Insufficient data in shared memory. need %zu, got %zu"
,
i_neededsize
,
i_size
);
i_neededsize
,
i_size
);
p
_ovl
->
data
.
p_pic
->
pf_r
elease
(
p_ovl
->
data
.
p_pic
);
p
icture_R
elease
(
p_ovl
->
data
.
p_pic
);
free
(
p_ovl
->
data
.
p_pic
);
free
(
p_ovl
->
data
.
p_pic
);
p_ovl
->
data
.
p_pic
=
NULL
;
p_ovl
->
data
.
p_pic
=
NULL
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -522,7 +522,7 @@ static int exec_DataSharedMem( filter_t *p_filter,
...
@@ -522,7 +522,7 @@ static int exec_DataSharedMem( filter_t *p_filter,
if
(
p_data
==
NULL
)
if
(
p_data
==
NULL
)
{
{
msg_Err
(
p_filter
,
"Unable to attach to shared memory"
);
msg_Err
(
p_filter
,
"Unable to attach to shared memory"
);
p
_ovl
->
data
.
p_pic
->
pf_r
elease
(
p_ovl
->
data
.
p_pic
);
p
icture_R
elease
(
p_ovl
->
data
.
p_pic
);
free
(
p_ovl
->
data
.
p_pic
);
free
(
p_ovl
->
data
.
p_pic
);
p_ovl
->
data
.
p_pic
=
NULL
;
p_ovl
->
data
.
p_pic
=
NULL
;
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
...
...
modules/video_filter/erase.c
View file @
5d3c921b
...
@@ -107,7 +107,7 @@ static void LoadMask( filter_t *p_filter, const char *psz_filename )
...
@@ -107,7 +107,7 @@ static void LoadMask( filter_t *p_filter, const char *psz_filename )
if
(
p_filter
->
p_sys
->
p_mask
)
if
(
p_filter
->
p_sys
->
p_mask
)
{
{
if
(
p_old_mask
)
if
(
p_old_mask
)
p
_old_mask
->
pf_r
elease
(
p_old_mask
);
p
icture_R
elease
(
p_old_mask
);
}
}
else
if
(
p_old_mask
)
else
if
(
p_old_mask
)
{
{
...
@@ -186,7 +186,7 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -186,7 +186,7 @@ static void Destroy( vlc_object_t *p_this )
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
if
(
p_sys
->
p_mask
)
if
(
p_sys
->
p_mask
)
p
_sys
->
p_mask
->
pf_r
elease
(
p_sys
->
p_mask
);
p
icture_R
elease
(
p_sys
->
p_mask
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
...
@@ -206,8 +206,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -206,8 +206,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/extract.c
View file @
5d3c921b
...
@@ -176,8 +176,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -176,8 +176,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -241,8 +240,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -241,8 +240,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
default:
default:
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/filter_picture.h
View file @
5d3c921b
...
@@ -88,14 +88,9 @@ static inline int GetPackedYuvOffsets( vlc_fourcc_t i_chroma,
...
@@ -88,14 +88,9 @@ static inline int GetPackedYuvOffsets( vlc_fourcc_t i_chroma,
*****************************************************************************/
*****************************************************************************/
static
inline
picture_t
*
CopyInfoAndRelease
(
picture_t
*
p_outpic
,
picture_t
*
p_inpic
)
static
inline
picture_t
*
CopyInfoAndRelease
(
picture_t
*
p_outpic
,
picture_t
*
p_inpic
)
{
{
p_outpic
->
date
=
p_inpic
->
date
;
picture_CopyProperties
(
p_outpic
,
p_inpic
);
p_outpic
->
b_force
=
p_inpic
->
b_force
;
p_outpic
->
i_nb_fields
=
p_inpic
->
i_nb_fields
;
p_outpic
->
b_progressive
=
p_inpic
->
b_progressive
;
p_outpic
->
b_top_field_first
=
p_inpic
->
b_top_field_first
;
if
(
p_inpic
->
pf_release
)
picture_Release
(
p_inpic
);
p_inpic
->
pf_release
(
p_inpic
);
return
p_outpic
;
return
p_outpic
;
}
}
modules/video_filter/gaussianblur.c
View file @
5d3c921b
...
@@ -216,8 +216,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -216,8 +216,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
#ifdef DONT_USE_FLOATS
#ifdef DONT_USE_FLOATS
...
...
modules/video_filter/gradient.c
View file @
5d3c921b
...
@@ -237,8 +237,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -237,8 +237,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/grain.c
View file @
5d3c921b
...
@@ -110,8 +110,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -110,8 +110,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/invert.c
View file @
5d3c921b
...
@@ -117,8 +117,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -117,8 +117,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/logo.c
View file @
5d3c921b
...
@@ -279,7 +279,7 @@ static void FreeLogoList( logo_list_t *p_logo_list )
...
@@ -279,7 +279,7 @@ static void FreeLogoList( logo_list_t *p_logo_list )
FREENULL
(
p_logo
->
psz_file
);
FREENULL
(
p_logo
->
psz_file
);
if
(
p_logo
->
p_pic
)
if
(
p_logo
->
p_pic
)
{
{
p
_logo
->
p_pic
->
pf_r
elease
(
p_logo
->
p_pic
);
p
icture_R
elease
(
p_logo
->
p_pic
);
p_logo
->
p_pic
=
NULL
;
p_logo
->
p_pic
=
NULL
;
}
}
}
}
...
...
modules/video_filter/magnify.c
View file @
5d3c921b
...
@@ -380,7 +380,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -380,7 +380,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
p_converted
->
p
[
i_plane
].
i_visible_pitch
);
p_converted
->
p
[
i_plane
].
i_visible_pitch
);
}
}
}
}
p
_converted
->
pf_r
elease
(
p_converted
);
p
icture_R
elease
(
p_converted
);
/* white rectangle on visualization */
/* white rectangle on visualization */
v_w
=
p_oyp
->
i_pitch
*
ZOOM_FACTOR
/
(
VIS_ZOOM
*
o_zoom
);
v_w
=
p_oyp
->
i_pitch
*
ZOOM_FACTOR
/
(
VIS_ZOOM
*
o_zoom
);
...
@@ -461,7 +461,6 @@ o o X o o o X X X X X o o X X X X o o o X X X X X o o X X X o o o X X X o o X o
...
@@ -461,7 +461,6 @@ o o X o o o X X X X X o o X X X X o o o X X X X X o o X X X o o o X X X o o X o
}
}
}
}
}
}
vout_DisplayPicture
(
p_vout
->
p_sys
->
p_vout
,
p_outpic
);
vout_DisplayPicture
(
p_vout
->
p_sys
->
p_vout
,
p_outpic
);
}
}
...
...
modules/video_filter/mosaic.c
View file @
5d3c921b
...
@@ -426,7 +426,7 @@ static void MosaicReleasePicture( picture_t *p_picture )
...
@@ -426,7 +426,7 @@ static void MosaicReleasePicture( picture_t *p_picture )
{
{
picture_t
*
p_original_pic
=
(
picture_t
*
)
p_picture
->
p_sys
;
picture_t
*
p_original_pic
=
(
picture_t
*
)
p_picture
->
p_sys
;
p
_original_pic
->
pf_r
elease
(
p_original_pic
);
p
icture_R
elease
(
p_original_pic
);
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -546,14 +546,14 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
...
@@ -546,14 +546,14 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
if
(
p_es
->
p_picture
->
p_next
!=
NULL
)
if
(
p_es
->
p_picture
->
p_next
!=
NULL
)
{
{
picture_t
*
p_next
=
p_es
->
p_picture
->
p_next
;
picture_t
*
p_next
=
p_es
->
p_picture
->
p_next
;
p_
es
->
p_picture
->
pf_release
(
p_es
->
p_picture
);
p_
original_pic
(
p_es
->
p_picture
);
p_es
->
p_picture
=
p_next
;
p_es
->
p_picture
=
p_next
;
}
}
else
if
(
p_es
->
p_picture
->
date
+
p_sys
->
i_delay
+
BLANK_DELAY
<
else
if
(
p_es
->
p_picture
->
date
+
p_sys
->
i_delay
+
BLANK_DELAY
<
date
)
date
)
{
{
/* Display blank */
/* Display blank */
p
_es
->
p_picture
->
pf_r
elease
(
p_es
->
p_picture
);
p
icture_R
elease
(
p_es
->
p_picture
);
p_es
->
p_picture
=
NULL
;
p_es
->
p_picture
=
NULL
;
p_es
->
pp_last
=
&
p_es
->
p_picture
;
p_es
->
pp_last
=
&
p_es
->
p_picture
;
break
;
break
;
...
@@ -633,7 +633,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
...
@@ -633,7 +633,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
else
else
{
{
p_converted
=
p_es
->
p_picture
;
p_converted
=
p_es
->
p_picture
;
p
_converted
->
i_refcount
++
;
p
icture_Yield
(
p_converted
)
;
fmt_in
.
i_width
=
fmt_out
.
i_width
=
p_converted
->
format
.
i_width
;
fmt_in
.
i_width
=
fmt_out
.
i_width
=
p_converted
->
format
.
i_width
;
fmt_in
.
i_height
=
fmt_out
.
i_height
=
p_converted
->
format
.
i_height
;
fmt_in
.
i_height
=
fmt_out
.
i_height
=
p_converted
->
format
.
i_height
;
fmt_in
.
i_chroma
=
fmt_out
.
i_chroma
=
p_converted
->
format
.
i_chroma
;
fmt_in
.
i_chroma
=
fmt_out
.
i_chroma
=
p_converted
->
format
.
i_chroma
;
...
...
modules/video_filter/motionblur.c
View file @
5d3c921b
...
@@ -141,8 +141,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -141,8 +141,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/motiondetect.c
View file @
5d3c921b
...
@@ -184,8 +184,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_inpic )
...
@@ -184,8 +184,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_inpic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_inpic
->
pf_release
)
picture_Release
(
p_inpic
);
p_inpic
->
pf_release
(
p_inpic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -372,8 +371,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_inpic )
...
@@ -372,8 +371,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_inpic )
{
{
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
(
char
*
)
&
(
p_inpic
->
format
.
i_chroma
)
);
(
char
*
)
&
(
p_inpic
->
format
.
i_chroma
)
);
if
(
p_inpic
->
pf_release
)
picture_Release
(
p_inpic
);
p_inpic
->
pf_release
(
p_inpic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -401,8 +399,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_inpic )
...
@@ -401,8 +399,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_inpic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_inpic
->
pf_release
)
picture_Release
(
p_inpic
);
p_inpic
->
pf_release
(
p_inpic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/noise.c
View file @
5d3c921b
...
@@ -123,8 +123,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -123,8 +123,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/opencv_wrapper.c
View file @
5d3c921b
...
@@ -435,7 +435,7 @@ static void ReleaseImages(vout_thread_t *p_vout)
...
@@ -435,7 +435,7 @@ static void ReleaseImages(vout_thread_t *p_vout)
/* Release temp picture_t if it exists */
/* Release temp picture_t if it exists */
if
(
p_vout
->
p_sys
->
p_to_be_freed
)
if
(
p_vout
->
p_sys
->
p_to_be_freed
)
{
{
p
_vout
->
p_sys
->
p_to_be_freed
->
pf_r
elease
(
p_vout
->
p_sys
->
p_to_be_freed
);
p
icture_R
elease
(
p_vout
->
p_sys
->
p_to_be_freed
);
p_vout
->
p_sys
->
p_to_be_freed
=
NULL
;
p_vout
->
p_sys
->
p_to_be_freed
=
NULL
;
}
}
if
(
p_vout
->
p_sys
->
i_verbosity
>
VERB_WARN
)
if
(
p_vout
->
p_sys
->
i_verbosity
>
VERB_WARN
)
...
...
modules/video_filter/postproc.c
View file @
5d3c921b
...
@@ -278,8 +278,7 @@ static picture_t *PostprocPict( filter_t *p_filter, picture_t *p_pic )
...
@@ -278,8 +278,7 @@ static picture_t *PostprocPict( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/psychedelic.c
View file @
5d3c921b
...
@@ -146,8 +146,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -146,8 +146,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -189,25 +188,25 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -189,25 +188,25 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
p_converted
)
if
(
p_converted
)
{
{
#define copyimage( plane, b ) \
#define copyimage( plane, b ) \
for( y=0; y<p_converted->p[plane].i_visible_lines; y++) { \
for( y=0; y<p_converted->p[plane].i_visible_lines; y++) { \
for( x=0; x<p_converted->p[plane].i_visible_pitch; x++) { \
for( x=0; x<p_converted->p[plane].i_visible_pitch; x++) { \
int nx, ny; \
int nx, ny; \
if( p_filter->p_sys->yinc == 1 ) \
if( p_filter->p_sys->yinc == 1 ) \
ny= y; \
ny= y; \
else \
else \
ny = p_converted->p[plane].i_visible_lines-y; \
ny = p_converted->p[plane].i_visible_lines-y; \
if( p_filter->p_sys->xinc == 1 ) \
if( p_filter->p_sys->xinc == 1 ) \
nx = x; \
nx = x; \
else \
else \
nx = p_converted->p[plane].i_visible_pitch-x; \
nx = p_converted->p[plane].i_visible_pitch-x; \
p_outpic->p[plane].p_pixels[(p_filter->p_sys->x*b+nx)+(ny+p_filter->p_sys->y*b)*p_outpic->p[plane].i_pitch ] = p_converted->p[plane].p_pixels[y*p_converted->p[plane].i_pitch+x]; \
p_outpic->p[plane].p_pixels[(p_filter->p_sys->x*b+nx)+(ny+p_filter->p_sys->y*b)*p_outpic->p[plane].i_pitch ] = p_converted->p[plane].p_pixels[y*p_converted->p[plane].i_pitch+x]; \
} }
} }
copyimage
(
Y_PLANE
,
2
);
copyimage
(
Y_PLANE
,
2
);
copyimage
(
U_PLANE
,
1
);
copyimage
(
U_PLANE
,
1
);
copyimage
(
V_PLANE
,
1
);
copyimage
(
V_PLANE
,
1
);
#undef copyimage
#undef copyimage
p_converted
->
pf_r
elease
(
p_converted
);
picture_R
elease
(
p_converted
);
}
}
else
else
{
{
...
...
modules/video_filter/ripple.c
View file @
5d3c921b
...
@@ -125,8 +125,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -125,8 +125,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/rotate.c
View file @
5d3c921b
...
@@ -176,8 +176,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -176,8 +176,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -301,8 +300,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
...
@@ -301,8 +300,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
{
{
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -310,8 +308,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
...
@@ -310,8 +308,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/rss.c
View file @
5d3c921b
...
@@ -608,7 +608,7 @@ static picture_t *LoadImage( filter_t *p_filter, const char *psz_url )
...
@@ -608,7 +608,7 @@ static picture_t *LoadImage( filter_t *p_filter, const char *psz_url )
fmt_out
.
i_height
=
p_sys
->
p_style
->
i_font_size
;
fmt_out
.
i_height
=
p_sys
->
p_style
->
i_font_size
;
p_pic
=
image_Convert
(
p_handler
,
p_orig
,
&
fmt_in
,
&
fmt_out
);
p_pic
=
image_Convert
(
p_handler
,
p_orig
,
&
fmt_in
,
&
fmt_out
);
p
_orig
->
pf_r
elease
(
p_orig
);
p
icture_R
elease
(
p_orig
);
if
(
!
p_pic
)
if
(
!
p_pic
)
{
{
msg_Warn
(
p_filter
,
"Error while converting %s"
,
psz_url
);
msg_Warn
(
p_filter
,
"Error while converting %s"
,
psz_url
);
...
@@ -976,7 +976,7 @@ static void FreeRSS( filter_t *p_filter)
...
@@ -976,7 +976,7 @@ static void FreeRSS( filter_t *p_filter)
free
(
p_feed
->
psz_description
);
free
(
p_feed
->
psz_description
);
free
(
p_feed
->
psz_image
);
free
(
p_feed
->
psz_image
);
if
(
p_feed
->
p_pic
!=
NULL
)
if
(
p_feed
->
p_pic
!=
NULL
)
p
_feed
->
p_pic
->
pf_r
elease
(
p_feed
->
p_pic
);
p
icture_R
elease
(
p_feed
->
p_pic
);
}
}
free
(
p_sys
->
p_feeds
);
free
(
p_sys
->
p_feeds
);
p_sys
->
i_feeds
=
0
;
p_sys
->
i_feeds
=
0
;
...
...
modules/video_filter/rv32.c
View file @
5d3c921b
...
@@ -109,8 +109,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -109,8 +109,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_pic_dst
)
if
(
!
p_pic_dst
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -136,13 +135,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -136,13 +135,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
}
}
}
}
p_pic_dst
->
date
=
p_pic
->
date
;
picture_CopyProperties
(
p_pic_dst
,
p_pic
);
p_pic_dst
->
b_force
=
p_pic
->
b_force
;
picture_Release
(
p_pic
);
p_pic_dst
->
i_nb_fields
=
p_pic
->
i_nb_fields
;
p_pic_dst
->
b_progressive
=
p_pic
->
b_progressive
;
p_pic_dst
->
b_top_field_first
=
p_pic
->
b_top_field_first
;
p_pic
->
pf_release
(
p_pic
);
return
p_pic_dst
;
return
p_pic_dst
;
}
}
modules/video_filter/scale.c
View file @
5d3c921b
...
@@ -128,8 +128,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -128,8 +128,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_pic_dst
)
if
(
!
p_pic_dst
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -225,13 +224,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -225,13 +224,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
}
}
}
}
p_pic_dst
->
date
=
p_pic
->
date
;
picture_CopyProperties
(
p_pic_dst
,
p_pic
);
p_pic_dst
->
b_force
=
p_pic
->
b_force
;
picture_Release
(
p_pic
);
p_pic_dst
->
i_nb_fields
=
p_pic
->
i_nb_fields
;
p_pic_dst
->
b_progressive
=
p_pic
->
b_progressive
;
p_pic_dst
->
b_top_field_first
=
p_pic
->
b_top_field_first
;
if
(
p_pic
->
pf_release
)
p_pic
->
pf_release
(
p_pic
);
return
p_pic_dst
;
return
p_pic_dst
;
}
}
modules/video_filter/seamcarving.c
View file @
5d3c921b
...
@@ -117,8 +117,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -117,8 +117,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/sharpen.c
View file @
5d3c921b
...
@@ -176,8 +176,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -176,8 +176,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
@@ -187,8 +186,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -187,8 +186,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_src
||
!
p_out
)
if
(
!
p_src
||
!
p_out
)
{
{
msg_Warn
(
p_filter
,
"can't get Y plane"
);
msg_Warn
(
p_filter
,
"can't get Y plane"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/video_filter/swscale.c
View file @
5d3c921b
...
@@ -321,14 +321,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -321,14 +321,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
dst
,
dst_stride
);
dst
,
dst_stride
);
#endif
#endif
p_pic_dst
->
date
=
p_pic
->
date
;
picture_CopyProperties
(
p_pic_dst
,
p_pic
);
p_pic_dst
->
b_force
=
p_pic
->
b_force
;
picture_Release
(
p_pic
);
p_pic_dst
->
i_nb_fields
=
p_pic
->
i_nb_fields
;
p_pic_dst
->
b_progressive
=
p_pic
->
b_progressive
;
p_pic_dst
->
b_top_field_first
=
p_pic
->
b_top_field_first
;
if
(
p_pic
->
pf_release
)
p_pic
->
pf_release
(
p_pic
);
return
p_pic_dst
;
return
p_pic_dst
;
}
}
...
...
modules/video_filter/wave.c
View file @
5d3c921b
...
@@ -126,8 +126,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -126,8 +126,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
!
p_outpic
)
if
(
!
p_outpic
)
{
{
msg_Warn
(
p_filter
,
"can't get output picture"
);
msg_Warn
(
p_filter
,
"can't get output picture"
);
if
(
p_pic
->
pf_release
)
picture_Release
(
p_pic
);
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment