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
62829b3b
Commit
62829b3b
authored
May 06, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code.
parent
09b646af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
87 deletions
+13
-87
modules/gui/fbosd.c
modules/gui/fbosd.c
+13
-87
No files found.
modules/gui/fbosd.c
View file @
62829b3b
...
@@ -50,7 +50,8 @@
...
@@ -50,7 +50,8 @@
#include <vlc_osd.h>
#include <vlc_osd.h>
#include <vlc_strings.h>
#include <vlc_strings.h>
// #define FBOSD_BLENDING
#undef FBOSD_BLENDING
#undef FBOSD_DEBUG
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
...
@@ -73,11 +74,6 @@ static void CloseBlending ( intf_thread_t * );
...
@@ -73,11 +74,6 @@ static void CloseBlending ( intf_thread_t * );
static
int
OpenTextRenderer
(
intf_thread_t
*
);
static
int
OpenTextRenderer
(
intf_thread_t
*
);
static
void
CloseTextRenderer
(
intf_thread_t
*
);
static
void
CloseTextRenderer
(
intf_thread_t
*
);
#if 0
static int OpenScaling ( intf_thread_t * );
static int CloseScaling ( intf_thread_t * );
#endif
/* Manipulate the overlay buffer */
/* Manipulate the overlay buffer */
static
int
OverlayCallback
(
vlc_object_t
*
,
char
const
*
,
static
int
OverlayCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
vlc_value_t
,
vlc_value_t
,
void
*
);
...
@@ -279,9 +275,6 @@ struct intf_sys_t
...
@@ -279,9 +275,6 @@ struct intf_sys_t
filter_t
*
p_blend
;
/* alpha blending module */
filter_t
*
p_blend
;
/* alpha blending module */
#endif
#endif
filter_t
*
p_text
;
/* text renderer module */
filter_t
*
p_text
;
/* text renderer module */
#if 0
filter_t *p_scale; /* scaling module */
#endif
/* Render */
/* Render */
struct
fbosd_render_t
render
[
FBOSD_RENDER_MAX
];
struct
fbosd_render_t
render
[
FBOSD_RENDER_MAX
];
...
@@ -314,7 +307,6 @@ static int Create( vlc_object_t *p_this )
...
@@ -314,7 +307,6 @@ static int Create( vlc_object_t *p_this )
char
*
psz_tmp
;
char
*
psz_tmp
;
int
i
;
int
i
;
/* Allocate instance and initialize some members */
/* Allocate instance and initialize some members */
p_intf
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
intf_sys_t
)
);
p_intf
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
intf_sys_t
)
);
if
(
!
p_intf
->
p_sys
)
if
(
!
p_intf
->
p_sys
)
...
@@ -470,15 +462,7 @@ static int Create( vlc_object_t *p_this )
...
@@ -470,15 +462,7 @@ static int Create( vlc_object_t *p_this )
Destroy
(
VLC_OBJECT
(
p_intf
)
);
Destroy
(
VLC_OBJECT
(
p_intf
)
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
#if 0
/* Load scaling module */
if( OpenScaling( p_intf ) )
{
msg_Err( p_intf, "Unable to load image scaling module" );
Destroy( VLC_OBJECT(p_intf) );
return VLC_EGENERIC;
}
#endif
p_sys
->
b_render
=
true
;
p_sys
->
b_render
=
true
;
p_sys
->
b_need_update
=
true
;
p_sys
->
b_need_update
=
true
;
...
@@ -543,9 +527,7 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -543,9 +527,7 @@ static void Destroy( vlc_object_t *p_this )
if
(
p_sys
->
p_blend
)
CloseBlending
(
p_intf
);
if
(
p_sys
->
p_blend
)
CloseBlending
(
p_intf
);
#endif
#endif
if
(
p_sys
->
p_text
)
CloseTextRenderer
(
p_intf
);
if
(
p_sys
->
p_text
)
CloseTextRenderer
(
p_intf
);
#if 0
if( p_sys->p_scale ) CloseScaling( p_intf );
#endif
if
(
p_sys
->
p_image
)
if
(
p_sys
->
p_image
)
image_HandlerDelete
(
p_sys
->
p_image
);
image_HandlerDelete
(
p_sys
->
p_image
);
if
(
p_sys
->
p_overlay
)
if
(
p_sys
->
p_overlay
)
...
@@ -648,46 +630,6 @@ static void CloseTextRenderer( intf_thread_t *p_intf )
...
@@ -648,46 +630,6 @@ static void CloseTextRenderer( intf_thread_t *p_intf )
vlc_object_release
(
p_intf
->
p_sys
->
p_text
);
vlc_object_release
(
p_intf
->
p_sys
->
p_text
);
}
}
}
}
#if 0
static int OpenScaling( intf_thread_t *p_intf )
{
if( p_intf->p_sys->p_scale ) return VLC_EGENERIC;
p_intf->p_sys->p_scale =
vlc_object_create( p_intf, VLC_OBJECT_FILTER );
vlc_object_attach( p_intf->p_sys->p_scale, p_intf );
p_intf->p_sys->p_scale->fmt_out.video.i_chroma =
p_intf->p_sys->p_scale->fmt_in.video.i_chroma =
p_intf->p_sys->fmt_out.i_chroma;
/* XXX: We'll also be using it for YUVA and RGBA blending ... */
p_intf->p_sys->p_scale->fmt_in.video.i_width =
p_intf->p_sys->p_scale->fmt_in.video.i_height = 32;
p_intf->p_sys->p_scale->fmt_out.video.i_width =
p_intf->p_sys->p_scale->fmt_out.video.i_height = 16;
p_intf->p_sys->p_scale->p_module =
module_Need( p_intf->p_sys->p_scale, "video filter2", 0, 0 );
if( !p_intf->p_sys->p_scale->p_module )
return VLC_EGENERIC;
return VLC_SUCCESS;
}
static int CloseScaling( intf_thread_t *p_intf )
{
if( p_intf->p_sys->p_scale )
{
if( p_intf->p_sys->p_scale->p_module )
module_Unneed( p_intf->p_sys->p_scale,
p_intf->p_sys->p_scale->p_module );
vlc_object_detach( p_intf->p_sys->p_scale );
vlc_object_release( p_intf->p_sys->p_scale );
}
}
#endif
/*****************************************************************************
/*****************************************************************************
* AllocatePicture:
* AllocatePicture:
...
@@ -785,22 +727,7 @@ static int BlendPicture( intf_thread_t *p_intf, video_format_t *p_fmt_src,
...
@@ -785,22 +727,7 @@ static int BlendPicture( intf_thread_t *p_intf, video_format_t *p_fmt_src,
int
i_y_offset
=
p_sys
->
i_y
;
int
i_y_offset
=
p_sys
->
i_y
;
memcpy
(
&
p_sys
->
p_blend
->
fmt_in
.
video
,
p_fmt_src
,
sizeof
(
video_format_t
)
);
memcpy
(
&
p_sys
->
p_blend
->
fmt_in
.
video
,
p_fmt_src
,
sizeof
(
video_format_t
)
);
#if 0
msg_Dbg( p_intf, "Blending pictures %p %4.4s (%dx%d) %d bits %d planes: 0=%p 1=%p 2=%p 3=%p",
p_pic_src, (char*)&p_fmt_src->i_chroma,
p_sys->p_blend->fmt_in.video.i_width, p_sys->p_blend->fmt_in.video.i_height,
p_fmt_src->i_bits_per_pixel,
p_pic_src->i_planes,
p_pic_src->p[0].p_pixels, p_pic_src->p[1].p_pixels,
p_pic_src->p[2].p_pixels, p_pic_src->p[3].p_pixels );
msg_Dbg( p_intf, "Blending pictures %p %4.4s (%dx%d) %d bits %d planes: 0=%p 1=%p 2=%p 3=%p",
p_pic_dst, (char*)&p_fmt_dst->i_chroma,
p_fmt_dst->i_width, p_fmt_dst->i_height,
p_fmt_dst->i_bits_per_pixel,
p_pic_dst->i_planes,
p_pic_dst->p[0].p_pixels, p_pic_dst->p[1].p_pixels,
p_pic_dst->p[2].p_pixels, p_pic_dst->p[3].p_pixels );
#endif
/* Update the output picture size */
/* Update the output picture size */
p_sys
->
p_blend
->
fmt_out
.
video
.
i_width
=
p_sys
->
p_blend
->
fmt_out
.
video
.
i_width
=
p_sys
->
p_blend
->
fmt_out
.
video
.
i_visible_width
=
p_sys
->
p_blend
->
fmt_out
.
video
.
i_visible_width
=
...
@@ -820,7 +747,6 @@ static int BlendPicture( intf_thread_t *p_intf, video_format_t *p_fmt_src,
...
@@ -820,7 +747,6 @@ static int BlendPicture( intf_thread_t *p_intf, video_format_t *p_fmt_src,
}
}
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
#endif
static
int
InvertAlpha
(
intf_thread_t
*
p_intf
,
picture_t
**
p_pic
,
video_format_t
fmt
)
static
int
InvertAlpha
(
intf_thread_t
*
p_intf
,
picture_t
**
p_pic
,
video_format_t
fmt
)
{
{
...
@@ -866,6 +792,7 @@ static int InvertAlpha( intf_thread_t *p_intf, picture_t **p_pic, video_format_t
...
@@ -866,6 +792,7 @@ static int InvertAlpha( intf_thread_t *p_intf, picture_t **p_pic, video_format_t
/* end of kludge */
/* end of kludge */
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
#endif
/*****************************************************************************
/*****************************************************************************
* RenderPicture: Render the picture into the p_dest buffer.
* RenderPicture: Render the picture into the p_dest buffer.
...
@@ -902,7 +829,7 @@ static int RenderPicture( intf_thread_t *p_intf, int i_x_offset, int i_y_offset,
...
@@ -902,7 +829,7 @@ static int RenderPicture( intf_thread_t *p_intf, int i_x_offset, int i_y_offset,
i_y_clip
=
(
i_y_offset
+
p_src
->
p
[
i
].
i_visible_lines
)
-
p_dest
->
p
[
i
].
i_visible_lines
;
i_y_clip
=
(
i_y_offset
+
p_src
->
p
[
i
].
i_visible_lines
)
-
p_dest
->
p
[
i
].
i_visible_lines
;
i_y_clip
=
(
i_y_clip
>
0
)
?
i_y_clip
:
0
;
i_y_clip
=
(
i_y_clip
>
0
)
?
i_y_clip
:
0
;
#if
0
#if
defined(FBOSD_DEBUG)
msg_Dbg
(
p_intf
,
"i_pitch (%d,%d), (%d,%d)/(%d,%d)"
,
msg_Dbg
(
p_intf
,
"i_pitch (%d,%d), (%d,%d)/(%d,%d)"
,
p_dest
->
p
[
i
].
i_visible_pitch
,
p_src
->
p
[
i
].
i_visible_pitch
,
p_dest
->
p
[
i
].
i_visible_pitch
,
p_src
->
p
[
i
].
i_visible_pitch
,
i_x_offset
,
i_y_offset
,
i_x
,
i_x_clip
);
i_x_offset
,
i_y_offset
,
i_x
,
i_x_clip
);
...
@@ -1201,7 +1128,6 @@ static int OpenDisplay( intf_thread_t *p_intf )
...
@@ -1201,7 +1128,6 @@ static int OpenDisplay( intf_thread_t *p_intf )
p_sys
->
p_palette
=
malloc
(
8
*
256
*
sizeof
(
uint16_t
)
);
p_sys
->
p_palette
=
malloc
(
8
*
256
*
sizeof
(
uint16_t
)
);
if
(
!
p_sys
->
p_palette
)
if
(
!
p_sys
->
p_palette
)
{
{
msg_Err
(
p_intf
,
"out of memory"
);
close
(
p_sys
->
i_fd
);
close
(
p_sys
->
i_fd
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
...
...
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