AliyunXianyuFaceMap
Deprecated
deprecated
@interface AliyunXianyuFaceMap : NSObject
/****
Gets the size of the texture after rendering.
* @param width The width of the texture.
* @param height The height of the texture.
*/
- (id)initWithOutputWidth:(int)width height:(int)height;
/****
* Sets the TransformMatrix object.
* @param fm float[16]
* @param texture_asp The aspect ratio of the texture.
*/
- (void)setTransforamMatrix:(float*) fm texture_asp:(float)texture_asp;
/****
* Adds a sticker.
* The sticker id must be a unique value greater than 1,000.
* @param vid The id of the sticker to be added.
* @param dongtu_dir The absolute path of the sticker.
* @param duration The display duration of the sticker in microseconds.
*/
- (int)addGif:(int)vid path:(char const *)dongtu_dir duration:(int64_t)duration;
/****
* Deletes a sticker.
* @param vid The id of the sticker to be deleted.
*/
- (void)deleteGif:(int)vid;
/****
* Sets facial data.
* @param vid The sticker id.
* @param face [left_eye_x, left_eye_y, right_eye_x, right_eye_y,
* mouth_x, mouth_y]
* @param size
*/
- (void)setFace:(int)vid face:(float *)face size:(int)size;
/****
* Renders a texture.
* @param texture_id The id of the texture to be rendered.
* @return The texture id after rendering.
*/
- (int)render:(int)texture_id;
/****
Releases resources.
*/
- (void)destory;
@end
Undocumented
-
* Gets the size of the texture after rendering.
- - parameter: width The width of the texture.
- - parameter: height The height of the texture.
Declaration
Objective-C
- (id)initWithOutputWidth:(int)width height:(int)height;
-
Sets the TransformMatrix object.
Declaration
Objective-C
- (void)setTransforamMatrix:(float *)fm texture_asp:(float)texture_asp;
Parameters
fm
float[16]
texture_asp
The aspect ratio of the texture.
-
Adds a sticker. The sticker id must be a unique value greater than 1,000.
Declaration
Objective-C
- (int)addGif:(int)vid path:(const char *)dongtu_dir duration:(int64_t)duration;
Parameters
vid
The id of the sticker to be added.
dongtu_dir
The absolute path of the sticker.
duration
The display duration of the sticker in microseconds.
-
Deletes a sticker.
Declaration
Objective-C
- (void)deleteGif:(int)vid;
Parameters
vid
The id of the sticker to be deleted.
-
Sets facial data.
Declaration
Objective-C
- (void)setFace:(int)vid face:(float *)face size:(int)size;
Parameters
vid
The sticker id.
face
[left_eye_x, left_eye_y, right_eye_x, right_eye_y, mouth_x, mouth_y]
size
-
Renders a texture.
Declaration
Objective-C
- (int)render:(int)texture_id;
Parameters
texture_id
The id of the texture to be rendered.
Return Value
The texture id after rendering.
-
* Releases resources.
Declaration
Objective-C
- (void)destory;