FFmpeg coverage


Directory: ../../../ffmpeg/
File: src/libavcodec/to_upper4.h
Date: 2024-11-12 23:50:39
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
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 449408 unsigned int ff_toupper4(unsigned int x)
30 {
31 449408 return av_toupper(x & 0xFF) |
32 449408 (av_toupper((x >> 8) & 0xFF) << 8) |
33 898816 (av_toupper((x >> 16) & 0xFF) << 16) |
34 449408 ((unsigned)av_toupper((x >> 24) & 0xFF) << 24);
35 }
36
37 #endif
38