-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathreadfacevmd.h
More file actions
27 lines (21 loc) · 884 Bytes
/
Copy pathreadfacevmd.h
File metadata and controls
27 lines (21 loc) · 884 Bytes
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
// -*- C++ -*-
// readfacevmd - reads facial expression from photo / movie and generate a VMD motion file.
#ifndef READFACEVMD_H
#define READFACEVMD_H
#include <string>
#include <vector>
#include "VMD.h"
#ifdef RFV_USE_DLL
#ifdef RFV_DLL_EXPORT
#define RFV_DLL_DECL extern "C" __declspec(dllexport)
#else // ifdef RFV_DLL_EXPORT
#define RFV_DLL_DECL extern "C" __declspec(dllimport)
#endif // ifdef RFV_DLL_EXPORT
#else // ifdef RFV_USE_DLL
#define RFV_DLL_DECL
#endif // ifdef RFV_USE_DLL
void add_morph_frame(vector<VMD_Morph>& morph_vec, std::string name, std::uint32_t frame_number, float weight);
RFV_DLL_DECL int read_face_vmd(const std::string& image_file_name, const std::string& vmd_file_name,
float cutoff_freq, float threshold_pos, float threshold_rot, float threshold_morph,
const std::string& nameconf_file_name);
#endif // ifndef READFACEVMD_H