chenke
2017-07-27 bf74ac0583bc8102654cd04e7389224419f3ba90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __CaptureCamera_H__
#define __CaptureCamera_H__
 
#include <PipeLine.h>
#include <PL_RTSPClient.h>
#include <PL_AndroidMediaCodecDecoder.h>
#include <PL_AndroidSurfaceViewRender.h>
#include <PL_SensetimeFaceTrackMitiTrd.h>
#include <PL_Paint.h>
#include <PL_Queue.h>
 
//#include "looper.h"
#include <android/native_window_jni.h>
#include <media/NdkMediaCodec.h>
 
#include <pthread.h>
#include <jni.h>
#include "FaceCache.h"
 
class CaptureCamera
{
public:
    PipeLine* pipeLine;
    void* windowRender;
    pthread_t live_thid;
    bool running;
    std::string cameraUri;
 
    CaptureCamera();
    ~CaptureCamera();
 
    bool start();
    void stop();
    bool getImage(std::vector<NativeImgIdx>& imgIdxes, uint8_t* buffImg, size_t& buffImgMaxSize);
};
 
#endif