
#include <string.h>#include <stdio.h>#include <stdlib.h>#include <cerrno>#include <fcntl.h>#include <sys/ioctl.h>#include <sys/mman.h>#include <sys/stat.h>#include <unistd.h>#include <sys/time.h>#include <linux/videodev.h>#include <linux/videodev2.h>#include <linux/fb.h>#include <asm-arm/arch-omap/omapfb.h>#include <X11/Xlib.h>#include <X11/Xutil.h>#include "Envision/env_config.h"#include "Envision/env_alloc.h"#include "Envision/env_c_math_ops.h"#include "Envision/env_stdio_interface.h"#include "Envision/env_image.h"#include "Envision/env_image_ops.h"#include "Envision/env_log.h"#include "Envision/env_visual_cortex.h"#include "Envision/env_params.h"#include <pthread.h>#include "Envision/env_alloc.c"#include "Envision/env_c_math_ops.c"#include "Envision/env_stdio_interface.c"#include "Envision/env_image.c"#include "Envision/env_image_ops.c"#include "Envision/env_log.c"#include "Envision/env_visual_cortex.c"#include "Envision/env_params.c"#include "Envision/env_channel.c"#include "Envision/env_math.c"#include "Envision/env_motion_channel.c"#include "Envision/env_pyr.c"#include "Image/font6x10.h"#include <libosso.h>
Go to the source code of this file.
Defines | |
| #define | INT_IS_32_BITS 1 |
| #define | LONG_IS_32_BITS 1 |
| #define | FONTW 6 |
| #define | FONTH 10 |
| #define | LINFO printf("\n")&&printf |
| #define | LFATAL printf("\n")&&printf |
| #define | PLFATAL printf("\n")&&printf |
| #define | PLERROR printf("\n")&&printf |
| #define | GRABDEV "/dev/video0" |
| #define | GRABNBUF 1 |
| #define | GRABW 320 |
| #define | GRABH 240 |
| #define | HRES 800 |
| #define | VRES 480 |
| #define | BPP 16 |
| #define | BCOL intg16(0x3FFF) |
| #define | TCOL intg16(0x3F3F) |
| #define | TCOL2 intg16(0xFF3F) |
| #define | SCOL intg16(0x3F30) |
| #define | OMAPFB_FORMAT_FLAG_TEARSYNC 0x0200 |
| #define | OMAPFB_FORMAT_FLAG_FORCE_VSYNC 0x0400 |
Functions | |
| static void * | malloc_thunk (env_size_t n) |
| void | draw_rect (intg16 *buf, const int x, const int y, const int w, const int h, const intg16 col) |
| void | draw_filled_rect (intg16 *buf, const int x, const int y, const int w, const int h, const intg16 col) |
| void | write_text (intg16 *buf, const char *txt, int x0, int y0, const intg16 col) |
| void | draw_map (intg16 *buf, const env_image *img, const int xoff, const int yoff, const env_size_t scale) |
| void | print_help (intg16 *buf, const bool doit) |
| void | print_help2 (intg16 *buf, const bool doit) |
| int | main (int argc, char **argv) |
simple Maemo saliency app to run on the Nokia N810
Definition in file saliency.C.
1.6.3