Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8a5c9258
Commit
8a5c9258
authored
Jun 29, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added es_format_InitFromVideo helper.
parent
967845de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
include/vlc_es.h
include/vlc_es.h
+5
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/misc/es_format.c
src/misc/es_format.c
+6
-0
No files found.
include/vlc_es.h
View file @
8a5c9258
...
...
@@ -287,6 +287,11 @@ VLC_EXPORT( void, video_format_FixRgb, ( video_format_t * ) );
*/
VLC_EXPORT
(
void
,
es_format_Init
,
(
es_format_t
*
,
int
i_cat
,
vlc_fourcc_t
i_codec
)
);
/**
* This function will initialize a es_format_t structure from a video_format_t.
*/
VLC_EXPORT
(
void
,
es_format_InitFromVideo
,
(
es_format_t
*
,
const
video_format_t
*
)
);
/**
* This functions will copy a es_format_t.
*/
...
...
src/libvlccore.sym
View file @
8a5c9258
...
...
@@ -122,6 +122,7 @@ EnsureUTF8
es_format_Clean
es_format_Copy
es_format_Init
es_format_InitFromVideo
es_format_IsSimilar
filename_sanitize
filter_Blend
...
...
src/misc/es_format.c
View file @
8a5c9258
...
...
@@ -258,6 +258,12 @@ void es_format_Init( es_format_t *fmt,
fmt
->
p_extra
=
NULL
;
}
void
es_format_InitFromVideo
(
es_format_t
*
p_es
,
const
video_format_t
*
p_fmt
)
{
es_format_Init
(
p_es
,
VIDEO_ES
,
p_fmt
->
i_chroma
);
video_format_Copy
(
&
p_es
->
video
,
p_fmt
);
}
int
es_format_Copy
(
es_format_t
*
dst
,
const
es_format_t
*
src
)
{
int
i
;
...
...
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