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
46f671ee
Commit
46f671ee
authored
Sep 05, 2007
by
Jean-Paul Saman
Committed by
Jean-Paul Saman
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of [21787]: Get human readible string from a vlc_fourcc_t.
parent
5296de80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
include/vlc_common.h
include/vlc_common.h
+19
-1
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+4
-1
No files found.
include/vlc_common.h
View file @
46f671ee
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998-2005 the VideoLAN team
* $Id$
* $Id
: 47038af022b63418ff42884b90a010117fe49204
$
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -193,6 +193,24 @@ typedef uint32_t vlc_fourcc_t;
#endif
static
inline
void
__vlc_fourcc_to_char
(
vlc_fourcc_t
fcc
,
char
*
psz_fourcc
)
{
#ifdef WORDS_BIGENDIAN
psz_fourcc
[
0
]
=
(
uint32_t
)
(
fcc
>>
24
);
psz_fourcc
[
1
]
=
(
uint32_t
)
(
fcc
>>
16
);
psz_fourcc
[
2
]
=
(
uint32_t
)
(
fcc
>>
8
);
psz_fourcc
[
3
]
=
(
uint32_t
)
(
fcc
);
#else
psz_fourcc
[
3
]
=
(
uint32_t
)
(
fcc
>>
24
);
psz_fourcc
[
2
]
=
(
uint32_t
)
(
fcc
>>
16
);
psz_fourcc
[
1
]
=
(
uint32_t
)
(
fcc
>>
8
);
psz_fourcc
[
0
]
=
(
uint32_t
)
(
fcc
);
#endif
}
#define vlc_fourcc_to_char( a, b ) \
__vlc_fourcc_to_char( (vlc_fourcc_t)(a), (char *)(b) )
/*****************************************************************************
* Classes declaration
*****************************************************************************/
...
...
modules/codec/dvbsub.c
View file @
46f671ee
...
...
@@ -1790,7 +1790,10 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_subpic )
if
(
p_region
->
fmt
.
i_chroma
!=
VLC_FOURCC
(
'T'
,
'E'
,
'X'
,
'T'
)
&&
p_region
->
fmt
.
i_chroma
!=
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'P'
)
)
{
msg_Err
(
p_enc
,
"chroma not supported"
);
char
*
psz_fourcc
[
5
];
memset
(
&
psz_fourcc
,
0
,
5
);
vlc_fourcc_to_char
(
p_region
->
fmt
.
i_chroma
,
&
psz_fourcc
);
msg_Err
(
p_enc
,
"chroma %4s not supported"
,
&
psz_fourcc
);
return
NULL
;
}
...
...
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