Debian Codegraph @

components/encoder/fdkaac/config.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2025 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_FDKAACCONFIG
14 #define H_FDKAACCONFIG
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20 using namespace smooth::GUI;
21
22 using namespace BoCA;
23
24 namespace BoCA
25 {
26 class ConfigureFDKAAC : public ConfigLayer
27 {
28 private:
29 TabWidget *tabwidget;
30
31 Layer *layer_format;
32
33 GroupBox *group_version;
34 OptionBox *option_version_mpeg2;
35 OptionBox *option_version_mpeg4;
36
37 GroupBox *group_id3v2;
38 CheckBox *check_id3v2;
39 Text *text_note;
40 Text *text_id3v2;
41
42 GroupBox *group_mp4;
43 OptionBox *option_mp4;
44 OptionBox *option_aac;
45
46 GroupBox *group_extension;
47 OptionBox *option_extension_m4a;
48 OptionBox *option_extension_m4b;
49 OptionBox *option_extension_m4r;
50 OptionBox *option_extension_mp4;
51
52 Layer *layer_quality;
53
54 GroupBox *group_codec;
55 Text *text_codec;
56 ComboBox *combo_codec;
57
58 GroupBox *group_bitrate;
59 OptionBox *option_bitrate;
60 Slider *slider_bitrate;
61 EditBox *edit_bitrate;
62 Text *text_bitrate_kbps;
63 OptionBox *option_quality;
64 Slider *slider_quality;
65 Text *text_quality_level;
66 Text *text_quality_worse;
67 Text *text_quality_better;
68 CheckBox *check_afterburner;
69
70 GroupBox *group_bandwidth;
71 Text *text_bandwidth;
72 Slider *slider_bandwidth;
73 Text *text_bandwidth_hz;
74
75 Array<UnsignedInt> codecs;
76
77 Int mpegVersion;
78 Int mode;
79 Int bitrate;
80 Int quality;
81 Bool afterburner;
82 Int bandwidth;
83 Int previousBandwidth;
84 Bool allowID3;
85 Int fileFormat;
86 Int fileExtension;
87
88 Void FillCodecs();
89 slots:
90 Void SetMPEGVersion();
91 Void SetMode();
92 Void SetCodec();
93 Void SetBitrate();
94 Void SetBitrateByEditBox();
95 Void SetQuality();
96 Void SetBandwidth();
97 Void SetFileFormat();
98 public:
99 static const String ConfigID;
100
101 ConfigureFDKAAC();
102 ~ConfigureFDKAAC();
103
104 Int SaveSettings();
105 };
106 };
107
108 #endif