wcap: Move wcap structs and constants to a shader header

This commit is contained in:
Kristian Høgsberg
2012-05-25 17:55:20 -04:00
parent e012c829af
commit 894e0b544c
3 changed files with 64 additions and 85 deletions
+2 -6
View File
@@ -31,6 +31,8 @@
#include "compositor.h"
#include "screenshooter-server-protocol.h"
#include "../wcap-decode/wcap-decode.h"
struct screenshooter {
struct wl_object base;
struct weston_compositor *ec;
@@ -324,12 +326,6 @@ weston_recorder_frame_notify(struct wl_listener *listener, void *data)
pixman_region32_fini(&damage);
}
#define WCAP_HEADER_MAGIC 0x57434150
#define WCAP_FORMAT_XRGB8888 0x34325258
#define WCAP_FORMAT_XBGR8888 0x34324258
#define WCAP_FORMAT_RGBX8888 0x34325852
#define WCAP_FORMAT_BGRX8888 0x34325842
static void
weston_recorder_create(struct weston_output *output, const char *filename)
{