avformat/mpeg: demux ivtv captions
[ffmpeg.git] / libavcodec / to_upper4.h
blobd9648b5ef6ad802a2b0cf6afff3877ee9e0eed02
1 /*
2 * Converting FOURCCs to uppercase
3 * Copyright (c) 2001 Fabrice Bellard
4 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
6 * This file is part of FFmpeg.
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.
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.
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
23 #ifndef AVCODEC_TO_UPPER4_H
24 #define AVCODEC_TO_UPPER4_H
26 #include "libavutil/avstring.h"
27 #include "internal.h"
29 unsigned int ff_toupper4(unsigned int x)
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);
37 #endif