基于qt,msvc2017-64bits,ffmpeg.opengl的播放器
zhangmeng
2021-03-03 4a6d9312cc1c9d62d66c4def71246d9faae29edb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/*!
 * COPYRIGHT (C) 2010-2020 Emeric Grange - All Rights Reserved
 *
 * This file is part of MiniTraces.
 *
 * MiniTraces is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MiniTraces is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with MiniTraces.  If not, see <http://www.gnu.org/licenses/>.
 *
 * \file      minitraces_conf.h
 * \author    Emeric Grange <emeric.grange@gmail.com>
 * \date      2018
 * \version   0.53
 */
 
#ifndef MINITRACES_CONF_H
#define MINITRACES_CONF_H
/* ************************************************************************** */
 
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/* ************************************************************************** */
 
// =============================================================================
// GENERAL SETTINGS
// =============================================================================
 
 
#if ENABLE_DEBUG == 1
#define MINITRACES_LEVEL    2   // Enables all traces levels
#else
#define MINITRACES_LEVEL    1   // Only error and warnings traces
#endif
 
// Enable terminal colored output
#if ENABLE_COLORS == 1
#undef MINITRACES_COLORS
#define MINITRACES_COLORS   1
#else
#undef ENABLE_COLORS
#define MINITRACES_COLORS   0
#endif
 
// Advanced debugging features
#define MINITRACES_TIMESTAMPS       0   //!< 0: disabled, 1: trace tick (in milliseconds), 2: trace time (hh:mm:ss)
#define MINITRACES_FUNC_INFO        0
#define MINITRACES_FILE_INFO        1
#define MINITRACES_FORCED_SYNC      0
#define MINITRACES_STRICT_PADDING   0   //!< Not implemented yet
 
// =============================================================================
// PROGRAM IDENTIFIER
// =============================================================================
 
/*!
 * This string will be used to easily identify from which program a trace comes
 * from if multiple program are outputting traces with MiniTraces at the same time.
 * You can use brackets, spaces, colors...
 * Example: #define PID OUT_BLUE "[MINITRACE]" CLR_RESET " "
 *
 * Leave it blank if you don't need this feature!
 */
#define PID ""
 
// =============================================================================
// TRACE MODULES
// =============================================================================
 
/*!
 * \brief This is the list of module you can use when creating a trace with a TRACE_xxx macro.
 * \note The content of this enum must ALWAYS be in sync with the trace_modules_table[] below.
 *
 * When a TRACE_xxx macro is called with a given module, it will try to match it
 * with a TraceModule_t entry inside the trace_modules_table[] to get access to
 * the module parameters.
 */
enum TraceModule_e
{
    MAIN,
 
    IO,
        BITS,
        BYTES,
    TOOL,
    DEMUX,
        MKV,
        MP4,
        MP3,
        AVI,
        ASF,
        WAV,
        MPS,
        MTS,
        RIF,
        AIF,
        CAF,
        AU,
        FILTR,
        MAPPR,
    MUXER,
    DEPAK,
    H264,
        NALU,
        PARAM,
        SLICE,
        MB,
        SPATIAL,
        INTRA,
        INTER,
        TRANS,
        EXPGO,
        CAVLC,
        CABAC,
};
 
/*!
 * \brief This is the list of trace modules defined in your project.
 * \note The content of this enum must ALWAYS be in sync with the TraceModule_e enum above.
 *
 * - The first field is the "public" module's name, as it will be outputted by MiniTraces.
 * - The second field holds the description of the module.
 * - The last field indicate the level of traces a module can output, using one or a concatenation of TRACE_LEVEL_xxx macros.
 */
static TraceModule_t trace_modules_table[] =
{
    { "MAIN"      , "MiniVideo library main"    , TRACE_LEVEL_DEFAULT },
    { "I/O"       , "Input/Output related"      , TRACE_LEVEL_DEFAULT },
        { "BITS"  , "Bitstream handling"        , TRACE_LEVEL_DEFAULT },
        { "BYTES" , "Bytestream handling"       , TRACE_LEVEL_DEFAULT },
    { "TOOLS"     , "Various useful functions"  , TRACE_LEVEL_DEFAULT },
    { "DEMUX"     , "File parsing functions"    , TRACE_LEVEL_DEFAULT },
        { "MKV"   , "MKV parser"                , TRACE_LEVEL_DEFAULT },
        { "MP4"   , "MP4 parser"                , TRACE_LEVEL_DEFAULT },
        { "MP3"   , "MP3 parser"                , TRACE_LEVEL_DEFAULT },
        { "AVI"   , "AVI parser"                , TRACE_LEVEL_DEFAULT },
        { "ASF"   , "ASF parser"                , TRACE_LEVEL_DEFAULT },
        { "WAV"   , "WAVE parser"               , TRACE_LEVEL_DEFAULT },
        { "MPS"   , "MPEG-PS parser"            , TRACE_LEVEL_DEFAULT },
        { "MTS"   , "MPEG-TS parser"            , TRACE_LEVEL_DEFAULT },
        { "RIF"   , "RIFF parser utils"         , TRACE_LEVEL_DEFAULT },
        { "AIF"   , "AIFF parser"               , TRACE_LEVEL_DEFAULT },
        { "CAF"   , "CAF parser"                , TRACE_LEVEL_DEFAULT },
        { "AU"    , "AU parser"                 , TRACE_LEVEL_DEFAULT },
        { "FILTR" , "IDR filtering functions"   , TRACE_LEVEL_DEFAULT },
        { "MAPPR" , "XML Mapper"                , TRACE_LEVEL_DEFAULT },
    { "MUX"       , "Output ES or PES to file"  , TRACE_LEVEL_DEFAULT },
    { "DEPAK"     , "Depacketizers"             , TRACE_LEVEL_DEFAULT },
    { "H.264"     , "H.264 decoder"             , TRACE_LEVEL_DEFAULT },
        { "NAL-U" , "NAL Unit decoding"         , TRACE_LEVEL_DEFAULT },
        { "PARAM" , "Parameters Set"            , TRACE_LEVEL_DEFAULT },
        { "SLICE" , "Slice decoding"            , TRACE_LEVEL_DEFAULT },
        { "MACRO" , "Macroblock decoding"       , TRACE_LEVEL_DEFAULT },
        { "SPACE" , "Spatial subdivision"       , TRACE_LEVEL_DEFAULT },
        { "INTRA" , "Intra prediction"          , TRACE_LEVEL_DEFAULT },
        { "INTER" , "Inter prediction"          , TRACE_LEVEL_DEFAULT },
        { "TRANS" , "Spatial transformation"    , TRACE_LEVEL_DEFAULT },
        { "EXPGO" , "Exp-Golomb decoding"       , TRACE_LEVEL_DEFAULT },
        { "CAVLC" , "CAVLC decoding"            , TRACE_LEVEL_DEFAULT },
        { "CABAC" , "CABAC decoding"            , TRACE_LEVEL_DEFAULT },
};
 
/* ************************************************************************** */
#ifdef __cplusplus
}
#endif // __cplusplus
 
#endif // MINITRACES_CONF_H