Beatmup
wrapper_imag.cpp File Reference
#include "wrapper.h"
#include "include/Beatmup_Bitmap.h"
#include "include/Beatmup_Android_ExternalBitmap.h"
#include "include/Beatmup_Rendering_Scene.h"
#include "include/Beatmup_Rendering_SceneRenderer.h"
#include "include/Beatmup_Shading_ImageShader.h"
#include "include/Beatmup_Shading_ShaderApplicator.h"
#include "include/Beatmup_Imaging_BinaryOperation.h"
#include "include/Beatmup_Imaging_ColorMatrix.h"
#include "include/Beatmup_Imaging_FloodFill.h"
#include "include/Beatmup_Imaging_Filters_PixelwiseFilter.h"
#include "include/Beatmup_Imaging_Filters_ColorMatrixTransform.h"
#include "include/Beatmup_Imaging_Filters_Sepia.h"
#include "include/Beatmup_Imaging_Resampler.h"
#include "android/context.h"
#include "android/bitmap.h"
#include "android/external_bitmap.h"
#include <core/color/matrix.h>
#include <core/context.h>
#include <core/contours/contours.h>
#include <core/exception.h>
#include <core/filters/pixelwise_filter.h>
#include <core/filters/color_matrix.h>
#include <core/filters/sepia.h>
#include <core/geometry.h>
#include <core/gpu/swapper.h>
#include <core/bitmap/internal_bitmap.h>
#include <core/bitmap/resampler.h>
#include <core/bitmap/crop.h>
#include <core/bitmap/operator.h>
#include <core/bitmap/tools.h>
#include <core/masking/flood_fill.h>
#include <core/scene/renderer.h>
#include <core/shading/shader_applicator.h>

Go to the source code of this file.

Functions

 JNIMETHOD (jlong, newScene, Java_Beatmup_Rendering_Scene, newScene)(JNIEnv *jenv
 Creates new scene. More...
 
return() jlong (new Beatmup::Scene())
 
 JNIMETHOD (jlong, newSceneLayer, Java_Beatmup_Rendering_Scene, newSceneLayer)(JNIEnv *jenv
 Creates new layer containing a scene. More...
 
 BEATMUP_OBJ (Beatmup::Scene, subscene, jSubscene)
 
 BEATMUP_OBJ (Beatmup::Scene, scene, hScene)
 
 BEATMUP_REFERENCE (jLayer, newbie)
 
return() jlong (newbie)
 
 JNIMETHOD (jlong, newBitmapLayer, Java_Beatmup_Rendering_Scene, newBitmapLayer)(JNIEnv *jenv
 Creates new bitmap layer in a given scene. More...
 
 JNIMETHOD (jlong, newMaskedBitmapLayer, Java_Beatmup_Rendering_Scene, newMaskedBitmapLayer)(JNIEnv *jenv
 Creates new masked bitmap layer in a given scene. More...
 
 JNIMETHOD (jlong, newShapedBitmapLayer, Java_Beatmup_Rendering_Scene, newShapedBitmapLayer)(JNIEnv *jenv
 Creates new shaped bitmap layer in a given scene. More...
 
 JNIMETHOD (jlong, newShadedBitmapLayer, Java_Beatmup_Rendering_Scene, newShadedBitmapLayer)(JNIEnv *jenv
 
 JNIMETHOD (void, deleteLayers, Java_Beatmup_Rendering_Scene, deleteLayers)(JNIEnv *jenv
 Removes global references. More...
 
 BEATMUP_OBJ (Beatmup::Scene, scene, jScene)
 
 for (int i=0;i< n;i++)
 
 JNIMETHOD (jint, getLayerCount, Java_Beatmup_Rendering_Scene, getLayerCount)(JNIEnv *jenv
 Returns number of layers. More...
 
return scene getLayerCount ()
 
 JNIMETHOD (jobject, getLayerByIndex, Java_Beatmup_Rendering_Scene, getLayerByIndex)(JNIEnv *jenv
 Retrieves layer by its index. More...
 
return $pool getJavaReferencescene (index)
 
 JNIMETHOD (jobject, getLayerByName, Java_Beatmup_Rendering_Scene, getLayerByName)(JNIEnv *jenv
 Retrieves a layer by name. More...
 
 BEATMUP_STRING (name)
 
 if (!layer) return NULL
 
return $pool getJavaReference (layer)
 
 JNIMETHOD (jobject, getLayerAtPoint, Java_Beatmup_Rendering_Scene, getLayerAtPoint)(JNIEnv *jenv
 
 JNIMETHOD (void, setLayerName, Java_Beatmup_Rendering_Scene, setLayerName)(JNIEnv *jenv
 Renames given layer. More...
 
 BEATMUP_OBJ (Beatmup::Scene::Layer, layer, hLayer)
 
layer setName (nameStr.c_str())
 
 JNIMETHOD (jstring, getLayerName, Java_Beatmup_Rendering_Scene, getLayerName)(JNIEnv *jenv
 Returns layer name. More...
 
return jenv NewStringUTF (layer->getName().c_str())
 
 JNIMETHOD (void, setLayerVisibility, Java_Beatmup_Rendering_Scene, setLayerVisibility)(JNIEnv *jenv
 
layer setVisible (visible==JNI_TRUE)
 
 JNIMETHOD (jboolean, getLayerVisibility, Java_Beatmup_Rendering_Scene, getLayerVisibility)(JNIEnv *jenv
 
return layer isVisible() ? JNI_TRUE JNIMETHOD (void, setLayerPhantomFlag, Java_Beatmup_Rendering_Scene, setLayerPhantomFlag)(JNIEnv *jenv
 Phantom layer mode management. More...
 
layer setPhantom (phantom==JNI_TRUE)
 
 JNIMETHOD (jboolean, getLayerPhantomFlag, Java_Beatmup_Rendering_Scene, getLayerPhantomFlag)(JNIEnv *jenv
 
return layer isPhantom() ? JNI_TRUE JNIMETHOD (void, setLayerTransform, Java_Beatmup_Rendering_Scene, setLayerTransform)(JNIEnv *jenv
 
mapping matrix setElements ((float) a11,(float) a12,(float) a21,(float) a22)
 
 JNIMETHOD (void, getLayerTransform, Java_Beatmup_Rendering_Scene, getLayerTransform)(JNIEnv *jenv
 
$pool factory setAffineMapping (jenv, layer->getMapping(), mapping)
 
 JNIMETHOD (void, setLayerX, Java_Beatmup_Rendering_Scene, setLayerX)(JNIEnv *jenv
 Changes layer horizontal position. More...
 
layer getMapping ().position.x = y
 
 JNIMETHOD (jfloat, getLayerX, Java_Beatmup_Rendering_Scene, getLayerX)(JNIEnv *jenv
 Returns layer horizontal position. More...
 
 JNIMETHOD (void, setLayerY, Java_Beatmup_Rendering_Scene, setLayerY)(JNIEnv *jenv
 Changes layer vertical position. More...
 
 JNIMETHOD (jfloat, getLayerY, Java_Beatmup_Rendering_Scene, getLayerY)(JNIEnv *jenv
 Returns layer vertical position. More...
 
 JNIMETHOD (jfloat, getLayerOrientation, Java_Beatmup_Rendering_Scene, getLayerOrientation)(JNIEnv *jenv
 Returns layer orientation in degrees. More...
 
 JNIMETHOD (void, setLayerCenterPos, Java_Beatmup_Rendering_Scene, setLayerCenterPos)(JNIEnv *jenv
 Sets layer center position. More...
 
layer getMapping().setCenterPosition(Beatmup JNIMETHOD (void, scaleLayer, Java_Beatmup_Rendering_Scene, scaleLayer)(JNIEnv *jenv
 
 JNIMETHOD (void, rotateLayer, Java_Beatmup_Rendering_Scene, rotateLayer)(JNIEnv *jenv
 
 JNIMETHOD (void, setBitmapLayerModulationColor, Java_Beatmup_Rendering_Scene, setBitmapLayerModulationColor)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Scene::BitmapLayer, layer, hLayer)
 
layer setModulationColor (Beatmup::pixfloat4(r, g, b, a))
 
 JNIMETHOD (void, getBitmapLayerModulationColor, Java_Beatmup_Rendering_Scene, getBitmapLayerModulationColor)(JNIEnv *jenv
 
$pool factory setColor (jenv, layer->getModulationColor(), jColor)
 
 JNIMETHOD (void, setBitmapLayerMaskPos, Java_Beatmup_Rendering_Scene, setBitmapLayerMaskPos)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Scene::CustomMaskedBitmapLayer, layer, hLayer)
 
 JNIMETHOD (void, scaleBitmapLayerMask, Java_Beatmup_Rendering_Scene, scaleBitmapLayerMask)(JNIEnv *jenv
 
layer getMaskMapping ().scale((float) factor
 
 JNIMETHOD (void, rotateBitmapLayerMask, Java_Beatmup_Rendering_Scene, rotateBitmapLayerMask)(JNIEnv *jenv
 
 JNIMETHOD (void, skewBitmapLayerMask, Java_Beatmup_Rendering_Scene, skewBitmapLayerMask)(JNIEnv *jenv
 
 JNIMETHOD (void, setBitmapLayerBgColor, Java_Beatmup_Rendering_Scene, setBitmapLayerBgColor)(JNIEnv *jenv
 
layer setBackgroundColor (Beatmup::pixfloat4(r, g, b, a))
 
 JNIMETHOD (void, getBitmapLayerBgColor, Java_Beatmup_Rendering_Scene, getBitmapLayerBgColor)(JNIEnv *jenv
 
 JNIMETHOD (void, setBitmapLayerImageTransform, Java_Beatmup_Rendering_Scene, setBitmapLayerImageTransform)(JNIEnv *jenv
 
 JNIMETHOD (void, getBitmapLayerImageTransform, Java_Beatmup_Rendering_Scene, getBitmapLayerImageTransform)(JNIEnv *jenv
 
 JNIMETHOD (void, setBitmapLayerMaskTransform, Java_Beatmup_Rendering_Scene, setBitmapLayerMaskTransform)(JNIEnv *jenv
 
 JNIMETHOD (void, getBitmapLayerMaskTransform, Java_Beatmup_Rendering_Scene, getBitmapLayerMaskTransform)(JNIEnv *jenv
 
 JNIMETHOD (void, setBitmapLayerBitmap, Java_Beatmup_Rendering_Scene, setBitmapLayerBitmap)(JNIEnv *jenv
 
layer setBitmap (bitmap)
 
 JNIMETHOD (void, setMaskedBitmapLayerMask, Java_Beatmup_Rendering_Scene, setMaskedBitmapLayerMask)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Scene::MaskedBitmapLayer, layer, hLayer)
 
layer setMask (mask)
 
 JNIMETHOD (void, setShapedBitmapLayerCornerRadius, Java_Beatmup_Rendering_Scene, setShapedBitmapLayerCornerRadius)(JNIEnv *jenv
 Sets shaped bitmap mask corners radius. More...
 
 BEATMUP_OBJ (Beatmup::Scene::ShapedBitmapLayer, layer, hLayer)
 
layer setCornerRadius ((float) radius)
 
 JNIMETHOD (jfloat, getShapedBitmapLayerCornerRadius, Java_Beatmup_Rendering_Scene, getShapedBitmapLayerCornerRadius)(JNIEnv *jenv
 
 return (jfloat) layer -> getCornerRadius()
 
 JNIMETHOD (void, setShapedBitmapLayerBorderWidth, Java_Beatmup_Rendering_Scene, setShapedBitmapLayerBorderWidth)(JNIEnv *jenv
 
layer setBorderWidth ((float) width)
 
 JNIMETHOD (jfloat, getShapedBitmapLayerBorderWidth, Java_Beatmup_Rendering_Scene, getShapedBitmapLayerBorderWidth)(JNIEnv *jenv
 
 JNIMETHOD (void, setShapedBitmapLayerSlopeWidth, Java_Beatmup_Rendering_Scene, setShapedBitmapLayerSlopeWidth)(JNIEnv *jenv
 
layer setSlopeWidth ((float) width)
 
 JNIMETHOD (jfloat, getShapedBitmapLayerSlopeWidth, Java_Beatmup_Rendering_Scene, getShapedBitmapLayerSlopeWidth)(JNIEnv *jenv
 
 JNIMETHOD (void, setShapedBitmapLayerInPixelsSwitch, Java_Beatmup_Rendering_Scene, setShapedBitmapLayerInPixelsSwitch)(JNIEnv *jenv
 
layer setInPixels (inPixels==JNI_TRUE)
 
 JNIMETHOD (jboolean, getShapedBitmapLayerInPixelsSwitch, Java_Beatmup_Rendering_Scene, getShapedBitmapLayerInPixelsSwitch)(JNIEnv *jenv
 
return layer getInPixels() ? JNI_TRUE JNIMETHOD (void, setShadedBitmapLayerShader, Java_Beatmup_Rendering_Scene, setShadedBitmapLayerShader)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Scene::ShadedBitmapLayer, layer, hLayer)
 
 BEATMUP_OBJ_OR_NULL (Beatmup::ImageShader, shader, jShader)
 
layer setShader (shader)
 
 JNIMETHOD (jlong, newSceneRenderer, Java_Beatmup_Rendering_SceneRenderer, newSceneRenderer)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Android::Context, ctx, jEnv)
 
 return (jlong) renderer
 
 JNIMETHOD (void, setOutput, Java_Beatmup_Rendering_SceneRenderer, setOutput)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::AbstractBitmap, bitmap, jBitmap)
 
 BEATMUP_OBJ (Beatmup::SceneRenderer, renderer, hRenderer)
 
renderer setOutput (bitmap)
 
 JNIMETHOD (void, resetOutput, Java_Beatmup_Rendering_SceneRenderer, resetOutput)(JNIEnv *jenv
 
renderer resetOutput ()
 
renderer setScene (scene)
 
 JNIMETHOD (void, setOutputMapping, Java_Beatmup_Rendering_SceneRenderer, setOutputMapping)(JNIEnv *jenv
 
renderer setOutputMapping ((Beatmup::SceneRenderer::OutputMapping) mapping)
 
 JNIMETHOD (jint, getOutputMapping, Java_Beatmup_Rendering_SceneRenderer, getOutputMapping)(JNIEnv *jenv
 
return renderer getOutputMapping ()
 
 JNIMETHOD (void, setOutputReferenceWidth, Java_Beatmup_Rendering_SceneRenderer, setOutputReferenceWidth)(JNIEnv *jenv
 
renderer setOutputReferenceWidth ((int) width)
 
 JNIMETHOD (jint, getOutputReferenceWidth, Java_Beatmup_Rendering_SceneRenderer, getOutputReferenceWidth)(JNIEnv *jenv
 
return renderer getOutputReferenceWidth ()
 
 JNIMETHOD (void, setOutputPixelsFetching, Java_Beatmup_Rendering_SceneRenderer, setOutputPixelsFetching)(JNIEnv *jenv
 
renderer setOutputPixelsFetching (fetch==JNI_TRUE)
 
 JNIMETHOD (jboolean, getOutputPixelsFetching, Java_Beatmup_Rendering_SceneRenderer, getOutputPixelsFetching)(JNIEnv *jenv
 
return renderer getOutputPixelsFetching() ? JNI_TRUE JNIMETHOD (void, setBackgroundBitmap, Java_Beatmup_Rendering_SceneRenderer, setBackgroundBitmap)(JNIEnv *jenv
 
renderer setBackgroundImage (bitmap)
 
 JNIMETHOD (jobject, pickLayer, Java_Beatmup_Rendering_SceneRenderer, pickLayer)(JNIEnv *jenv
 
 JNIMETHOD (jlong, newInternalBitmap, Java_Beatmup_Bitmap, newInternalBitmap)(JNIEnv *jenv
 Creates new internally managed bitmap. More...
 
 BEATMUP_OBJ (Beatmup::Context, ctx, jCtx)
 
$pool addJavaReference (jenv, jCtx, bitmap)
 
 JNIMETHOD (jlong, newNativeBitmap, Java_Beatmup_Bitmap, newNativeBitmap)(JNIEnv *jenv
 Creates new bitmap from Android bitmap object. More...
 
return(jlong) new Beatmup JNIMETHOD (jint, getWidth, Java_Beatmup_Bitmap, getWidth)(JNIEnv *jenv
 Returns bitmap width in pixels. More...
 
 BEATMUP_OBJ (Beatmup::AbstractBitmap, bitmap, hBitmap)
 
return bitmap getWidth ()
 
 JNIMETHOD (jint, getHeight, Java_Beatmup_Bitmap, getHeight)(JNIEnv *jenv
 Returns bitmap height in pixels. More...
 
return bitmap getHeight ()
 
 JNIMETHOD (jint, getPixelFormat, Java_Beatmup_Bitmap, getPixelFormat)(JNIEnv *jenv
 Returns bitmap pixel format. More...
 
return bitmap getPixelFormat ()
 
 JNIMETHOD (void, zero, Java_Beatmup_Bitmap, zero)(JNIEnv *jenv
 
bitmap zero ()
 
 JNIMETHOD (void, crop, Java_Beatmup_Bitmap, crop)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::AbstractBitmap, input, hInputBitmap)
 
 BEATMUP_OBJ (Beatmup::AbstractBitmap, output, hOutputBitmap)
 
crop setInput (input)
 
crop setOutput (output)
 
crop setCropRect (rect)
 
crop setOutputOrigin (outOrigin)
 
input getContext ().performTask(crop)
 
 JNIMETHOD (void, invert, Java_Beatmup_Bitmap, invert)(JNIEnv *jenv
 
 JNIMETHOD (jlong, newExternalImage, Java_Beatmup_Android_ExternalBitmap, newExternalImage)(JNIEnv *jenv
 
 JNIMETHOD (void, bind, Java_Beatmup_Android_ExternalBitmap, bind)(JNIEnv *jenv
 
bitmap bind (jenv, jobj)
 
 JNIMETHOD (void, notifyUpdate, Java_Beatmup_Android_ExternalBitmap, notifyUpdate)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Android::ExternalBitmap, bitmap, hBitmap)
 
bitmap notifyUpdate (width, height)
 
 JNIMETHOD (jlong, newBinaryOperation, Java_Beatmup_Imaging_BinaryOperation, newBinaryOperation)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (void, setOperand1, Java_Beatmup_Imaging_BinaryOperation, setOperand1)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::BitmapBinaryOperation, operation, hInstance)
 
operation setOperand1 (bitmap)
 
 JNIMETHOD (void, setOperand2, Java_Beatmup_Imaging_BinaryOperation, setOperand2)(JNIEnv *jenv
 
operation setOperand2 (bitmap)
 
 JNIMETHOD (void, setOutput, Java_Beatmup_Imaging_BinaryOperation, setOutput)(JNIEnv *jenv
 
 JNIMETHOD (void, setOperation, Java_Beatmup_Imaging_BinaryOperation, setOperation)(JNIEnv *jenv
 
operation setOperation ((Beatmup::BitmapBinaryOperation::Operation) op)
 
 JNIMETHOD (void, resetCrop, Java_Beatmup_Imaging_BinaryOperation, resetCrop)(JNIEnv *jenv
 
operation resetCrop ()
 
 JNIMETHOD (void, setCrop, Java_Beatmup_Imaging_BinaryOperation, setCrop)(JNIEnv *jenv
 
operation setCropSize (w, h)
 
operation setOp1Origin (Beatmup::IntPoint(op1x, op1y))
 
operation setOp2Origin (Beatmup::IntPoint(op2x, op2y))
 
operation setOutputOrigin (Beatmup::IntPoint(outx, outy))
 
 JNIMETHOD (void, getCrop, Java_Beatmup_Imaging_BinaryOperation, getCrop)(JNIEnv *jenv
 
$pool factory setIntPoint (jenv, operation->getCropWidth(), operation->getCropHeight(), size)
 
$pool factory setIntPoint (jenv, operation->getOp1Origin(), op1Origin)
 
$pool factory setIntPoint (jenv, operation->getOp2Origin(), op2Origin)
 
$pool factory setIntPoint (jenv, operation->getOutputOrigin(), outputOrigin)
 
 JNIMETHOD (jlong, newFloodFill, Java_Beatmup_Imaging_FloodFill, newFloodFill)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (void, setInput, Java_Beatmup_Imaging_FloodFill, setInput)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::FloodFill, floodFill, hInstance)
 
floodFill setInput (bitmap)
 
 JNIMETHOD (void, setOutput, Java_Beatmup_Imaging_FloodFill, setOutput)(JNIEnv *jenv
 
 JNIMETHOD (void, setMaskPos, Java_Beatmup_Imaging_FloodFill, setMaskPos)(JNIEnv *jenv
 
Beatmup::IntPoint p ((int) x,(int) y)
 
floodFill setMaskPos (p)
 
 JNIMETHOD (void, setTolerance, Java_Beatmup_Imaging_FloodFill, setTolerance)(JNIEnv *jenv
 
floodFill setTolerance ((float) tolerance)
 
 JNIMETHOD (void, setBorderPostprocessing, Java_Beatmup_Imaging_FloodFill, setBorderPostprocessing)(JNIEnv *jenv
 
floodFill setBorderPostprocessing ((Beatmup::FloodFill::BorderMorphology) op, hold, release)
 
 JNIMETHOD (void, setSeeds, Java_Beatmup_Imaging_FloodFill, setSeeds)(JNIEnv *jenv
 
floodFill setSeeds (xyPtr, count)
 
jenv ReleaseIntArrayElements (xy, xyPtr, JNI_ABORT)
 
 JNIMETHOD (void, setComputeContours, Java_Beatmup_Imaging_FloodFill, setComputeContours)(JNIEnv *jenv
 Enables / disables border contours computation. More...
 
floodFill setComputeContours (flag==JNI_TRUE)
 
 JNIMETHOD (jint, getContourCount, Java_Beatmup_Imaging_FloodFill, getContourCount)(JNIEnv *jenv
 
 return (jint) floodFill -> getContourCount()
 
 JNIMETHOD (jint, getContourPointCount, Java_Beatmup_Imaging_FloodFill, getContourPointCount)(JNIEnv *jenv
 
 BEATMUP_CATCH ({ return floodFill->getContour(n).getPointCount();})
 
 JNIMETHOD (jintArray, getContour, Java_Beatmup_Imaging_FloodFill, getContour)(JNIEnv *jenv
 Returns a layer border component (a contour) More...
 
 BEATMUP_CATCH ({ const Beatmup::IntegerContour2D &contour=floodFill->getContour(index);if(contour.getPointCount() > 0) { float stepLength2=step *step;unsigned int fragmentLength2=(unsigned int)(stepLength2+1);Beatmup::IntPoint prev=contour.getPoint(0);Beatmup::IntPoint p;for(int n=0;n< contour.getPointCount();n++) { p=contour.getPoint(n);fragmentLength2+=(p - prev).hypot2();if(fragmentLength2 >=stepLength2) { xy.push_back(p.x);xy.push_back(p.y);fragmentLength2=0;} prev=p;} if(fragmentLength2 > 0) { xy.push_back(p.x);xy.push_back(p.y);} } })
 
 for (auto e :xy) javaxy[pn++]
 
jenv ReleaseIntArrayElements (result, javaxy, 0)
 
 JNIMETHOD (jobject, getBoundingBox, Java_Beatmup_Imaging_FloodFill, getBoundingBox)(JNIEnv *jenv
 Returns mask bounding box. More...
 
return $pool factory makeIntRectangle (jenv, floodFill->getBounds())
 
 JNIMETHOD (void, setBitmaps, Java_Beatmup_Imaging_Filters_PixelwiseFilter, setInput)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Filters::PixelwiseFilter, filter, hInstance)
 
 BEATMUP_OBJ_OR_NULL (Beatmup::AbstractBitmap, input, jInputBitmap)
 
 JNIMETHOD (void, setBitmaps, Java_Beatmup_Imaging_Filters_PixelwiseFilter, setOutput)(JNIEnv *jenv
 
 BEATMUP_OBJ_OR_NULL (Beatmup::AbstractBitmap, output, jOutputBitmap)
 
 JNIMETHOD (jlong, newColorMatrixTransform, Java_Beatmup_Imaging_Filters_ColorMatrixTransform, newColorMatrixTransform)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (void, setFromMatrix, Java_Beatmup_Imaging_Filters_ColorMatrixTransform, setFromMatrix)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Filters::ColorMatrix, filter, hInst)
 
 BEATMUP_OBJ (Beatmup::Color::Matrix, mat, jMat)
 
filter getMatrix ()
 
 JNIMETHOD (void, assignToMatrix, Java_Beatmup_Imaging_Filters_ColorMatrixTransform, assignToMatrix)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Filters::ColorMatrix, filter, hInstance)
 
 BEATMUP_CATCH ({ filter->setCoefficients(out, bias, r, g, b, a);})
 
filter setHSVCorrection ((float) h,(float) s,(float) v)
 
filter setColorInversion (preservedColor,(float) s,(float) v)
 
 JNIMETHOD (void, setAllowIntegerApprox, Java_Beatmup_Imaging_Filters_ColorMatrixTransform, setAllowIntegerApprox)(JNIEnv *jenv
 
filter allowIntegerApproximations (allow==JNI_TRUE)
 
 JNIMETHOD (jboolean, allowIntegerApprox, Java_Beatmup_Imaging_Filters_ColorMatrixTransform, allowIntegerApprox)(JNIEnv *jenv
 
 return (jboolean) filter -> isIntegerApproximationsAllowed()
 
 JNIMETHOD (jlong, newSepia, Java_Beatmup_Imaging_Filters_Sepia, newSepia)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (jlong, newResampler, Java_Beatmup_Imaging_Resampler, newResampler)(JNIEnv *jenv
 
 return (JNIEnv *jenv, jobject, jlong hInstance, jobject jInput)
 
 BEATMUP_OBJ (Beatmup::BitmapResampler, resampler, hInstance)
 
 BEATMUP_OBJ_OR_NULL (Beatmup::AbstractBitmap, output, jOutput)
 
resampler setMode ((Beatmup::BitmapResampler::Mode) mode)
 
resampler setCubicParameter ((float) val)
 
 JNIMETHOD (jlong, newColorMatrix__, Java_Beatmup_Imaging_ColorMatrix, newColorMatrix__)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (jlong, newColorMatrix__FFF, Java_Beatmup_Imaging_ColorMatrix, newColorMatrix__FFF)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (jlong, newColorMatrix__FFFFF, Java_Beatmup_Imaging_ColorMatrix, newColorMatrix__FFFFF)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (void, assign, Java_Beatmup_Imaging_ColorMatrix, assign)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Color::Matrix, matFrom, hInstFrom)
 
 BEATMUP_OBJ (Beatmup::Color::Matrix, matTo, hInstTo)
 
 JNIMETHOD (void, multiply, Java_Beatmup_Imaging_ColorMatrix, multiply)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Color::Matrix, matLeft, hLeft)
 
 BEATMUP_OBJ (Beatmup::Color::Matrix, matRight, hRight)
 
 BEATMUP_OBJ (Beatmup::Color::Matrix, matResult, hResult)
 
 JNIMETHOD (jfloat, getElement, Java_Beatmup_Imaging_ColorMatrix, getElement)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::Color::Matrix, mat, hInst)
 
 JNIMETHOD (void, setElement, Java_Beatmup_Imaging_ColorMatrix, setElement)(JNIEnv *jenv
 
 JNIMETHOD (jlong, newShader, Java_Beatmup_Shading_ImageShader, newImageShader)(JNIEnv *jenv
 
return(jlong) new Beatmup JNIMETHOD (void, setSourceCode, Java_Beatmup_Shading_ImageShader, setSourceCode)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::ImageShader, shader, hInstance)
 
shader setSourceCode (javaChar)
 
jenv ReleaseStringUTFChars (src, javaChar)
 
return jenv NewStringUTF (Beatmup::ImageShader::INPUT_IMAGE_ID.c_str())
 
return jenv NewStringUTF (Beatmup::ImageShader::INPUT_IMAGE_DECL_TYPE.c_str())
 
 JNIMETHOD (jlong, newShaderApplicator, Java_Beatmup_Shading_ShaderApplicator, newShaderApplicator)(JNIEnv *jenv
 
 return (JNIEnv *jenv, jobject, jlong hInst, jobject jBitmap, jstring uniformName)
 
 JNIMETHOD (void, setOutput, Java_Beatmup_Shading_ShaderApplicator, setOutput)(JNIEnv *jenv
 
 BEATMUP_OBJ (Beatmup::ShaderApplicator, applicator, hInst)
 
 BEATMUP_OBJ_OR_NULL (Beatmup::AbstractBitmap, bitmap, jBitmap)
 
applicator setOutputBitmap (bitmap)
 
 JNIMETHOD (void, setShader, Java_Beatmup_Shading_ShaderApplicator, setShader)(JNIEnv *jenv
 

Variables

 jclass
 
 jobject
 
jlong hScene
 
jlong jobject jLayer
 
jlong jobject jobject jSubscene
 
Beatmup::Scene::Layernewbie = &scene->addScene(*subscene)
 
jobject jScene
 
int n = scene->getLayerCount()
 
jlong jint index
 
jlong jstring name
 
Beatmup::Scene::Layerlayer = scene->getLayer(nameStr.c_str())
 
jlong jfloat x = x
 
jlong jfloat jfloat y
 
jlong hLayer
 
jlong jboolean visible
 
return layer isVisible() ? JNI_TRUE jlong jboolean phantom
 
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat a11
 
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat jfloat a12
 
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat jfloat jfloat a21
 
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat jfloat jfloat jfloat a22
 
Beatmup::AffineMappingmapping = layer->getMapping()
 
layer getMapping().setCenterPosition(Beatmup jlong jfloat factor
 
layer getMapping().setCenterPosition(Beatmup jlong jfloat jfloat fixx
 
layer getMapping().setCenterPosition(Beatmup jlong jfloat jfloat jfloat fixy
 
jlong jfloat a
 
jlong jfloat r
 
jlong jfloat jfloat g
 
jlong jfloat jfloat jfloat b
 
jlong jobject jColor
 
jlong jobject jBitmap
 
 else
 
jlong jobject jMask
 
jlong jfloat radius
 
jlong jfloat width
 
jlong jboolean inPixels
 
return layer getInPixels() ? JNI_TRUE jlong jobject jShader
 
jobject jEnv
 
Beatmup::SceneRendererrenderer = new Beatmup::SceneRenderer()
 
jlong hRenderer
 
JNIEnv * jenv
 
jlong jboolean fetch
 
jobject jCtx
 
jobject jint jint height
 
jobject jint jint jint pixelFormat
 
Beatmup::InternalBitmapbitmap = new Beatmup::InternalBitmap(*ctx, (Beatmup::PixelFormat)pixelFormat, (int)width, (int)height)
 
return(jlong) new Beatmup jlong hBitmap
 
jlong hInputBitmap
 
jlong jlong hOutputBitmap
 
jlong jlong jint x1
 
jlong jlong jint jint y1
 
jlong jlong jint jint jint x2
 
jlong jlong jint jint jint jint y2
 
jlong jlong jint jint jint jint jint left
 
jlong jlong jint jint jint jint jint jint top
 
Beatmup::Crop crop
 
Beatmup::IntRectangle rect (x1, y1, x2, y2)
 
Beatmup::IntPoint outOrigin (left, top)
 
jobject jobj
 
return(jlong) new Beatmup jlong hInstance
 
jlong jint op
 
jlong jint w
 
jlong jint jint h
 
jlong jint jint jint op1x
 
jlong jint jint jint jint op1y
 
jlong jint jint jint jint jint op2x
 
jlong jint jint jint jint jint jint op2y
 
jlong jint jint jint jint jint jint jint outx
 
jlong jint jint jint jint jint jint jint jint outy
 
jlong jobject size
 
jlong jobject jobject op1Origin
 
jlong jobject jobject jobject op2Origin
 
jlong jobject jobject jobject jobject outputOrigin
 
jlong jfloat tolerance
 
jlong jint jfloat hold
 
jlong jint jfloat jfloat release
 
jlong jintArray xy
 
jint * xyPtr = jenv->GetIntArrayElements(xy, NULL)
 
int count = (int)jenv->GetArrayLength(xy) / 2
 
jlong jboolean flag
 
 return
 
jlong jint jfloat step
 
 BEATMUP_ENTER
 
jintArray result = jenv->NewIntArray(xy.size())
 
jint * javaxy = jenv->GetIntArrayElements(result, NULL)
 
int pn = 0
 
jlong jobject jInputBitmap
 
jlong jobject jOutputBitmap
 
return(jlong) new Beatmup jlong hInst
 
return(jlong) new Beatmup jlong jobject jMat
 
mat = filter->getMatrix()
 
JNIEnv jlong jint out
 
JNIEnv jlong jint jfloat bias
 
JNIEnv jlong jfloat jfloat s
 
JNIEnv jlong jfloat jfloat jfloat v
 
Beatmup::color3f preservedColor { (float)r, (float)g, (float)b }
 
jlong jboolean allow
 
JNIEnv jlong jobject jOutput
 
JNIEnv jlong jint mode
 
JNIEnv jlong jfloat val
 
return(jlong) new Beatmup jlong hInstTo
 
return(jlong) new Beatmup jlong jlong hInstFrom
 
matTo = *matFrom
 
jlong hLeft
 
jlong jlong hRight
 
jlong jlong jlong hResult
 
matResult = (*matLeft) * (*matRight)
 
mat elem [x][y] = v
 
return(jlong) new Beatmup jlong jstring src
 
const char * javaChar = jenv->GetStringUTFChars(src, 0)
 

Function Documentation

◆ JNIMETHOD() [1/113]

JNIMETHOD ( jlong  ,
newScene  ,
Java_Beatmup_Rendering_Scene  ,
newScene   
)

Creates new scene.

◆ jlong() [1/2]

return() jlong ( new   Beatmup::Scene())

◆ JNIMETHOD() [2/113]

JNIMETHOD ( jlong  ,
newSceneLayer  ,
Java_Beatmup_Rendering_Scene  ,
newSceneLayer   
)

Creates new layer containing a scene.

◆ BEATMUP_OBJ() [1/32]

BEATMUP_OBJ ( Beatmup::Scene  ,
subscene  ,
jSubscene   
)

◆ BEATMUP_OBJ() [2/32]

BEATMUP_OBJ ( Beatmup::Scene  ,
scene  ,
hScene   
)

◆ BEATMUP_REFERENCE()

BEATMUP_REFERENCE ( jLayer  ,
newbie   
)

◆ jlong() [2/2]

return() jlong ( newbie  )

◆ JNIMETHOD() [3/113]

JNIMETHOD ( jlong  ,
newBitmapLayer  ,
Java_Beatmup_Rendering_Scene  ,
newBitmapLayer   
)

Creates new bitmap layer in a given scene.

◆ JNIMETHOD() [4/113]

JNIMETHOD ( jlong  ,
newMaskedBitmapLayer  ,
Java_Beatmup_Rendering_Scene  ,
newMaskedBitmapLayer   
)

Creates new masked bitmap layer in a given scene.

◆ JNIMETHOD() [5/113]

JNIMETHOD ( jlong  ,
newShapedBitmapLayer  ,
Java_Beatmup_Rendering_Scene  ,
newShapedBitmapLayer   
)

Creates new shaped bitmap layer in a given scene.

◆ JNIMETHOD() [6/113]

JNIMETHOD ( jlong  ,
newShadedBitmapLayer  ,
Java_Beatmup_Rendering_Scene  ,
newShadedBitmapLayer   
)

◆ JNIMETHOD() [7/113]

JNIMETHOD ( void  ,
deleteLayers  ,
Java_Beatmup_Rendering_Scene  ,
deleteLayers   
)

Removes global references.

◆ BEATMUP_OBJ() [3/32]

BEATMUP_OBJ ( Beatmup::Scene  ,
scene  ,
jScene   
)

◆ for() [1/2]

for ( )

Definition at line 132 of file wrapper_imag.cpp.

132  {
133  Beatmup::Scene::Layer &l = scene->getLayer(i);
135  }
Abstract scene layer having name, type, geometry and some content to display.
Definition: scene.h:64
#define BEATMUP_DELETE_REFERENCE(obj)
Definition: wrapper.h:57
return $pool getJavaReference & scene(index)

◆ JNIMETHOD() [8/113]

JNIMETHOD ( jint  ,
getLayerCount  ,
Java_Beatmup_Rendering_Scene  ,
getLayerCount   
)

Returns number of layers.

◆ getLayerCount()

return scene getLayerCount ( )

◆ JNIMETHOD() [9/113]

JNIMETHOD ( jobject  ,
getLayerByIndex  ,
Java_Beatmup_Rendering_Scene  ,
getLayerByIndex   
)

Retrieves layer by its index.

◆ scene()

return $pool getJavaReference& scene ( index  )

◆ JNIMETHOD() [10/113]

JNIMETHOD ( jobject  ,
getLayerByName  ,
Java_Beatmup_Rendering_Scene  ,
getLayerByName   
)

Retrieves a layer by name.

◆ BEATMUP_STRING()

BEATMUP_STRING ( name  )

◆ if()

if ( layer)

◆ getJavaReference()

return $pool getJavaReference ( layer  )

◆ JNIMETHOD() [11/113]

JNIMETHOD ( jobject  ,
getLayerAtPoint  ,
Java_Beatmup_Rendering_Scene  ,
getLayerAtPoint   
)

◆ JNIMETHOD() [12/113]

JNIMETHOD ( void  ,
setLayerName  ,
Java_Beatmup_Rendering_Scene  ,
setLayerName   
)

Renames given layer.

◆ BEATMUP_OBJ() [4/32]

BEATMUP_OBJ ( Beatmup::Scene::Layer  ,
layer  ,
hLayer   
)

◆ setName()

layer setName ( nameStr.  c_str())

◆ JNIMETHOD() [13/113]

JNIMETHOD ( jstring  ,
getLayerName  ,
Java_Beatmup_Rendering_Scene  ,
getLayerName   
)

Returns layer name.

◆ NewStringUTF() [1/3]

return jenv NewStringUTF ( layer->  getName).c_str()

◆ JNIMETHOD() [14/113]

JNIMETHOD ( void  ,
setLayerVisibility  ,
Java_Beatmup_Rendering_Scene  ,
setLayerVisibility   
)

◆ setVisible()

layer setVisible ( visible  = =JNI_TRUE)

◆ JNIMETHOD() [15/113]

JNIMETHOD ( jboolean  ,
getLayerVisibility  ,
Java_Beatmup_Rendering_Scene  ,
getLayerVisibility   
)

◆ JNIMETHOD() [16/113]

return layer isVisible () ? JNI_TRUE JNIMETHOD ( void  ,
setLayerPhantomFlag  ,
Java_Beatmup_Rendering_Scene  ,
setLayerPhantomFlag   
)

Phantom layer mode management.

◆ setPhantom()

layer setPhantom ( phantom  = =JNI_TRUE)

◆ JNIMETHOD() [17/113]

JNIMETHOD ( jboolean  ,
getLayerPhantomFlag  ,
Java_Beatmup_Rendering_Scene  ,
getLayerPhantomFlag   
)

◆ JNIMETHOD() [18/113]

return layer isPhantom () ? JNI_TRUE JNIMETHOD ( void  ,
setLayerTransform  ,
Java_Beatmup_Rendering_Scene  ,
setLayerTransform   
)

◆ setElements()

mapping matrix setElements ( (float)  a11,
(float)  a12,
(float)  a21,
(float)  a22 
)

◆ JNIMETHOD() [19/113]

JNIMETHOD ( void  ,
getLayerTransform  ,
Java_Beatmup_Rendering_Scene  ,
getLayerTransform   
)

◆ setAffineMapping()

$pool factory setAffineMapping ( jenv  ,
layer->  getMapping(),
mapping   
)

◆ JNIMETHOD() [20/113]

JNIMETHOD ( void  ,
setLayerX  ,
Java_Beatmup_Rendering_Scene  ,
setLayerX   
)

Changes layer horizontal position.

◆ getMapping()

layer getMapping ( ) = y

Definition at line 300 of file wrapper_imag.cpp.

◆ JNIMETHOD() [21/113]

JNIMETHOD ( jfloat  ,
getLayerX  ,
Java_Beatmup_Rendering_Scene  ,
getLayerX   
)

Returns layer horizontal position.

◆ JNIMETHOD() [22/113]

JNIMETHOD ( void  ,
setLayerY  ,
Java_Beatmup_Rendering_Scene  ,
setLayerY   
)

Changes layer vertical position.

◆ JNIMETHOD() [23/113]

JNIMETHOD ( jfloat  ,
getLayerY  ,
Java_Beatmup_Rendering_Scene  ,
getLayerY   
)

Returns layer vertical position.

◆ JNIMETHOD() [24/113]

JNIMETHOD ( jfloat  ,
getLayerOrientation  ,
Java_Beatmup_Rendering_Scene  ,
getLayerOrientation   
)

Returns layer orientation in degrees.

◆ JNIMETHOD() [25/113]

JNIMETHOD ( void  ,
setLayerCenterPos  ,
Java_Beatmup_Rendering_Scene  ,
setLayerCenterPos   
)

Sets layer center position.

◆ JNIMETHOD() [26/113]

layer getMapping ().setCenterPosition(Beatmup JNIMETHOD ( void  ,
scaleLayer  ,
Java_Beatmup_Rendering_Scene  ,
scaleLayer   
)

◆ JNIMETHOD() [27/113]

JNIMETHOD ( void  ,
rotateLayer  ,
Java_Beatmup_Rendering_Scene  ,
rotateLayer   
)

◆ JNIMETHOD() [28/113]

JNIMETHOD ( void  ,
setBitmapLayerModulationColor  ,
Java_Beatmup_Rendering_Scene  ,
setBitmapLayerModulationColor   
)

◆ BEATMUP_OBJ() [5/32]

BEATMUP_OBJ ( Beatmup::Scene::BitmapLayer  ,
layer  ,
hLayer   
)

◆ setModulationColor()

layer setModulationColor ( Beatmup::pixfloat4(r, g, b, a )

◆ JNIMETHOD() [29/113]

JNIMETHOD ( void  ,
getBitmapLayerModulationColor  ,
Java_Beatmup_Rendering_Scene  ,
getBitmapLayerModulationColor   
)

◆ setColor()

$pool factory setColor ( jenv  ,
layer->  getModulationColor(),
jColor   
)

◆ JNIMETHOD() [30/113]

JNIMETHOD ( void  ,
setBitmapLayerMaskPos  ,
Java_Beatmup_Rendering_Scene  ,
setBitmapLayerMaskPos   
)

◆ BEATMUP_OBJ() [6/32]

◆ JNIMETHOD() [31/113]

JNIMETHOD ( void  ,
scaleBitmapLayerMask  ,
Java_Beatmup_Rendering_Scene  ,
scaleBitmapLayerMask   
)

◆ getMaskMapping()

layer getMaskMapping ( )

◆ JNIMETHOD() [32/113]

JNIMETHOD ( void  ,
rotateBitmapLayerMask  ,
Java_Beatmup_Rendering_Scene  ,
rotateBitmapLayerMask   
)

◆ JNIMETHOD() [33/113]

JNIMETHOD ( void  ,
skewBitmapLayerMask  ,
Java_Beatmup_Rendering_Scene  ,
skewBitmapLayerMask   
)

◆ JNIMETHOD() [34/113]

JNIMETHOD ( void  ,
setBitmapLayerBgColor  ,
Java_Beatmup_Rendering_Scene  ,
setBitmapLayerBgColor   
)

◆ setBackgroundColor()

layer setBackgroundColor ( Beatmup::pixfloat4(r, g, b, a )

◆ JNIMETHOD() [35/113]

JNIMETHOD ( void  ,
getBitmapLayerBgColor  ,
Java_Beatmup_Rendering_Scene  ,
getBitmapLayerBgColor   
)

◆ JNIMETHOD() [36/113]

JNIMETHOD ( void  ,
setBitmapLayerImageTransform  ,
Java_Beatmup_Rendering_Scene  ,
setBitmapLayerImageTransform   
)

◆ JNIMETHOD() [37/113]

JNIMETHOD ( void  ,
getBitmapLayerImageTransform  ,
Java_Beatmup_Rendering_Scene  ,
getBitmapLayerImageTransform   
)

◆ JNIMETHOD() [38/113]

JNIMETHOD ( void  ,
setBitmapLayerMaskTransform  ,
Java_Beatmup_Rendering_Scene  ,
setBitmapLayerMaskTransform   
)

◆ JNIMETHOD() [39/113]

JNIMETHOD ( void  ,
getBitmapLayerMaskTransform  ,
Java_Beatmup_Rendering_Scene  ,
getBitmapLayerMaskTransform   
)

◆ JNIMETHOD() [40/113]

JNIMETHOD ( void  ,
setBitmapLayerBitmap  ,
Java_Beatmup_Rendering_Scene  ,
setBitmapLayerBitmap   
)

◆ setBitmap()

layer setBitmap ( bitmap  )

◆ JNIMETHOD() [41/113]

JNIMETHOD ( void  ,
setMaskedBitmapLayerMask  ,
Java_Beatmup_Rendering_Scene  ,
setMaskedBitmapLayerMask   
)

◆ BEATMUP_OBJ() [7/32]

BEATMUP_OBJ ( Beatmup::Scene::MaskedBitmapLayer  ,
layer  ,
hLayer   
)

◆ setMask()

layer setMask ( mask  )

◆ JNIMETHOD() [42/113]

JNIMETHOD ( void  ,
setShapedBitmapLayerCornerRadius  ,
Java_Beatmup_Rendering_Scene  ,
setShapedBitmapLayerCornerRadius   
)

Sets shaped bitmap mask corners radius.

◆ BEATMUP_OBJ() [8/32]

BEATMUP_OBJ ( Beatmup::Scene::ShapedBitmapLayer  ,
layer  ,
hLayer   
)

◆ setCornerRadius()

layer setCornerRadius ( (float)  radius)

◆ JNIMETHOD() [43/113]

JNIMETHOD ( jfloat  ,
getShapedBitmapLayerCornerRadius  ,
Java_Beatmup_Rendering_Scene  ,
getShapedBitmapLayerCornerRadius   
)

◆ return() [1/6]

return ( jfloat  ) -> getCornerRadius()

◆ JNIMETHOD() [44/113]

JNIMETHOD ( void  ,
setShapedBitmapLayerBorderWidth  ,
Java_Beatmup_Rendering_Scene  ,
setShapedBitmapLayerBorderWidth   
)

◆ setBorderWidth()

layer setBorderWidth ( (float)  width)

◆ JNIMETHOD() [45/113]

JNIMETHOD ( jfloat  ,
getShapedBitmapLayerBorderWidth  ,
Java_Beatmup_Rendering_Scene  ,
getShapedBitmapLayerBorderWidth   
)

◆ JNIMETHOD() [46/113]

JNIMETHOD ( void  ,
setShapedBitmapLayerSlopeWidth  ,
Java_Beatmup_Rendering_Scene  ,
setShapedBitmapLayerSlopeWidth   
)

◆ setSlopeWidth()

layer setSlopeWidth ( (float)  width)

◆ JNIMETHOD() [47/113]

JNIMETHOD ( jfloat  ,
getShapedBitmapLayerSlopeWidth  ,
Java_Beatmup_Rendering_Scene  ,
getShapedBitmapLayerSlopeWidth   
)

◆ JNIMETHOD() [48/113]

JNIMETHOD ( void  ,
setShapedBitmapLayerInPixelsSwitch  ,
Java_Beatmup_Rendering_Scene  ,
setShapedBitmapLayerInPixelsSwitch   
)

◆ setInPixels()

layer setInPixels ( inPixels  = =JNI_TRUE)

◆ JNIMETHOD() [49/113]

JNIMETHOD ( jboolean  ,
getShapedBitmapLayerInPixelsSwitch  ,
Java_Beatmup_Rendering_Scene  ,
getShapedBitmapLayerInPixelsSwitch   
)

◆ JNIMETHOD() [50/113]

return layer getInPixels () ? JNI_TRUE JNIMETHOD ( void  ,
setShadedBitmapLayerShader  ,
Java_Beatmup_Rendering_Scene  ,
setShadedBitmapLayerShader   
)

◆ BEATMUP_OBJ() [9/32]

BEATMUP_OBJ ( Beatmup::Scene::ShadedBitmapLayer  ,
layer  ,
hLayer   
)

◆ BEATMUP_OBJ_OR_NULL() [1/5]

BEATMUP_OBJ_OR_NULL ( Beatmup::ImageShader  ,
shader  ,
jShader   
)

◆ setShader()

applicator setShader ( shader  )

◆ JNIMETHOD() [51/113]

JNIMETHOD ( jlong  ,
newSceneRenderer  ,
Java_Beatmup_Rendering_SceneRenderer  ,
newSceneRenderer   
)

◆ BEATMUP_OBJ() [10/32]

BEATMUP_OBJ ( Beatmup::Android::Context  ,
ctx  ,
jEnv   
)

◆ return() [2/6]

return ( jlong  )

◆ JNIMETHOD() [52/113]

JNIMETHOD ( void  ,
setOutput  ,
Java_Beatmup_Rendering_SceneRenderer  ,
setOutput   
)

◆ BEATMUP_OBJ() [11/32]

BEATMUP_OBJ ( Beatmup::AbstractBitmap  ,
bitmap  ,
jBitmap   
)

◆ BEATMUP_OBJ() [12/32]

BEATMUP_OBJ ( Beatmup::SceneRenderer  ,
renderer  ,
hRenderer   
)

◆ setOutput() [1/2]

floodFill setOutput ( bitmap  )

◆ JNIMETHOD() [53/113]

JNIMETHOD ( void  ,
resetOutput  ,
Java_Beatmup_Rendering_SceneRenderer  ,
resetOutput   
)

◆ resetOutput()

renderer resetOutput ( )

◆ setScene()

renderer setScene ( scene  )

◆ JNIMETHOD() [54/113]

JNIMETHOD ( void  ,
setOutputMapping  ,
Java_Beatmup_Rendering_SceneRenderer  ,
setOutputMapping   
)

◆ setOutputMapping()

renderer setOutputMapping ( (Beatmup::SceneRenderer::OutputMapping mapping)

◆ JNIMETHOD() [55/113]

JNIMETHOD ( jint  ,
getOutputMapping  ,
Java_Beatmup_Rendering_SceneRenderer  ,
getOutputMapping   
)

◆ getOutputMapping()

return renderer getOutputMapping ( )

◆ JNIMETHOD() [56/113]

JNIMETHOD ( void  ,
setOutputReferenceWidth  ,
Java_Beatmup_Rendering_SceneRenderer  ,
setOutputReferenceWidth   
)

◆ setOutputReferenceWidth()

renderer setOutputReferenceWidth ( (int)  width)

◆ JNIMETHOD() [57/113]

JNIMETHOD ( jint  ,
getOutputReferenceWidth  ,
Java_Beatmup_Rendering_SceneRenderer  ,
getOutputReferenceWidth   
)

◆ getOutputReferenceWidth()

return renderer getOutputReferenceWidth ( )

◆ JNIMETHOD() [58/113]

JNIMETHOD ( void  ,
setOutputPixelsFetching  ,
Java_Beatmup_Rendering_SceneRenderer  ,
setOutputPixelsFetching   
)

◆ setOutputPixelsFetching()

renderer setOutputPixelsFetching ( fetch  = =JNI_TRUE)

◆ JNIMETHOD() [59/113]

JNIMETHOD ( jboolean  ,
getOutputPixelsFetching  ,
Java_Beatmup_Rendering_SceneRenderer  ,
getOutputPixelsFetching   
)

◆ JNIMETHOD() [60/113]

return renderer getOutputPixelsFetching () ? JNI_TRUE JNIMETHOD ( void  ,
setBackgroundBitmap  ,
Java_Beatmup_Rendering_SceneRenderer  ,
setBackgroundBitmap   
)

◆ setBackgroundImage()

renderer setBackgroundImage ( bitmap  )

◆ JNIMETHOD() [61/113]

JNIMETHOD ( jobject  ,
pickLayer  ,
Java_Beatmup_Rendering_SceneRenderer  ,
pickLayer   
)

◆ JNIMETHOD() [62/113]

JNIMETHOD ( jlong  ,
newInternalBitmap  ,
Java_Beatmup_Bitmap  ,
newInternalBitmap   
)

Creates new internally managed bitmap.

◆ BEATMUP_OBJ() [13/32]

BEATMUP_OBJ ( Beatmup::Context  ,
ctx  ,
jCtx   
)

◆ addJavaReference()

$pool addJavaReference ( jenv  ,
jCtx  ,
bitmap   
)

◆ JNIMETHOD() [63/113]

JNIMETHOD ( jlong  ,
newNativeBitmap  ,
Java_Beatmup_Bitmap  ,
newNativeBitmap   
)

Creates new bitmap from Android bitmap object.

◆ JNIMETHOD() [64/113]

return (jlong) new Beatmup JNIMETHOD ( jint  ,
getWidth  ,
Java_Beatmup_Bitmap  ,
getWidth   
)
new

Returns bitmap width in pixels.

◆ BEATMUP_OBJ() [14/32]

BEATMUP_OBJ ( Beatmup::AbstractBitmap  ,
bitmap  ,
hBitmap   
)

◆ getWidth()

return bitmap getWidth ( )

◆ JNIMETHOD() [65/113]

JNIMETHOD ( jint  ,
getHeight  ,
Java_Beatmup_Bitmap  ,
getHeight   
)

Returns bitmap height in pixels.

◆ getHeight()

return bitmap getHeight ( )

◆ JNIMETHOD() [66/113]

JNIMETHOD ( jint  ,
getPixelFormat  ,
Java_Beatmup_Bitmap  ,
getPixelFormat   
)

Returns bitmap pixel format.

◆ getPixelFormat()

return bitmap getPixelFormat ( )

◆ JNIMETHOD() [67/113]

JNIMETHOD ( void  ,
zero  ,
Java_Beatmup_Bitmap  ,
zero   
)

◆ zero()

bitmap zero ( )

◆ JNIMETHOD() [68/113]

JNIMETHOD ( void  ,
crop  ,
Java_Beatmup_Bitmap  ,
crop   
)

◆ BEATMUP_OBJ() [15/32]

BEATMUP_OBJ ( Beatmup::AbstractBitmap  ,
input  ,
hInputBitmap   
)

◆ BEATMUP_OBJ() [16/32]

BEATMUP_OBJ ( Beatmup::AbstractBitmap  ,
output  ,
hOutputBitmap   
)

◆ setInput() [1/2]

return filter setInput ( input  )

◆ setOutput() [2/2]

resampler setOutput ( output  )

◆ setCropRect()

crop setCropRect ( rect  )

◆ setOutputOrigin() [1/2]

crop setOutputOrigin ( outOrigin  )

◆ getContext()

input getContext ( )

◆ JNIMETHOD() [69/113]

JNIMETHOD ( void  ,
invert  ,
Java_Beatmup_Bitmap  ,
invert   
)

◆ JNIMETHOD() [70/113]

JNIMETHOD ( jlong  ,
newExternalImage  ,
Java_Beatmup_Android_ExternalBitmap  ,
newExternalImage   
)

◆ JNIMETHOD() [71/113]

JNIMETHOD ( void  ,
bind  ,
Java_Beatmup_Android_ExternalBitmap  ,
bind   
)

◆ bind()

bitmap bind ( jenv  ,
jobj   
)

◆ JNIMETHOD() [72/113]

JNIMETHOD ( void  ,
notifyUpdate  ,
Java_Beatmup_Android_ExternalBitmap  ,
notifyUpdate   
)

◆ BEATMUP_OBJ() [17/32]

BEATMUP_OBJ ( Beatmup::Android::ExternalBitmap  ,
bitmap  ,
hBitmap   
)

◆ notifyUpdate()

bitmap notifyUpdate ( width  ,
height   
)

◆ JNIMETHOD() [73/113]

JNIMETHOD ( jlong  ,
newBinaryOperation  ,
Java_Beatmup_Imaging_BinaryOperation  ,
newBinaryOperation   
)

◆ JNIMETHOD() [74/113]

return (jlong) new Beatmup JNIMETHOD ( void  ,
setOperand1  ,
Java_Beatmup_Imaging_BinaryOperation  ,
setOperand1   
)
new

◆ BEATMUP_OBJ() [18/32]

BEATMUP_OBJ ( Beatmup::BitmapBinaryOperation  ,
operation  ,
hInstance   
)

◆ setOperand1()

operation setOperand1 ( bitmap  )

◆ JNIMETHOD() [75/113]

JNIMETHOD ( void  ,
setOperand2  ,
Java_Beatmup_Imaging_BinaryOperation  ,
setOperand2   
)

◆ setOperand2()

operation setOperand2 ( bitmap  )

◆ JNIMETHOD() [76/113]

JNIMETHOD ( void  ,
setOutput  ,
Java_Beatmup_Imaging_BinaryOperation  ,
setOutput   
)

◆ JNIMETHOD() [77/113]

JNIMETHOD ( void  ,
setOperation  ,
Java_Beatmup_Imaging_BinaryOperation  ,
setOperation   
)

◆ setOperation()

operation setOperation ( (Beatmup::BitmapBinaryOperation::Operation op)

◆ JNIMETHOD() [78/113]

JNIMETHOD ( void  ,
resetCrop  ,
Java_Beatmup_Imaging_BinaryOperation  ,
resetCrop   
)

◆ resetCrop()

operation resetCrop ( )

◆ JNIMETHOD() [79/113]

JNIMETHOD ( void  ,
setCrop  ,
Java_Beatmup_Imaging_BinaryOperation  ,
setCrop   
)

◆ setCropSize()

operation setCropSize ( w  ,
h   
)

◆ setOp1Origin()

operation setOp1Origin ( Beatmup::IntPoint(op1x, op1y )

◆ setOp2Origin()

operation setOp2Origin ( Beatmup::IntPoint(op2x, op2y )

◆ setOutputOrigin() [2/2]

operation setOutputOrigin ( Beatmup::IntPoint(outx, outy )

◆ JNIMETHOD() [80/113]

JNIMETHOD ( void  ,
getCrop  ,
Java_Beatmup_Imaging_BinaryOperation  ,
getCrop   
)

◆ setIntPoint() [1/4]

$pool factory setIntPoint ( jenv  ,
operation->  getCropWidth(),
operation->  getCropHeight(),
size   
)

◆ setIntPoint() [2/4]

$pool factory setIntPoint ( jenv  ,
operation->  getOp1Origin(),
op1Origin   
)

◆ setIntPoint() [3/4]

$pool factory setIntPoint ( jenv  ,
operation->  getOp2Origin(),
op2Origin   
)

◆ setIntPoint() [4/4]

$pool factory setIntPoint ( jenv  ,
operation->  getOutputOrigin(),
outputOrigin   
)

◆ JNIMETHOD() [81/113]

JNIMETHOD ( jlong  ,
newFloodFill  ,
Java_Beatmup_Imaging_FloodFill  ,
newFloodFill   
)

◆ JNIMETHOD() [82/113]

return (jlong) new Beatmup JNIMETHOD ( void  ,
setInput  ,
Java_Beatmup_Imaging_FloodFill  ,
setInput   
)
new

◆ BEATMUP_OBJ() [19/32]

BEATMUP_OBJ ( Beatmup::FloodFill  ,
floodFill  ,
hInstance   
)

◆ setInput() [2/2]

floodFill setInput ( bitmap  )

◆ JNIMETHOD() [83/113]

JNIMETHOD ( void  ,
setOutput  ,
Java_Beatmup_Imaging_FloodFill  ,
setOutput   
)

◆ JNIMETHOD() [84/113]

JNIMETHOD ( void  ,
setMaskPos  ,
Java_Beatmup_Imaging_FloodFill  ,
setMaskPos   
)

◆ p()

Beatmup::IntPoint p ( (int)  x,
(int)  y 
)

◆ setMaskPos()

floodFill setMaskPos ( p  )

◆ JNIMETHOD() [85/113]

JNIMETHOD ( void  ,
setTolerance  ,
Java_Beatmup_Imaging_FloodFill  ,
setTolerance   
)

◆ setTolerance()

floodFill setTolerance ( (float)  tolerance)

◆ JNIMETHOD() [86/113]

JNIMETHOD ( void  ,
setBorderPostprocessing  ,
Java_Beatmup_Imaging_FloodFill  ,
setBorderPostprocessing   
)

◆ setBorderPostprocessing()

floodFill setBorderPostprocessing ( (Beatmup::FloodFill::BorderMorphology op,
hold  ,
release   
)

◆ JNIMETHOD() [87/113]

JNIMETHOD ( void  ,
setSeeds  ,
Java_Beatmup_Imaging_FloodFill  ,
setSeeds   
)

◆ setSeeds()

floodFill setSeeds ( xyPtr  ,
count   
)

◆ ReleaseIntArrayElements() [1/2]

jenv ReleaseIntArrayElements ( xy  ,
xyPtr  ,
JNI_ABORT   
)

◆ JNIMETHOD() [88/113]

JNIMETHOD ( void  ,
setComputeContours  ,
Java_Beatmup_Imaging_FloodFill  ,
setComputeContours   
)

Enables / disables border contours computation.

◆ setComputeContours()

floodFill setComputeContours ( flag  = =JNI_TRUE)

◆ JNIMETHOD() [89/113]

JNIMETHOD ( jint  ,
getContourCount  ,
Java_Beatmup_Imaging_FloodFill  ,
getContourCount   
)

◆ return() [3/6]

return ( jint  ) -> getContourCount()

◆ JNIMETHOD() [90/113]

JNIMETHOD ( jint  ,
getContourPointCount  ,
Java_Beatmup_Imaging_FloodFill  ,
getContourPointCount   
)

◆ BEATMUP_CATCH() [1/3]

BEATMUP_CATCH ( { return floodFill->getContour(n).getPointCount();}  )

◆ JNIMETHOD() [91/113]

JNIMETHOD ( jintArray  ,
getContour  ,
Java_Beatmup_Imaging_FloodFill  ,
getContour   
)

Returns a layer border component (a contour)

◆ BEATMUP_CATCH() [2/3]

BEATMUP_CATCH ( { const Beatmup::IntegerContour2D &contour=floodFill->getContour(index);if(contour.getPointCount() > 0) { float stepLength2=step *step;unsigned int fragmentLength2=(unsigned int)(stepLength2+1);Beatmup::IntPoint prev=contour.getPoint(0);Beatmup::IntPoint p;for(int n=0;n< contour.getPointCount();n++) { p=contour.getPoint(n);fragmentLength2+=(p - prev).hypot2();if(fragmentLength2 >=stepLength2) { xy.push_back(p.x);xy.push_back(p.y);fragmentLength2=0;} prev=p;} if(fragmentLength2 > 0) { xy.push_back(p.x);xy.push_back(p.y);} } }  )

◆ for() [2/2]

for ( auto e :xy  )

◆ ReleaseIntArrayElements() [2/2]

jenv ReleaseIntArrayElements ( result  ,
javaxy  ,
 
)

◆ JNIMETHOD() [92/113]

JNIMETHOD ( jobject  ,
getBoundingBox  ,
Java_Beatmup_Imaging_FloodFill  ,
getBoundingBox   
)

Returns mask bounding box.

◆ makeIntRectangle()

return $pool factory makeIntRectangle ( jenv  ,
floodFill->  getBounds() 
)

◆ JNIMETHOD() [93/113]

JNIMETHOD ( void  ,
setBitmaps  ,
Java_Beatmup_Imaging_Filters_PixelwiseFilter  ,
setInput   
)

◆ BEATMUP_OBJ() [20/32]

BEATMUP_OBJ ( Beatmup::Filters::PixelwiseFilter  ,
filter  ,
hInstance   
)

◆ BEATMUP_OBJ_OR_NULL() [2/5]

BEATMUP_OBJ_OR_NULL ( Beatmup::AbstractBitmap  ,
input  ,
jInputBitmap   
)

◆ JNIMETHOD() [94/113]

JNIMETHOD ( void  ,
setBitmaps  ,
Java_Beatmup_Imaging_Filters_PixelwiseFilter  ,
setOutput   
)

◆ BEATMUP_OBJ_OR_NULL() [3/5]

BEATMUP_OBJ_OR_NULL ( Beatmup::AbstractBitmap  ,
output  ,
jOutputBitmap   
)

◆ JNIMETHOD() [95/113]

JNIMETHOD ( jlong  ,
newColorMatrixTransform  ,
Java_Beatmup_Imaging_Filters_ColorMatrixTransform  ,
newColorMatrixTransform   
)

◆ JNIMETHOD() [96/113]

return (jlong) new Beatmup JNIMETHOD ( void  ,
setFromMatrix  ,
Java_Beatmup_Imaging_Filters_ColorMatrixTransform  ,
setFromMatrix   
)
new

◆ BEATMUP_OBJ() [21/32]

BEATMUP_OBJ ( Beatmup::Filters::ColorMatrix  ,
filter  ,
hInst   
)

◆ BEATMUP_OBJ() [22/32]

BEATMUP_OBJ ( Beatmup::Color::Matrix  ,
mat  ,
jMat   
)

◆ getMatrix()

filter getMatrix ( )

◆ JNIMETHOD() [97/113]

JNIMETHOD ( void  ,
assignToMatrix  ,
Java_Beatmup_Imaging_Filters_ColorMatrixTransform  ,
assignToMatrix   
)

◆ BEATMUP_OBJ() [23/32]

BEATMUP_OBJ ( Beatmup::Filters::ColorMatrix  ,
filter  ,
hInstance   
)

◆ BEATMUP_CATCH() [3/3]

BEATMUP_CATCH ( { filter->setCoefficients(out, bias, r, g, b, a);}  )

◆ setHSVCorrection()

filter setHSVCorrection ( (float)  h,
(float)  s,
(float)  v 
)

◆ setColorInversion()

filter setColorInversion ( preservedColor  ,
(float)  s,
(float)  v 
)

◆ JNIMETHOD() [98/113]

JNIMETHOD ( void  ,
setAllowIntegerApprox  ,
Java_Beatmup_Imaging_Filters_ColorMatrixTransform  ,
setAllowIntegerApprox   
)

◆ allowIntegerApproximations()

filter allowIntegerApproximations ( allow  = =JNI_TRUE)

◆ JNIMETHOD() [99/113]

JNIMETHOD ( jboolean  ,
allowIntegerApprox  ,
Java_Beatmup_Imaging_Filters_ColorMatrixTransform  ,
allowIntegerApprox   
)

◆ return() [4/6]

return ( jboolean  ) -> isIntegerApproximationsAllowed()

◆ JNIMETHOD() [100/113]

JNIMETHOD ( jlong  ,
newSepia  ,
Java_Beatmup_Imaging_Filters_Sepia  ,
newSepia   
)

◆ JNIMETHOD() [101/113]

return (jlong) new Beatmup JNIMETHOD ( jlong  ,
newResampler  ,
Java_Beatmup_Imaging_Resampler  ,
newResampler   
)
new

◆ return() [5/6]

return ( JNIEnv *  jenv,
jobject  ,
jlong  hInstance,
jobject  jInput 
)
new

Definition at line 1020 of file wrapper_imag.cpp.

1026 {
1027  BEATMUP_ENTER;
1030  resampler->setInput(input);
1031 }
A very basic class for any image.
Resamples an image to a given resolution.
Definition: resampler.h:33
return(jlong) new Beatmup jlong hInstance
BEATMUP_ENTER
BEATMUP_OBJ(Beatmup::Scene, subscene, jSubscene)
BEATMUP_OBJ_OR_NULL(Beatmup::ImageShader, shader, jShader)

◆ BEATMUP_OBJ() [24/32]

BEATMUP_OBJ ( Beatmup::BitmapResampler  ,
resampler  ,
hInstance   
)

◆ BEATMUP_OBJ_OR_NULL() [4/5]

BEATMUP_OBJ_OR_NULL ( Beatmup::AbstractBitmap  ,
output  ,
jOutput   
)

◆ setMode()

resampler setMode ( (Beatmup::BitmapResampler::Mode mode)

◆ setCubicParameter()

resampler setCubicParameter ( (float)  val)

◆ JNIMETHOD() [102/113]

JNIMETHOD ( jlong  ,
newColorMatrix__  ,
Java_Beatmup_Imaging_ColorMatrix  ,
newColorMatrix__   
)

◆ JNIMETHOD() [103/113]

return (jlong) new Beatmup JNIMETHOD ( jlong  ,
newColorMatrix__FFF  ,
Java_Beatmup_Imaging_ColorMatrix  ,
newColorMatrix__FFF   
)
new

◆ JNIMETHOD() [104/113]

return (jlong) new Beatmup JNIMETHOD ( jlong  ,
newColorMatrix__FFFFF  ,
Java_Beatmup_Imaging_ColorMatrix  ,
newColorMatrix__FFFFF   
)
new

◆ JNIMETHOD() [105/113]

return (jlong) new Beatmup JNIMETHOD ( void  ,
assign  ,
Java_Beatmup_Imaging_ColorMatrix  ,
assign   
)
new

◆ BEATMUP_OBJ() [25/32]

BEATMUP_OBJ ( Beatmup::Color::Matrix  ,
matFrom  ,
hInstFrom   
)

◆ BEATMUP_OBJ() [26/32]

BEATMUP_OBJ ( Beatmup::Color::Matrix  ,
matTo  ,
hInstTo   
)

◆ JNIMETHOD() [106/113]

JNIMETHOD ( void  ,
multiply  ,
Java_Beatmup_Imaging_ColorMatrix  ,
multiply   
)

◆ BEATMUP_OBJ() [27/32]

BEATMUP_OBJ ( Beatmup::Color::Matrix  ,
matLeft  ,
hLeft   
)

◆ BEATMUP_OBJ() [28/32]

BEATMUP_OBJ ( Beatmup::Color::Matrix  ,
matRight  ,
hRight   
)

◆ BEATMUP_OBJ() [29/32]

BEATMUP_OBJ ( Beatmup::Color::Matrix  ,
matResult  ,
hResult   
)

◆ JNIMETHOD() [107/113]

JNIMETHOD ( jfloat  ,
getElement  ,
Java_Beatmup_Imaging_ColorMatrix  ,
getElement   
)

◆ BEATMUP_OBJ() [30/32]

BEATMUP_OBJ ( Beatmup::Color::Matrix  ,
mat  ,
hInst   
)

◆ JNIMETHOD() [108/113]

JNIMETHOD ( void  ,
setElement  ,
Java_Beatmup_Imaging_ColorMatrix  ,
setElement   
)

◆ JNIMETHOD() [109/113]

JNIMETHOD ( jlong  ,
newShader  ,
Java_Beatmup_Shading_ImageShader  ,
newImageShader   
)

◆ JNIMETHOD() [110/113]

return (jlong) new Beatmup JNIMETHOD ( void  ,
setSourceCode  ,
Java_Beatmup_Shading_ImageShader  ,
setSourceCode   
)
new

◆ BEATMUP_OBJ() [31/32]

BEATMUP_OBJ ( Beatmup::ImageShader  ,
shader  ,
hInstance   
)

◆ setSourceCode()

shader setSourceCode ( javaChar  )

◆ ReleaseStringUTFChars()

jenv ReleaseStringUTFChars ( src  ,
javaChar   
)

◆ NewStringUTF() [2/3]

return jenv NewStringUTF ( Beatmup::ImageShader::INPUT_IMAGE_ID.  c_str())

◆ NewStringUTF() [3/3]

return jenv NewStringUTF ( Beatmup::ImageShader::INPUT_IMAGE_DECL_TYPE.  c_str())

◆ JNIMETHOD() [111/113]

JNIMETHOD ( jlong  ,
newShaderApplicator  ,
Java_Beatmup_Shading_ShaderApplicator  ,
newShaderApplicator   
)

◆ return() [6/6]

return ( JNIEnv *  jenv,
jobject  ,
jlong  hInst,
jobject  jBitmap,
jstring  uniformName 
)
new

Definition at line 1182 of file wrapper_imag.cpp.

1188 {
1189  BEATMUP_ENTER;
1192  BEATMUP_STRING(uniformName);
1193  applicator->addSampler(bitmap, uniformNameStr);
1194 }
A task applying an image shader to a bitmap.
Beatmup::InternalBitmap * bitmap
return(jlong) new Beatmup jlong hInst
jlong jobject jBitmap
BEATMUP_STRING(name)

◆ JNIMETHOD() [112/113]

JNIMETHOD ( void  ,
setOutput  ,
Java_Beatmup_Shading_ShaderApplicator  ,
setOutput   
)

◆ BEATMUP_OBJ() [32/32]

BEATMUP_OBJ ( Beatmup::ShaderApplicator  ,
applicator  ,
hInst   
)

◆ BEATMUP_OBJ_OR_NULL() [5/5]

BEATMUP_OBJ_OR_NULL ( Beatmup::AbstractBitmap  ,
bitmap  ,
jBitmap   
)

◆ setOutputBitmap()

applicator setOutputBitmap ( bitmap  )

◆ JNIMETHOD() [113/113]

JNIMETHOD ( void  ,
setShader  ,
Java_Beatmup_Shading_ShaderApplicator  ,
setShader   
)

Variable Documentation

◆ jclass

jclass
Initial value:

Definition at line 65 of file wrapper_imag.cpp.

◆ jobject

jobject

Definition at line 74 of file wrapper_imag.cpp.

◆ hScene

jlong hScene
Initial value:

Definition at line 74 of file wrapper_imag.cpp.

◆ jLayer

jlong jobject jLayer
Initial value:

Definition at line 74 of file wrapper_imag.cpp.

◆ jSubscene

jlong jobject jobject jSubscene
Initial value:

Definition at line 74 of file wrapper_imag.cpp.

◆ newbie

Beatmup::Scene::Layer* newbie = &scene->addScene(*subscene)

Definition at line 78 of file wrapper_imag.cpp.

◆ jScene

JNIEnv jlong jobject jScene
Initial value:

Definition at line 128 of file wrapper_imag.cpp.

◆ n

jlong jint n = scene->getLayerCount()

Definition at line 131 of file wrapper_imag.cpp.

◆ index

jlong jint index
Initial value:

Definition at line 150 of file wrapper_imag.cpp.

◆ name

jlong jstring name
Initial value:

Definition at line 159 of file wrapper_imag.cpp.

◆ layer

Beatmup::Scene::Layer * layer = scene->getLayer(nameStr.c_str())

Definition at line 163 of file wrapper_imag.cpp.

◆ x

jlong jint x = x

Definition at line 170 of file wrapper_imag.cpp.

◆ y

jlong jint jint y
Initial value:

Definition at line 170 of file wrapper_imag.cpp.

◆ hLayer

jlong hLayer
Initial value:

Definition at line 182 of file wrapper_imag.cpp.

◆ visible

jlong jboolean visible
Initial value:

Definition at line 199 of file wrapper_imag.cpp.

◆ phantom

return layer isVisible () ? JNI_TRUE jlong jboolean phantom
Initial value:

Definition at line 215 of file wrapper_imag.cpp.

◆ a11

jlong jfloat jfloat jfloat a11

Definition at line 229 of file wrapper_imag.cpp.

◆ a12

jlong jfloat jfloat jfloat jfloat a12

Definition at line 229 of file wrapper_imag.cpp.

◆ a21

jlong jfloat jfloat jfloat jfloat jfloat a21

Definition at line 229 of file wrapper_imag.cpp.

◆ a22

jlong jfloat jfloat jfloat jfloat jfloat jfloat a22
Initial value:

Definition at line 229 of file wrapper_imag.cpp.

◆ mapping

jlong jint mapping = layer->getMapping()

Definition at line 232 of file wrapper_imag.cpp.

◆ factor

jlong jfloat factor

Definition at line 300 of file wrapper_imag.cpp.

◆ fixx

jlong jfloat jfloat fixx

Definition at line 300 of file wrapper_imag.cpp.

◆ fixy

jlong jfloat jfloat jfloat fixy
Initial value:

Definition at line 300 of file wrapper_imag.cpp.

◆ a

JNIEnv jlong jint jfloat jfloat jfloat jfloat jfloat a
Initial value:

Definition at line 307 of file wrapper_imag.cpp.

◆ r

return (jlong) new Beatmup jfloat r

Definition at line 314 of file wrapper_imag.cpp.

◆ g

return (jlong) new Beatmup jfloat jfloat g

Definition at line 314 of file wrapper_imag.cpp.

◆ b

return (jlong) new Beatmup jfloat jfloat jfloat b

Definition at line 314 of file wrapper_imag.cpp.

◆ jColor

jlong jobject jColor
Initial value:

Definition at line 321 of file wrapper_imag.cpp.

◆ jBitmap

jlong jobject jBitmap
Initial value:

Definition at line 406 of file wrapper_imag.cpp.

◆ else

else
Initial value:

Definition at line 412 of file wrapper_imag.cpp.

◆ jMask

jlong jobject jMask
Initial value:

Definition at line 419 of file wrapper_imag.cpp.

◆ radius

jlong jfloat radius
Initial value:

Definition at line 433 of file wrapper_imag.cpp.

◆ width

jlong jint width
Initial value:

Definition at line 447 of file wrapper_imag.cpp.

◆ inPixels

jlong jfloat jfloat jboolean inPixels
Initial value:

Definition at line 475 of file wrapper_imag.cpp.

◆ jShader

jlong jobject jShader
Initial value:

Definition at line 489 of file wrapper_imag.cpp.

◆ jEnv

jobject jEnv
Initial value:

Definition at line 500 of file wrapper_imag.cpp.

◆ renderer

Definition at line 503 of file wrapper_imag.cpp.

◆ hRenderer

jlong hRenderer
Initial value:

Definition at line 508 of file wrapper_imag.cpp.

◆ jenv

JNIEnv* jenv

Definition at line 523 of file wrapper_imag.cpp.

◆ fetch

jlong jboolean fetch
Initial value:

Definition at line 561 of file wrapper_imag.cpp.

◆ jCtx

jobject jCtx
Initial value:

Definition at line 599 of file wrapper_imag.cpp.

◆ height

jlong jint jint height
Initial value:

Definition at line 599 of file wrapper_imag.cpp.

◆ pixelFormat

jobject jint jint jint pixelFormat
Initial value:

Definition at line 599 of file wrapper_imag.cpp.

◆ bitmap

◆ hBitmap

jlong hBitmap
Initial value:

Definition at line 621 of file wrapper_imag.cpp.

◆ hInputBitmap

jlong hInputBitmap

Definition at line 653 of file wrapper_imag.cpp.

◆ hOutputBitmap

jlong jlong hOutputBitmap

Definition at line 653 of file wrapper_imag.cpp.

◆ x1

jlong jlong jint x1

Definition at line 653 of file wrapper_imag.cpp.

◆ y1

jlong jlong jint jint y1

Definition at line 653 of file wrapper_imag.cpp.

◆ x2

jlong jlong jint jint jint x2

Definition at line 653 of file wrapper_imag.cpp.

◆ y2

jlong jlong jint jint jint jint y2

Definition at line 653 of file wrapper_imag.cpp.

◆ left

jlong jlong jint jint jint jint jint left

Definition at line 653 of file wrapper_imag.cpp.

◆ top

jlong jlong jint jint jint jint jint jint top
Initial value:

Definition at line 653 of file wrapper_imag.cpp.

◆ crop

Definition at line 657 of file wrapper_imag.cpp.

◆ rect

Beatmup::IntRectangle rect(x1, y1, x2, y2) ( x1  ,
y1  ,
x2  ,
y2   
)

◆ outOrigin

Beatmup::IntPoint outOrigin(left, top) ( left  ,
top   
)

◆ jobj

jobject jobj

Definition at line 698 of file wrapper_imag.cpp.

◆ hInstance

return (jlong) new Beatmup jlong hInstance
Initial value:

Definition at line 720 of file wrapper_imag.cpp.

◆ op

jlong jint op
Initial value:

Definition at line 744 of file wrapper_imag.cpp.

◆ w

jlong jint w

Definition at line 760 of file wrapper_imag.cpp.

◆ h

return (jlong) new Beatmup jfloat h

Definition at line 760 of file wrapper_imag.cpp.

◆ op1x

jlong jint jint jint op1x

Definition at line 760 of file wrapper_imag.cpp.

◆ op1y

jlong jint jint jint jint op1y

Definition at line 760 of file wrapper_imag.cpp.

◆ op2x

jlong jint jint jint jint jint op2x

Definition at line 760 of file wrapper_imag.cpp.

◆ op2y

jlong jint jint jint jint jint jint op2y

Definition at line 760 of file wrapper_imag.cpp.

◆ outx

jlong jint jint jint jint jint jint jint outx

Definition at line 760 of file wrapper_imag.cpp.

◆ outy

jlong jint jint jint jint jint jint jint jint outy
Initial value:

Definition at line 760 of file wrapper_imag.cpp.

◆ size

jlong jobject size

Definition at line 772 of file wrapper_imag.cpp.

◆ op1Origin

jlong jobject jobject op1Origin

Definition at line 772 of file wrapper_imag.cpp.

◆ op2Origin

Definition at line 772 of file wrapper_imag.cpp.

◆ outputOrigin

Initial value:

Definition at line 772 of file wrapper_imag.cpp.

◆ tolerance

jlong jfloat tolerance
Initial value:

Definition at line 815 of file wrapper_imag.cpp.

◆ hold

jlong jint jfloat hold

Definition at line 822 of file wrapper_imag.cpp.

◆ release

jlong jint jfloat jfloat release
Initial value:

Definition at line 822 of file wrapper_imag.cpp.

◆ xy

jlong jintArray xy
Initial value:

Definition at line 829 of file wrapper_imag.cpp.

◆ xyPtr

jint* xyPtr = jenv->GetIntArrayElements(xy, NULL)

Definition at line 832 of file wrapper_imag.cpp.

◆ count

int count = (int)jenv->GetArrayLength(xy) / 2

Definition at line 833 of file wrapper_imag.cpp.

◆ flag

jlong jboolean flag
Initial value:

Definition at line 842 of file wrapper_imag.cpp.

◆ return

return

Definition at line 862 of file wrapper_imag.cpp.

◆ step

jlong jint jfloat step
Initial value:
{
std::vector<int> xy
jlong jintArray xy

Definition at line 869 of file wrapper_imag.cpp.

◆ BEATMUP_ENTER

BEATMUP_ENTER

Definition at line 871 of file wrapper_imag.cpp.

◆ result

return result = jenv->NewIntArray(xy.size())

Definition at line 897 of file wrapper_imag.cpp.

◆ javaxy

jint* javaxy = jenv->GetIntArrayElements(result, NULL)

Definition at line 898 of file wrapper_imag.cpp.

◆ pn

int pn = 0

Definition at line 899 of file wrapper_imag.cpp.

◆ jInputBitmap

jlong jobject jInputBitmap
Initial value:

Definition at line 920 of file wrapper_imag.cpp.

◆ jOutputBitmap

jlong jobject jOutputBitmap
Initial value:

Definition at line 928 of file wrapper_imag.cpp.

◆ hInst

jlong hInst

Definition at line 945 of file wrapper_imag.cpp.

◆ jMat

jlong jobject jMat
Initial value:

Definition at line 945 of file wrapper_imag.cpp.

◆ mat

* mat = filter->getMatrix()

Definition at line 957 of file wrapper_imag.cpp.

◆ out

JNIEnv jlong jint out

Definition at line 962 of file wrapper_imag.cpp.

◆ bias

JNIEnv jlong jint jfloat bias

Definition at line 962 of file wrapper_imag.cpp.

◆ s

JNIEnv jlong jfloat jfloat jfloat jfloat s

Definition at line 973 of file wrapper_imag.cpp.

◆ v

jlong jint jint jfloat v
Initial value:

Definition at line 973 of file wrapper_imag.cpp.

◆ preservedColor

Beatmup::color3f preservedColor { (float)r, (float)g, (float)b }

Definition at line 986 of file wrapper_imag.cpp.

◆ allow

jlong jboolean allow
Initial value:

Definition at line 991 of file wrapper_imag.cpp.

◆ jOutput

JNIEnv jlong jobject jOutput
Initial value:

Definition at line 1035 of file wrapper_imag.cpp.

◆ mode

JNIEnv jlong jint mode
Initial value:

Definition at line 1045 of file wrapper_imag.cpp.

◆ val

JNIEnv jlong jfloat val
Initial value:

Definition at line 1063 of file wrapper_imag.cpp.

◆ hInstTo

return (jlong) new Beatmup jlong hInstTo

Definition at line 1104 of file wrapper_imag.cpp.

◆ hInstFrom

return (jlong) new Beatmup jlong jlong hInstFrom
Initial value:

Definition at line 1104 of file wrapper_imag.cpp.

◆ matTo

* matTo = *matFrom

Definition at line 1108 of file wrapper_imag.cpp.

◆ hLeft

jlong hLeft

Definition at line 1112 of file wrapper_imag.cpp.

◆ hRight

jlong jlong hRight

Definition at line 1112 of file wrapper_imag.cpp.

◆ hResult

jlong jlong jlong hResult
Initial value:

Definition at line 1112 of file wrapper_imag.cpp.

◆ matResult

* matResult = (*matLeft) * (*matRight)

Definition at line 1117 of file wrapper_imag.cpp.

◆ elem

mat elem[x][y] = v

Definition at line 1137 of file wrapper_imag.cpp.

◆ src

return (jlong) new Beatmup jlong jstring src
Initial value:

Definition at line 1152 of file wrapper_imag.cpp.

◆ javaChar

const char* javaChar = jenv->GetStringUTFChars(src, 0)

Definition at line 1155 of file wrapper_imag.cpp.