#include <unistd.h>#include <fcntl.h>#include <sys/ioctl.h>#include <sys/mman.h>#include <pthread.h>#include "SDL/SDL.h"#include "SDL/SDL_ttf.h"#include "SDL/SDL_gfxPrimitives.h"#include "SDL/SDL_rotozoom.h"#include "SDL/SDL_image.h"#include <smpeg/smpeg.h>#include <linux/videodev.h>#include <string>Include dependency graph for funcoesHAIRCAPTURE.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Namespaces | |
| namespace | HAIR |
Data Structures | |
| class | CAPTURE |
| SUMMARY.....: Class for manipulates video capture. More... | |
Defines | |
| #define | DEBUG printf(" > Debug: %s line: %d \n", __FILE__, __LINE__) |
| #define | LIBNAME "libNETi::CAPTURE" |
| #define | MAX_BUTTON 12 |
| #define | SVHS 2 |
| #define | VERSAOCAPTURE "0.99-20060816" |
| #define | VHS 1 |
| #define | VIDEO_MODE_PALM 4 |
Enumerations | |
| enum | TypeImage { JPG, PPM } |
| enum | TypeSurface { DRAW, TEXTS, ZOOM, VIDEO } |
Functions | |
| char * | BaseName (char *lcharFULLNAME) |
| Extrac Base Name. | |
| bool | FileExist (char *lcharFILE) |
| Test for FileExist. | |
| std::string | ToString (float Cnumero) |
| Convert a float number in string. | |
| std::string | ToString (int Cnumero) |
| Convert an integer number in string. | |
| #define DEBUG printf(" > Debug: %s line: %d \n", __FILE__, __LINE__) |
Definition at line 14 of file funcoesHAIRCAPTURE.h.
| #define LIBNAME "libNETi::CAPTURE" |
Definition at line 4 of file funcoesHAIRCAPTURE.h.
| #define MAX_BUTTON 12 |
| #define SVHS 2 |
Definition at line 7 of file funcoesHAIRCAPTURE.h.
| #define VERSAOCAPTURE "0.99-20060816" |
Definition at line 5 of file funcoesHAIRCAPTURE.h.
| #define VHS 1 |
Definition at line 6 of file funcoesHAIRCAPTURE.h.
| #define VIDEO_MODE_PALM 4 |
Definition at line 11 of file funcoesHAIRCAPTURE.h.
| enum TypeImage |
| enum TypeSurface |
| char* BaseName | ( | char * | lcharFULLNAME | ) |
Extrac Base Name.
Definition at line 9 of file funcoesNETi.cpp.
00010 { 00011 char *base_name = 0; 00012 if((base_name = strrchr(lcharFULLNAME,'/'))!=0) 00013 ++base_name; 00014 else 00015 base_name = (char *)lcharFULLNAME; 00016 return base_name; 00017 }
| bool FileExist | ( | char * | lcharFILE | ) |
Test for FileExist.
Definition at line 37 of file funcoesHAIRCAPTURE.cpp.
00038 { 00039 bool lboolRETORNO = true; 00040 00041 struct stat lstatFILE; 00042 00043 if ( stat(lcharFILE,&lstatFILE)) 00044 { 00045 lboolRETORNO = false; 00046 printf(" > File not exist! \n"); 00047 } 00048 00049 if(lstatFILE.st_size<=0) 00050 { 00051 lboolRETORNO = false; 00052 printf(" > File error!"); 00053 } 00054 00055 return lboolRETORNO; 00056 }
| std::string ToString | ( | float | Cnumero | ) |
Convert a float number in string.
Definition at line 22 of file funcoesHAIRCAPTURE.cpp.
00023 { 00024 char sz[101]; 00025 sprintf(sz, "%G", Cnumero); 00026 std::string lreturn(sz); 00027 00028 return lreturn; 00029 }
| std::string ToString | ( | int | Cnumero | ) |
Convert an integer number in string.
Definition at line 14 of file funcoesHAIRCAPTURE.cpp.
00015 { 00016 char sz[101]; 00017 sprintf(sz, "%d", Cnumero); 00018 std::string lreturn(sz); 00019 return lreturn; 00020 }
1.5.0-1