Reels
Loading...
Searching...
No Matches
reels_test.h
Go to the documentation of this file.
1/* Mercury-Reels
2
3 Copyright 2023 Banco Bilbao Vizcaya Argentaria, S.A.
4
5 This product includes software developed at
6
7 BBVA (https://www.bbva.com/)
8
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20*/
21#include "reels.h"
22
23#if defined TEST
24#ifndef INCLUDED_CATCH2
25#define INCLUDED_CATCH2
26
27#include "catch.hpp"
28
29#endif
30
31using namespace reels;
32
33extern char b64chars[];
34char *image_block_as_string(uint8_t *p_in);
36bool string_as_image_block(ImageBlock &blk, char *p_in);
37String python_set_as_string(char *p_char);
38
39#endif
The namespace including everything to simplify using Reels in a c++ application,.
Definition: reels.cpp:35
std::string String
A dynamically allocated c++ string.
Definition: reels.h:66
char * image_block_as_string(uint8_t *p_in)
Serializes a complete binary block (fixed size) as a base-64 string which is Python compatible.
Definition: reels.cpp:1600
char b64chars[]
Definition: reels.cpp:1589
bool string_as_image_block(ImageBlock &blk, char *p_in)
Deserializes a base-64 string which is Python compatible as a complete binary ImageBlock (fixed size)...
Definition: reels.cpp:1642
An generic block structure to store object state in a Python-friendly way.
Definition: reels.h:78