Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b67dac77
Commit
b67dac77
authored
Jul 30, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image: remove dead code
parent
2034ba88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
41 deletions
+0
-41
include/vlc_image.h
include/vlc_image.h
+0
-3
src/misc/image.c
src/misc/image.c
+0
-38
No files found.
include/vlc_image.h
View file @
b67dac77
...
@@ -49,8 +49,6 @@ struct image_handler_t
...
@@ -49,8 +49,6 @@ struct image_handler_t
picture_t
*
(
*
pf_convert
)
(
image_handler_t
*
,
picture_t
*
,
picture_t
*
(
*
pf_convert
)
(
image_handler_t
*
,
picture_t
*
,
video_format_t
*
,
video_format_t
*
);
video_format_t
*
,
video_format_t
*
);
picture_t
*
(
*
pf_filter
)
(
image_handler_t
*
,
picture_t
*
,
video_format_t
*
,
const
char
*
);
/* Private properties */
/* Private properties */
vlc_object_t
*
p_parent
;
vlc_object_t
*
p_parent
;
...
@@ -68,7 +66,6 @@ VLC_API void image_HandlerDelete( image_handler_t * );
...
@@ -68,7 +66,6 @@ VLC_API void image_HandlerDelete( image_handler_t * );
#define image_Write( a, b, c, d ) a->pf_write( a, b, c, d )
#define image_Write( a, b, c, d ) a->pf_write( a, b, c, d )
#define image_WriteUrl( a, b, c, d, e ) a->pf_write_url( a, b, c, d, e )
#define image_WriteUrl( a, b, c, d, e ) a->pf_write_url( a, b, c, d, e )
#define image_Convert( a, b, c, d ) a->pf_convert( a, b, c, d )
#define image_Convert( a, b, c, d ) a->pf_convert( a, b, c, d )
#define image_Filter( a, b, c, d ) a->pf_filter( a, b, c, d )
VLC_API
vlc_fourcc_t
image_Type2Fourcc
(
const
char
*
psz_name
);
VLC_API
vlc_fourcc_t
image_Type2Fourcc
(
const
char
*
psz_name
);
VLC_API
vlc_fourcc_t
image_Ext2Fourcc
(
const
char
*
psz_name
);
VLC_API
vlc_fourcc_t
image_Ext2Fourcc
(
const
char
*
psz_name
);
...
...
src/misc/image.c
View file @
b67dac77
...
@@ -59,8 +59,6 @@ static int ImageWriteUrl( image_handler_t *, picture_t *,
...
@@ -59,8 +59,6 @@ static int ImageWriteUrl( image_handler_t *, picture_t *,
static
picture_t
*
ImageConvert
(
image_handler_t
*
,
picture_t
*
,
static
picture_t
*
ImageConvert
(
image_handler_t
*
,
picture_t
*
,
video_format_t
*
,
video_format_t
*
);
video_format_t
*
,
video_format_t
*
);
static
picture_t
*
ImageFilter
(
image_handler_t
*
,
picture_t
*
,
video_format_t
*
,
const
char
*
psz_module
);
static
decoder_t
*
CreateDecoder
(
vlc_object_t
*
,
video_format_t
*
);
static
decoder_t
*
CreateDecoder
(
vlc_object_t
*
,
video_format_t
*
);
static
void
DeleteDecoder
(
decoder_t
*
);
static
void
DeleteDecoder
(
decoder_t
*
);
...
@@ -93,7 +91,6 @@ image_handler_t *image_HandlerCreate( vlc_object_t *p_this )
...
@@ -93,7 +91,6 @@ image_handler_t *image_HandlerCreate( vlc_object_t *p_this )
p_image
->
pf_write
=
ImageWrite
;
p_image
->
pf_write
=
ImageWrite
;
p_image
->
pf_write_url
=
ImageWriteUrl
;
p_image
->
pf_write_url
=
ImageWriteUrl
;
p_image
->
pf_convert
=
ImageConvert
;
p_image
->
pf_convert
=
ImageConvert
;
p_image
->
pf_filter
=
ImageFilter
;
return
p_image
;
return
p_image
;
}
}
...
@@ -492,41 +489,6 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
...
@@ -492,41 +489,6 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
return
p_pif
;
return
p_pif
;
}
}
/**
* Filter an image with a psz_module filter
*
*/
static
picture_t
*
ImageFilter
(
image_handler_t
*
p_image
,
picture_t
*
p_pic
,
video_format_t
*
p_fmt
,
const
char
*
psz_module
)
{
/* Start a filter */
if
(
!
p_image
->
p_filter
)
{
es_format_t
fmt
;
es_format_Init
(
&
fmt
,
VIDEO_ES
,
p_fmt
->
i_chroma
);
fmt
.
video
=
*
p_fmt
;
p_image
->
p_filter
=
CreateFilter
(
p_image
->
p_parent
,
&
fmt
,
&
fmt
.
video
,
psz_module
);
if
(
!
p_image
->
p_filter
)
{
return
NULL
;
}
}
else
{
/* Filters should handle on-the-fly size changes */
p_image
->
p_filter
->
fmt_in
.
video
=
*
p_fmt
;
p_image
->
p_filter
->
fmt_out
.
video
=
*
p_fmt
;
}
picture_Hold
(
p_pic
);
return
p_image
->
p_filter
->
pf_video_filter
(
p_image
->
p_filter
,
p_pic
);
}
/**
/**
* Misc functions
* Misc functions
*
*
...
...
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