Statistics
| Branch: | Revision:

chunker-player / chunker_player / player_stats.h @ e11386c0

History | View | Annotate | Download (1.34 KB)

1
#ifndef _CHUNKER_PLAYER_STATS_H
2
#define _CHUNKER_PLAYER_STATS_H
3

    
4
#include "player_core.h"
5

    
6
#define MAX_BITRATE 1000
7
#define MIN_BITRATE 0
8

    
9
#define LOST_FRAME                 0
10
#define PLAYED_FRAME         1
11
#define SKIPPED_FRAME        2
12

    
13
int LastIFrameNumber;
14
double LastQualityEstimation;
15
double qoe_adjust_factor;
16

    
17
long int FirstLoggedVFrameNumber;
18
long int LastLoggedVFrameNumber;
19
int ExperimentsCount;
20
// lost, played and skipped video frames
21
long int VideoFramesLogged[3];
22
// lost, played and skipped audio frames
23
long int AudioFramesLogged[3];
24
void ChunkerPlayerStats_PrintContextFile();
25

    
26
void ChunkerPlayerStats_Init();
27

    
28
void ChunkerPlayerStats_UpdateAudioLossHistory(SHistory* history, long int frame_id, long int last_frame_extracted);
29
void ChunkerPlayerStats_UpdateVideoLossHistory(SHistory* history, long int frame_id, long int last_frame_extracted);
30

    
31
void ChunkerPlayerStats_UpdateAudioSkipHistory(SHistory* history, long int frame_id, int size);
32
void ChunkerPlayerStats_UpdateVideoSkipHistory(SHistory* history, long int frame_id, short int Type, int Size, AVFrame* frame);
33

    
34
void ChunkerPlayerStats_UpdateAudioPlayedHistory(SHistory* history, long int frame_id, int size);
35
void ChunkerPlayerStats_UpdateVideoPlayedHistory(SHistory* history, long int frame_id, short int Type, int Size, AVFrame* frame);
36

    
37
int ChunkerPlayerStats_GetStats(SHistory* history, SStats* statistics);
38

    
39
#endif