Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4961a425
Commit
4961a425
authored
Sep 21, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up subpicture allocation and unused fields.
parent
a74e2c4c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
325 additions
and
312 deletions
+325
-312
include/vlc_osd.h
include/vlc_osd.h
+1
-0
include/vlc_vout.h
include/vlc_vout.h
+0
-11
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+324
-301
No files found.
include/vlc_osd.h
View file @
4961a425
...
@@ -100,6 +100,7 @@ VLC_EXPORT( void, spu_Destroy, ( spu_t * ) );
...
@@ -100,6 +100,7 @@ VLC_EXPORT( void, spu_Destroy, ( spu_t * ) );
void
spu_Attach
(
spu_t
*
,
vlc_object_t
*
,
bool
);
void
spu_Attach
(
spu_t
*
,
vlc_object_t
*
,
bool
);
VLC_EXPORT
(
subpicture_t
*
,
spu_CreateSubpicture
,
(
spu_t
*
)
);
VLC_EXPORT
(
subpicture_t
*
,
spu_CreateSubpicture
,
(
spu_t
*
)
);
/* XXX you cannot call spu_DestroySubpicture on a displayed picture */
VLC_EXPORT
(
void
,
spu_DestroySubpicture
,
(
spu_t
*
,
subpicture_t
*
)
);
VLC_EXPORT
(
void
,
spu_DestroySubpicture
,
(
spu_t
*
,
subpicture_t
*
)
);
VLC_EXPORT
(
void
,
spu_DisplaySubpicture
,
(
spu_t
*
,
subpicture_t
*
)
);
VLC_EXPORT
(
void
,
spu_DisplaySubpicture
,
(
spu_t
*
,
subpicture_t
*
)
);
...
...
include/vlc_vout.h
View file @
4961a425
...
@@ -363,8 +363,6 @@ struct subpicture_t
...
@@ -363,8 +363,6 @@ struct subpicture_t
Should NOT be modified except by the vout thread */
Should NOT be modified except by the vout thread */
/**@{*/
/**@{*/
int64_t
i_order
;
/** an increasing unique number */
int64_t
i_order
;
/** an increasing unique number */
int
i_type
;
/**< type */
int
i_status
;
/**< flags */
subpicture_t
*
p_next
;
/**< next subtitle to be displayed */
subpicture_t
*
p_next
;
/**< next subtitle to be displayed */
/**@}*/
/**@}*/
...
@@ -406,18 +404,9 @@ struct subpicture_t
...
@@ -406,18 +404,9 @@ struct subpicture_t
subpicture_sys_t
*
p_sys
;
/* subpicture data */
subpicture_sys_t
*
p_sys
;
/* subpicture data */
};
};
/* Subpicture type */
#define EMPTY_SUBPICTURE 0
/* subtitle slot is empty and available */
#define MEMORY_SUBPICTURE 100
/* subpicture stored in memory */
/* Default subpicture channel ID */
/* Default subpicture channel ID */
#define DEFAULT_CHAN 1
#define DEFAULT_CHAN 1
/* Subpicture status */
#define FREE_SUBPICTURE 0
/* free and not allocated */
#define RESERVED_SUBPICTURE 1
/* allocated and reserved */
#define READY_SUBPICTURE 2
/* ready for display */
/* Subpicture position flags */
/* Subpicture position flags */
#define SUBPICTURE_ALIGN_LEFT 0x1
#define SUBPICTURE_ALIGN_LEFT 0x1
#define SUBPICTURE_ALIGN_RIGHT 0x2
#define SUBPICTURE_ALIGN_RIGHT 0x2
...
...
src/video_output/vout_subpictures.c
View file @
4961a425
This diff is collapsed.
Click to expand it.
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