summaryrefslogtreecommitdiffstats
path: root/server/display-channel.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-11-10 11:37:55 +0000
committerFrediano Ziglio <fziglio@redhat.com>2015-11-10 16:06:08 +0000
commit1e4abdc15d83c605b020682979abc03dc4848f31 (patch)
tree5397ff69492978cdfa42ad3ad1568e08c86e21fc /server/display-channel.h
parentab2e8a9cc00ea6e04b1622dcc6bed05e74963480 (diff)
downloadspice-1e4abdc15d83c605b020682979abc03dc4848f31.tar.gz
spice-1e4abdc15d83c605b020682979abc03dc4848f31.tar.xz
spice-1e4abdc15d83c605b020682979abc03dc4848f31.zip
worker: move stream definitions to a new stream.h file
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'server/display-channel.h')
-rw-r--r--server/display-channel.h60
1 files changed, 1 insertions, 59 deletions
diff --git a/server/display-channel.h b/server/display-channel.h
index 055c2a78..7173c6e4 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -54,6 +54,7 @@
#include "spice_image_cache.h"
#include "utils.h"
#include "tree.h"
+#include "stream.h"
typedef struct DisplayChannel DisplayChannel;
typedef struct DisplayChannelClient DisplayChannelClient;
@@ -128,23 +129,6 @@ typedef struct {
EncoderData data;
} GlzData;
-typedef struct Stream Stream;
-struct Stream {
- uint8_t refs;
- Drawable *current;
- red_time_t last_time;
- int width;
- int height;
- SpiceRect dest_area;
- int top_down;
- Stream *next;
- RingItem link;
-
- uint32_t num_input_frames;
- uint64_t input_fps_start_time;
- uint32_t input_fps;
-};
-
typedef struct DependItem {
Drawable *drawable;
RingItem ring_item;
@@ -179,48 +163,6 @@ struct Drawable {
uint32_t process_commands_generation;
};
-#define STREAM_STATS
-#ifdef STREAM_STATS
-typedef struct StreamStats {
- uint64_t num_drops_pipe;
- uint64_t num_drops_fps;
- uint64_t num_frames_sent;
- uint64_t num_input_frames;
- uint64_t size_sent;
-
- uint64_t start;
- uint64_t end;
-} StreamStats;
-#endif
-
-typedef struct StreamAgent {
- QRegion vis_region; /* the part of the surface area that is currently occupied by video
- fragments */
- QRegion clip; /* the current video clipping. It can be different from vis_region:
- for example, let c1 be the clip area at time t1, and c2
- be the clip area at time t2, where t1 < t2. If c1 contains c2, and
- at least part of c1/c2, hasn't been covered by a non-video images,
- vis_region will contain c2 and also the part of c1/c2 that still
- displays fragments of the video */
-
- PipeItem create_item;
- PipeItem destroy_item;
- Stream *stream;
- uint64_t last_send_time;
- MJpegEncoder *mjpeg_encoder;
- DisplayChannelClient *dcc;
-
- int frames;
- int drops;
- int fps;
-
- uint32_t report_id;
- uint32_t client_required_latency;
-#ifdef STREAM_STATS
- StreamStats stats;
-#endif
-} StreamAgent;
-
struct DisplayChannelClient {
CommonChannelClient common;