nvjpeg
copied
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions
22 lines
473 B
22 lines
473 B
#include <iostream>
|
|
#include <pybind11/embed.h>
|
|
#include "python_nvjpeg_decoder.h"
|
|
|
|
|
|
int main() {
|
|
py::scoped_interpreter guard{};
|
|
NVJpegDecoder::PythonDecoder decoder;
|
|
if (!decoder.Init()) {
|
|
std::cout << "Init Failed" << std::endl;
|
|
return -1;
|
|
}
|
|
std::cout << 1 << std::endl;;
|
|
py::list data;
|
|
std::cout << 2 << std::endl;;
|
|
for (int i = 0; i < 10; i++) {
|
|
std::cout << i << ' ';
|
|
data.append(i);
|
|
}
|
|
decoder.BatchDecode(data);
|
|
return 0;
|
|
}
|