Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
15da764a
Commit
15da764a
authored
Aug 09, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added vlc_fourcc_IsYUV.
parent
adcf4a99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
include/vlc_fourcc.h
include/vlc_fourcc.h
+6
-1
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/misc/fourcc.c
src/misc/fourcc.c
+2
-3
No files found.
include/vlc_fourcc.h
View file @
15da764a
...
...
@@ -355,10 +355,15 @@ VLC_EXPORT( const char *, vlc_fourcc_GetDescription, ( int i_cat, vlc_fourcc_t i
* It returns a list (terminated with the value 0) of YUV fourccs in
* decreasing priority order for the given chroma.
*
* It will always return a non NULL pointer that must not freed.
* It will always return a non NULL pointer that must not
be
freed.
*/
VLC_EXPORT
(
const
vlc_fourcc_t
*
,
vlc_fourcc_GetYUVFallback
,
(
vlc_fourcc_t
)
);
/**
* It returns true if the given fourcc is YUV and false otherwise.
*/
VLC_EXPORT
(
bool
,
vlc_fourcc_IsYUV
,
(
vlc_fourcc_t
)
);
/**
* It returns true if the two fourccs are equivalent if their U&V planes are
* swapped.
...
...
src/libvlccore.sym
View file @
15da764a
...
...
@@ -483,6 +483,7 @@ vlc_fourcc_GetCodec
vlc_fourcc_GetCodecAudio
vlc_fourcc_GetCodecFromString
vlc_fourcc_GetDescription
vlc_fourcc_IsYUV
vlc_fourcc_GetYUVFallback
vlc_fourcc_AreUVPlanesSwapped
vlc_gai_strerror
...
...
src/misc/fourcc.c
View file @
15da764a
...
...
@@ -1428,8 +1428,7 @@ bool vlc_fourcc_AreUVPlanesSwapped( vlc_fourcc_t a, vlc_fourcc_t b )
((
b
==
VLC_CODEC_I420
||
b
==
VLC_CODEC_J420
)
&&
a
==
VLC_CODEC_YV12
));
}
#if 0
static inline bool vlc_fourcc_IsYUV(vlc_fourcc_t fcc)
bool
vlc_fourcc_IsYUV
(
vlc_fourcc_t
fcc
)
{
for
(
unsigned
i
=
0
;
p_list_YUV
[
i
];
i
++
)
{
...
...
@@ -1438,4 +1437,4 @@ static inline bool vlc_fourcc_IsYUV(vlc_fourcc_t fcc)
}
return
false
;
}
#endif
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