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
9a21bac2
Commit
9a21bac2
authored
Sep 05, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function to get a human readible string for a vlc_fourcc_t value.
parent
7b19600d
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
+18
-0
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+5
-2
No files found.
include/vlc_common.h
View file @
9a21bac2
...
...
@@ -191,6 +191,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 @
9a21bac2
...
...
@@ -1905,8 +1905,11 @@ 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"
);
return
NULL
;
char
psz_fourcc
[
5
];
memset
(
&
psz_fourcc
,
0
,
sizeof
(
char
)
*
5
);
vlc_fourcc_to_char
(
p_region
->
fmt
.
i_chroma
,
&
psz_fourcc
);
msg_Err
(
p_enc
,
"chroma %4s not supported"
,
&
psz_fourcc
);
return
NULL
;
}
if
(
p_region
->
fmt
.
p_palette
)
...
...
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