-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoptionpanel.h
99 lines (82 loc) · 2.44 KB
/
optionpanel.h
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
#ifndef OPTIONPANEL_H
#define OPTIONPANEL_H
#include <QMainWindow>
#include <QTextEdit>
#include <QFont>
#include <QLineEdit>
#include <QLabel>
#include <QRunnable>
#include <QComboBox>
extern "C" {
#include "libavcodec/avcodec.h"
#include "libavutil/mem.h"
#include "libavutil/avassert.h"
#include "libavutil/parseutils.h"
#include "libavutil/samplefmt.h"
}
#include "Utilities/paneldialog.h"
#include "Ffplay/CommandOptions.h"
//#include "parameterpanel.h"
class OptionPanel : public Panel
{
Q_OBJECT
public:
OptionPanel(QMainWindow *parent);
QTextEdit *helpDisplay;
QStringList optionList;
QLineEdit *filterEdit;
QLabel *currentOption;
void display(const QString& str, const QString& title);
const QString getOptionList();
const QString filterOptionList(const QString& filter);
char get_media_type_char(enum AVMediaType type);
static int compare_codec_desc(const void *a, const void *b);
const AVCodec *next_codec_for_id(enum AVCodecID id, const AVCodec *prev, int encoder);
unsigned get_codecs_sorted(const AVCodecDescriptor ***rcodecs);
const QString print_codecs(int encoder);
const QString show_filters();
const QString show_protocols();
const QString show_bsfs();
const QString show_colors();
const QString show_pix_fmts();
const QString show_layouts();
const QString show_sample_fmts();
void show_help_codec(const char *name, int encoder);
const QString print_codec(const AVCodec *c);
const QString show_formats_devices(int device_only, int muxdemuxers);
int is_device(const AVClass *avclass);
const QString show_formats();
void show_muxers();
const QString show_demuxers();
const QString show_devices();
const QString show_help_options(const OptionDef *options, const char *msg, int req_flags, int rej_flags, int alt_flags);
//QMainWindow *mainWindow;
//ParameterDialog *parameterDialog;
public slots:
void test();
void clear();
void close();
void filterChanged(const QString&);
void decoders();
void filters();
void bsfs();
void pix_fmts();
void formats();
void sample_fmts();
void protocols();
void layouts();
void colors();
void demuxers();
void devices();
void help();
void details();
void config();
void showConfig(const QString&);
};
class OptionDialog : public PanelDialog
{
Q_OBJECT
public:
OptionDialog(QMainWindow *parent);
};
#endif // OPTIONPANEL_H