Classes | Defines | Functions | Variables
screen-capture.cpp File Reference
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <math.h>
#include <err.h>
#include <stdbool.h>
#include <sys/time.h>
#include <time.h>
#include <signal.h>
#include <termios.h>
#include <pthread.h>
#include <linux/input.h>
#include <sys/un.h>
#include <sys/socket.h>
#include "libinline.h"
#include "libcutils.h"
#include "libgui.h"
Include dependency graph for screen-capture.cpp:

Go to the source code of this file.

Classes

struct  ASC

Defines

#define ABORT(fmt, arg...)   ({_LOG(fmt ". Now exit", ##arg); exit(0);})
#define ABORT_ERRNO(fmt, arg...)   ({_LOG(fmt " [errno %d(%s)] Now exit", errno, strerror(errno), ##arg); exit(0);})
#define LOG(fmt, arg...)   ({static bool __logged=false; if (needLog||!__logged){_LOG("%s" fmt "%s", needLog?"":"--------rare case--------", ##arg, needLog?"":"\n\n");__logged=true;}})
#define LOGI(fmt, arg...)   LOG("--------" fmt "\n\n", ##arg)

Functions

static void _LOG (const char *format,...)
void asc_capture (ASC *asc)
static void chkDev ()
static void create_cmd_socket_server ()
static void create_touch_socket_server ()
static void * thread_cmd_socket_server (void *thd_param)
static void * thread_touch_socket_server (void *thd_param)

Variables

static char * blackscreen = NULL
static int blackscreen_extra_count = 0
static Condition cond
static int fb
static bool isFirstTime = true
static bool isPaused = false
static bool isScreenOff = false
static size_t lastMapSize
static char * mapbase
static Mutex mutex
static bool needLog = true
static int touch_dev_fd = -1

Define Documentation

#define ABORT (   fmt,
  arg... 
)    ({_LOG(fmt ". Now exit", ##arg); exit(0);})

Definition at line 43 of file screen-capture.cpp.

#define ABORT_ERRNO (   fmt,
  arg... 
)    ({_LOG(fmt " [errno %d(%s)] Now exit", errno, strerror(errno), ##arg); exit(0);})

Definition at line 44 of file screen-capture.cpp.

#define LOG (   fmt,
  arg... 
)    ({static bool __logged=false; if (needLog||!__logged){_LOG("%s" fmt "%s", needLog?"":"--------rare case--------", ##arg, needLog?"":"\n\n");__logged=true;}})

Definition at line 41 of file screen-capture.cpp.

#define LOGI (   fmt,
  arg... 
)    LOG("--------" fmt "\n\n", ##arg)

Definition at line 42 of file screen-capture.cpp.


Function Documentation

static void _LOG ( const char *  format,
  ... 
) [static]

Definition at line 46 of file screen-capture.cpp.

void asc_capture ( ASC asc)

Definition at line 314 of file screen-capture.cpp.

static void chkDev ( ) [static]

Definition at line 74 of file screen-capture.cpp.

static void create_cmd_socket_server ( ) [static]

Definition at line 216 of file screen-capture.cpp.

static void create_touch_socket_server ( ) [static]

Definition at line 256 of file screen-capture.cpp.

static void* thread_cmd_socket_server ( void *  thd_param) [static]

Definition at line 133 of file screen-capture.cpp.

static void* thread_touch_socket_server ( void *  thd_param) [static]

Definition at line 185 of file screen-capture.cpp.


Variable Documentation

char* blackscreen = NULL [static]

Definition at line 66 of file screen-capture.cpp.

int blackscreen_extra_count = 0 [static]

Definition at line 67 of file screen-capture.cpp.

Condition cond [static]

Definition at line 70 of file screen-capture.cpp.

int fb [static]

Definition at line 309 of file screen-capture.cpp.

bool isFirstTime = true [static]

Definition at line 72 of file screen-capture.cpp.

bool isPaused = false [static]

Definition at line 64 of file screen-capture.cpp.

bool isScreenOff = false [static]

Definition at line 65 of file screen-capture.cpp.

size_t lastMapSize [static]

Definition at line 311 of file screen-capture.cpp.

char* mapbase [static]

Definition at line 310 of file screen-capture.cpp.

Mutex mutex [static]

Definition at line 69 of file screen-capture.cpp.

bool needLog = true [static]

Definition at line 40 of file screen-capture.cpp.

int touch_dev_fd = -1 [static]

Definition at line 183 of file screen-capture.cpp.



dji_ronin
Author(s):
autogenerated on Sat Jun 8 2019 20:15:32