ddt 1.4.0
 
Loading...
Searching...
No Matches
CplImageView.cpp File Reference

Python bindings for cpl_image buffer access via raw pointer. More...

#include <cpl_image.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <cstdint>
#include <cstring>

Classes

class  CplImageView
 

Functions

template<typename T>
pybind11::buffer_info Define2DPyBuffer (const size_t height, const size_t width, void *data_ptr)
 
pybind11::buffer_info Define2DPyBufferDecoder (const size_t height, const size_t width, void *data_ptr, cpl_type type)
 
 PYBIND11_MODULE (CplImageView, m)
 

Detailed Description

Python bindings for cpl_image buffer access via raw pointer.

Function Documentation

◆ Define2DPyBuffer()

template<typename T>
pybind11::buffer_info Define2DPyBuffer ( const size_t height,
const size_t width,
void * data_ptr )

◆ Define2DPyBufferDecoder()

pybind11::buffer_info Define2DPyBufferDecoder ( const size_t height,
const size_t width,
void * data_ptr,
cpl_type type )

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( CplImageView ,
m  )