From 5dad9e2336c4bf37b1f56485690f8a082e3e1e0a Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 2 Dec 2013 13:41:42 -0500 Subject: [PATCH] janus tweaks --- openbr/janus | 2 +- openbr/janus.cpp | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/openbr/janus b/openbr/janus index a0cc3a0..734353f 160000 --- a/openbr/janus +++ b/openbr/janus @@ -1 +1 @@ -Subproject commit a0cc3a0d217320152bab8472afbbdadeb0cd762c +Subproject commit 734353f82cfb4754f1da40bc69370bcee33b929b diff --git a/openbr/janus.cpp b/openbr/janus.cpp index 21937b7..e7073ca 100644 --- a/openbr/janus.cpp +++ b/openbr/janus.cpp @@ -19,28 +19,29 @@ janus_error janus_initialize(const char *sdk_path, const char *model_file) return JANUS_SUCCESS; } -void janus_finalize() +janus_error janus_finalize() { br::Context::finalize(); + return JANUS_SUCCESS; } -janus_error janus_initialize_template(janus_partial_template *partial_template) +janus_error janus_initialize_template(janus_incomplete_template *incomplete_template) { - (void) partial_template; + (void) incomplete_template; return JANUS_SUCCESS; } -janus_error janus_add_image(const janus_image image, const janus_attribute_list attributes, janus_partial_template partial_template) +janus_error janus_add_image(const janus_image image, const janus_attribute_list attributes, janus_incomplete_template incomplete_template) { (void) image; (void) attributes; - (void) partial_template; + (void) incomplete_template; return JANUS_SUCCESS; } -janus_error janus_finalize_template(janus_partial_template partial_template, janus_template template_, size_t *bytes) +janus_error janus_finalize_template(janus_incomplete_template incomplete_template, janus_template template_, size_t *bytes) { - (void) partial_template; + (void) incomplete_template; (void) template_; *bytes = 0; return JANUS_SUCCESS; -- libgit2 0.21.4