FFmpeg
libavcodec
to_upper4.h
Go to the documentation of this file.
1
/*
2
* Converting FOURCCs to uppercase
3
* Copyright (c) 2001 Fabrice Bellard
4
* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
5
*
6
* This file is part of FFmpeg.
7
*
8
* FFmpeg is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* FFmpeg is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with FFmpeg; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
#ifndef AVCODEC_TO_UPPER4_H
24
#define AVCODEC_TO_UPPER4_H
25
26
#include "
libavutil/avstring.h
"
27
#include "
internal.h
"
28
29
unsigned
int
ff_toupper4
(
unsigned
int
x)
30
{
31
return
av_toupper
(x & 0xFF) |
32
(
av_toupper
((x >> 8) & 0xFF) << 8) |
33
(
av_toupper
((x >> 16) & 0xFF) << 16) |
34
((
unsigned
)
av_toupper
((x >> 24) & 0xFF) << 24);
35
}
36
37
#endif
ff_toupper4
unsigned int ff_toupper4(unsigned int x)
Definition:
to_upper4.h:29
internal.h
av_toupper
static av_const int av_toupper(int c)
Locale-independent conversion of ASCII characters to uppercase.
Definition:
avstring.h:227
avstring.h
Generated on Thu Apr 18 2024 22:42:10 for FFmpeg by
1.8.17