2012-06-21 22:50:05 +08:00
|
|
|
#ifndef __IOPENCV_ENGINE_H__
|
|
|
|
#define __IOPENCV_ENGINE_H__
|
|
|
|
|
|
|
|
#include <binder/IInterface.h>
|
|
|
|
#include <binder/Parcel.h>
|
|
|
|
#include <utils/String16.h>
|
2012-11-22 16:39:06 +08:00
|
|
|
#include "EngineCommon.h"
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
enum EngineMethonID
|
|
|
|
{
|
|
|
|
OCVE_GET_ENGINE_VERSION = 1,
|
|
|
|
OCVE_GET_LIB_PATH_BY_VERSION = 2,
|
|
|
|
OCVE_INSTALL_VERSION = 3,
|
|
|
|
OCVE_GET_LIB_LIST = 4,
|
|
|
|
};
|
|
|
|
|
|
|
|
using namespace android;
|
|
|
|
|
|
|
|
class IOpenCVEngine: public android::IInterface
|
|
|
|
{
|
|
|
|
public:
|
2012-10-17 07:18:30 +08:00
|
|
|
|
2012-06-21 22:50:05 +08:00
|
|
|
DECLARE_META_INTERFACE(OpenCVEngine)
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual int GetVersion() = 0;
|
|
|
|
virtual android::String16 GetLibPathByVersion(android::String16 version) = 0;
|
|
|
|
virtual android::String16 GetLibraryList(android::String16 version) = 0;
|
2012-10-17 07:18:30 +08:00
|
|
|
virtual bool InstallVersion(android::String16 version) = 0;
|
2012-06-21 22:50:05 +08:00
|
|
|
};
|
|
|
|
|
2013-08-21 21:26:54 +08:00
|
|
|
#endif
|