Banuba SDK
Loading...
Searching...
No Matches
renderer_common.hpp
Go to the documentation of this file.
1/// \file
2/// \addtogroup RendererCommon
3/// @{
4///
5// AUTOGENERATED FILE - DO NOT MODIFY!
6// This file was generated by Djinni from renderer_common.djinni
7
8#pragma once
9
10#include <bnb/types/full_image.hpp>
11#include <bnb/utils/defs.hpp>
12#include <cstdint>
13#include <vector>
14
15namespace bnb { namespace interfaces {
16
17struct bnb_morph_result;
18
19class BNB_EXPORT renderer_common {
20public:
21 virtual ~renderer_common() {}
22
23 /** return rgba image, src_image can be rgb or rgba */
24 static ::bnb::full_image_t morph_mesh(::bnb::full_image_t src_image, const std::vector<float> & original_verts, const std::vector<float> & morphed_verts, const std::vector<int32_t> & indices, const std::vector<float> & mvp);
25
26 /** return rgba image, src_image can be rgb or rgba */
27 static bnb_morph_result morph_mesh_landmarks(::bnb::full_image_t src_image, const std::vector<float> & src_landmarks, const std::vector<float> & original_verts, const std::vector<float> & morphed_verts, const std::vector<int32_t> & indices, const std::vector<float> & mvp);
28};
29
30} } // namespace bnb::interfaces
31/// @}
32
basis is the base basis: for y/rgb basis use .basis or get_subchannel_basis_transform(1); for uv basi...
::bnb::full_image_t morph_mesh(::bnb::full_image_t src_image, const std::vector< float > &original_verts, const std::vector< float > &morphed_verts, const std::vector< int32_t > &indices, const std::vector< float > &mvp)
return rgba image, src_image can be rgb or rgba
static bnb_morph_result morph_mesh_landmarks(::bnb::full_image_t src_image, const std::vector< float > &src_landmarks, const std::vector< float > &original_verts, const std::vector< float > &morphed_verts, const std::vector< int32_t > &indices, const std::vector< float > &mvp)
return rgba image, src_image can be rgb or rgba