📄 streaminfo.h
字号:
/* * Copyright (C) 2008 mtrooper * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *//* $Id$ */#ifndef STREAMINFO_H#define STREAMINFO_H#if (C_HAVE_WXGUI)#include "wxGUI.h"#include <wx/listctrl.h>#include <wx/stattext.h>#include <wx/statbox.h>#undef StreamInfo_STYLE#define StreamInfo_STYLE wxCAPTION | wxSYSTEM_MENU | wxDIALOG_NO_PARENT | wxMINIMIZE_BOX | wxCLOSE_BOXclass StreamInfo : public wxDialog{public: StreamInfo(wxWindow * parent, wxWindowID id = 1, const wxString & title = wxT("Stream Info"), const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = StreamInfo_STYLE); void UpdateStreamInfo(PAT_entry * pat_entries, int num_pat_entries, int num_valid_pmts, unsigned int MPEG2_Transport_VideoPID, unsigned int MPEG2_Transport_AudioPID); void UpdateVideoStream(int width, int height, long bitrate, double ar); void UpdateAudioStream(int frequency, int bitrate); void UpdateVideoActualBitrate(long actualBitrate); virtual ~StreamInfo();private: wxListView * Streams; wxStaticBox * AllStreams; wxStaticBox * AudioStream; wxStaticText * AudioStreamFrequency; wxStaticText * AudioStreamBitrate; wxStaticText * AudioStreamType; wxStaticText * AudioStreamPID; wxStaticBox * VideoStream; wxStaticText * VideoStreamPID; wxStaticText * VideoStreamBitrate; wxStaticText * VideoStreamAR; wxStaticText * VideoStreamResolution; wxStaticText * VideoStreamType; wxStaticText * VideoStreamActualBitrate;private: enum { ID_STREAMS = 1001, ID_ALLSTREAMS = 1002, ID_AUDIOSTREAMBITRATE = 1003, ID_AUDIOSTREAMTYPE = 1004, ID_AUDIOSTREAMPID = 1005, ID_AUDIOSTREAM = 1006, ID_VIDEOSTREAMPID = 1007, ID_VIDEOSTREAMBITRATE = 1008, ID_VIDEOSTREAMAR = 1009, ID_VIDEOSTREAMRESOLUTION = 1010, ID_VIDEOSTREAMTYPE = 1011, ID_VIDEOSTREAM = 1012, ID_AUDIOSTREAMFREQUENCY = 1013, ID_VIDEO_STREAM_ACTUAL_BITRATE = 1014 };private: void OnClose(wxCloseEvent& event); void CreateGUIControls(); void OnStreamInfoKeyDown(wxKeyEvent& event);};#endif // C_HAVE_WXGUI#endif // STREAMINFO_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -