Screen recording/snapshots.
More...
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <errno.h>
#include <libavcodec/avcodec.h>
#include <libswresample/swresample.h>
#include <libavformat/avformat.h>
#include <libavformat/avio.h>
#include <libavutil/avutil.h>
#include <libavutil/dict.h>
#include <libavutil/error.h>
#include <libavutil/frame.h>
#include <libavutil/pixfmt.h>
#include <libavutil/rational.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include "amqp_listen.h"
#include "buffer_sizes.h"
#include "logger.h"
#include "recording.pb-c.h"
#include "sensors.h"
#include "socket.h"
#include "grabber.h"
Go to the source code of this file.
Screen recording/snapshots.
Definition in file grabber.c.
#define LOG_TAG "grabber" |
#define READ_BUFFER_SIZE 1024 |
int ffmpeg_grabber |
( |
void * |
arg | ) |
|
Function passed to a thread in order to detect format encoding - encode frame- and write in a file.
- Parameters
-
args | parameter for file's name of the video record |
Definition at line 420 of file grabber.c.
void* grab_handler_amqp |
( |
void * |
args | ) |
|
void* grab_handler_sock |
( |
void * |
args | ) |
|
void grab_snapshot |
( |
char * |
snap_filename | ) |
|
void grabber_set_display |
( |
Display * |
display | ) |
|
Set the static X display pointer.
- Parameters
-
display | the X display pointer |
Definition at line 68 of file grabber.c.
void grabber_set_path_results |
( |
char * |
results | ) |
|
Set the static path to the screenshots/movies dir.
- Parameters
-
results | a pointer to the string |
Definition at line 73 of file grabber.c.
int needQuit |
( |
pthread_mutex_t * |
mtx | ) |
|
void* pgrab |
( |
void * |
arg | ) |
|
unsigned char* xgrabber |
( |
| ) |
|
Global variable for the window height.
Height of the window (can be resized at runtime)
Shared with the grabber.
Definition at line 87 of file main.c.
Global variable for the window width.
Width of the window (can be resized at runtime)
Shared with the grabber.
Definition at line 93 of file main.c.
Global variable for the X window id.
X Window ID
Definition at line 103 of file main.c.