Beatmup
converter.cpp File Reference
#include "../context.h"
#include "../bitmap/converter.h"
#include "../bitmap/bitmap_access.h"
#include "../bitmap/mask_bitmap_access.h"
#include "../exception.h"
#include <algorithm>
#include <cstring>

Go to the source code of this file.

Macros

#define CALL_CONVERT_AND_RETURN(IN_T, OUT_T)    convertBlock < IN_T, OUT_T >(*input, *output, outX, outY, nPix); return;
 

Functions

template<class in_t , class out_t >
void convertBlock (AbstractBitmap &input, AbstractBitmap &output, int startx, int starty, msize nPix)
 

Macro Definition Documentation

◆ CALL_CONVERT_AND_RETURN

#define CALL_CONVERT_AND_RETURN (   IN_T,
  OUT_T 
)     convertBlock < IN_T, OUT_T >(*input, *output, outX, outY, nPix); return;

Function Documentation

◆ convertBlock()

template<class in_t , class out_t >
void convertBlock ( AbstractBitmap input,
AbstractBitmap output,
int  startx,
int  starty,
msize  nPix 
)
inline

Definition at line 30 of file converter.cpp.

30  {
31  in_t in(input, startx, starty);
32  out_t out(output, startx, starty);
33  for (msize n = 0; n < nPix; ++n, in++, out++)
34  out = in();
35 }
uint32_t msize
memory size
Definition: basic_types.h:30
JNIEnv jlong jint out
int n