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
b5625a39
Commit
b5625a39
authored
May 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a small vlc_fourcc_GetCodecFromString helper.
parent
cee16ae6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
include/vlc_fourcc.h
include/vlc_fourcc.h
+12
-1
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/misc/fourcc.c
src/misc/fourcc.c
+9
-0
No files found.
include/vlc_fourcc.h
View file @
b5625a39
...
...
@@ -313,7 +313,7 @@
#define VLC_CODEC_MP3 VLC_FOURCC('m','p','3',' ')
/**
* It returns the codec associatedto a fourcc within a ES category.
* It returns the codec associated
to a fourcc within a ES category.
*
* If not found, it will return the given fourcc.
* If found, it will allways be one of the VLC_CODEC_ defined above.
...
...
@@ -322,6 +322,17 @@
*/
VLC_EXPORT
(
vlc_fourcc_t
,
vlc_fourcc_GetCodec
,
(
int
i_cat
,
vlc_fourcc_t
i_fourcc
)
);
/**
* It returns the codec associated to a fourcc store in a zero terminated
* string.
*
* If the string is NULL or does not have exactly 4 charateres, it will
* return 0, otherwise it behaves like vlc_fourcc_GetCodec.
*
* Provided for convenience.
*/
VLC_EXPORT
(
vlc_fourcc_t
,
vlc_fourcc_GetCodecFromString
,
(
int
i_cat
,
const
char
*
)
);
/**
* It returns the description of the given fourcc or NULL if not found.
*
...
...
src/libvlccore.sym
View file @
b5625a39
...
...
@@ -453,6 +453,7 @@ vlc_event_send
__vlc_execve
vlc_fastmem_register
vlc_fourcc_GetCodec
vlc_fourcc_GetCodecFromString
vlc_fourcc_GetDescription
vlc_freeaddrinfo
vlc_gai_strerror
...
...
src/misc/fourcc.c
View file @
b5625a39
...
...
@@ -1186,6 +1186,15 @@ vlc_fourcc_t vlc_fourcc_GetCodec( int i_cat, vlc_fourcc_t i_fourcc )
return
CreateFourcc
(
e
.
p_class
);
}
vlc_fourcc_t
vlc_fourcc_GetCodecFromString
(
int
i_cat
,
const
char
*
psz_fourcc
)
{
if
(
!
psz_fourcc
||
strlen
(
psz_fourcc
)
!=
4
)
return
0
;
return
vlc_fourcc_GetCodec
(
i_cat
,
VLC_FOURCC
(
psz_fourcc
[
0
],
psz_fourcc
[
1
],
psz_fourcc
[
2
],
psz_fourcc
[
3
]
)
);
}
/* */
const
char
*
vlc_fourcc_GetDescription
(
int
i_cat
,
vlc_fourcc_t
i_fourcc
)
{
...
...
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