mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- streaminfo: port from TangoCash
Conflicts: src/gui/streaminfo2.cpp Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -28,18 +28,21 @@
|
||||
#include <gui/components/cc.h>
|
||||
#include <gui/movieplayer.h>
|
||||
#include <zapit/femanager.h>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
struct AVFormatContext;
|
||||
|
||||
class CFrameBuffer;
|
||||
class COSDFader;
|
||||
class CStreamInfo2 : public CMenuTarget
|
||||
{
|
||||
private:
|
||||
|
||||
CFrameBuffer *frameBuffer;
|
||||
CFrontend *frontend;
|
||||
CComponentsPIP * pip;
|
||||
CComponentsPIP *pip;
|
||||
CMoviePlayerGui *mp;
|
||||
COSDFader fader;
|
||||
COSDFader fader;
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
@@ -67,7 +70,11 @@ class CStreamInfo2 : public CMenuTarget
|
||||
int sig_text_snr_x;
|
||||
int sig_text_rate_x;
|
||||
int average_bitrate_pos;
|
||||
int average_bitrate_offset;
|
||||
|
||||
int techinfo_xpos, techinfo_ypos;
|
||||
int box_width;
|
||||
|
||||
int spaceoffset;
|
||||
unsigned int scaling;
|
||||
unsigned int pmt_version;
|
||||
int box_h,box_h2;
|
||||
@@ -81,6 +88,8 @@ class CStreamInfo2 : public CMenuTarget
|
||||
unsigned int short_average, max_short_average, min_short_average;
|
||||
} rate;
|
||||
|
||||
std::vector<std::map<std::string,std::string> > streamdata;
|
||||
|
||||
int doSignalStrengthLoop();
|
||||
|
||||
struct timeval tv, last_tv, first_tv;
|
||||
@@ -88,9 +97,21 @@ class CStreamInfo2 : public CMenuTarget
|
||||
uint64_t abit_s;
|
||||
uint64_t b_total;
|
||||
unsigned char *dmxbuf;
|
||||
int update_rate();
|
||||
int ts_setup();
|
||||
unsigned char *probebuf;
|
||||
unsigned int probebuf_off;
|
||||
unsigned int probebuf_size;
|
||||
unsigned int probebuf_length;
|
||||
OpenThreads::Mutex probe_mutex;
|
||||
pthread_t probe_thread;
|
||||
bool probed;
|
||||
|
||||
bool update_rate();
|
||||
bool ts_setup();
|
||||
int ts_close();
|
||||
static void *probeStreams(void *arg);
|
||||
void probeStreams();
|
||||
void analyzeStreams(AVFormatContext *avfc);
|
||||
void analyzeStream(AVFormatContext *avfc, unsigned int i);
|
||||
|
||||
void paint(int mode);
|
||||
void paint_techinfo(int x, int y);
|
||||
@@ -103,6 +124,7 @@ class CStreamInfo2 : public CMenuTarget
|
||||
|
||||
void showSNR ();
|
||||
public:
|
||||
bool abort_probing;
|
||||
|
||||
CStreamInfo2();
|
||||
~CStreamInfo2();
|
||||
@@ -110,6 +132,7 @@ class CStreamInfo2 : public CMenuTarget
|
||||
void hide();
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
|
||||
int readPacket(uint8_t *buf, int buf_size);
|
||||
};
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user