|
Beatmup
|
#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 getJavaReference & | scene (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::Layer * | newbie = &scene->addScene(*subscene) |
| jobject | jScene |
| int | n = scene->getLayerCount() |
| jlong jint | index |
| jlong jstring | name |
| Beatmup::Scene::Layer * | layer = 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::AffineMapping & | mapping = 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::SceneRenderer * | renderer = new Beatmup::SceneRenderer() |
| jlong | hRenderer |
| JNIEnv * | jenv |
| jlong jboolean | fetch |
| jobject | jCtx |
| jobject jint jint | height |
| jobject jint jint jint | pixelFormat |
| Beatmup::InternalBitmap * | bitmap = 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) |
| JNIMETHOD | ( | jlong | , |
| newScene | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| newScene | |||
| ) |
Creates new scene.
| return() jlong | ( | new | Beatmup::Scene() | ) |
| JNIMETHOD | ( | jlong | , |
| newSceneLayer | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| newSceneLayer | |||
| ) |
Creates new layer containing a scene.
| BEATMUP_OBJ | ( | Beatmup::Scene | , |
| subscene | , | ||
| jSubscene | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Scene | , |
| scene | , | ||
| hScene | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newBitmapLayer | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| newBitmapLayer | |||
| ) |
Creates new bitmap layer in a given scene.
| JNIMETHOD | ( | jlong | , |
| newMaskedBitmapLayer | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| newMaskedBitmapLayer | |||
| ) |
Creates new masked bitmap layer in a given scene.
| JNIMETHOD | ( | jlong | , |
| newShapedBitmapLayer | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| newShapedBitmapLayer | |||
| ) |
Creates new shaped bitmap layer in a given scene.
| JNIMETHOD | ( | jlong | , |
| newShadedBitmapLayer | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| newShadedBitmapLayer | |||
| ) |
| JNIMETHOD | ( | void | , |
| deleteLayers | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| deleteLayers | |||
| ) |
Removes global references.
| BEATMUP_OBJ | ( | Beatmup::Scene | , |
| scene | , | ||
| jScene | |||
| ) |
| for | ( | ) |
Definition at line 132 of file wrapper_imag.cpp.
| JNIMETHOD | ( | jint | , |
| getLayerCount | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerCount | |||
| ) |
Returns number of layers.
| JNIMETHOD | ( | jobject | , |
| getLayerByIndex | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerByIndex | |||
| ) |
Retrieves layer by its index.
| return $pool getJavaReference& scene | ( | index | ) |
| JNIMETHOD | ( | jobject | , |
| getLayerByName | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerByName | |||
| ) |
Retrieves a layer by name.
| BEATMUP_STRING | ( | name | ) |
| if | ( | ! | layer | ) |
| JNIMETHOD | ( | jobject | , |
| getLayerAtPoint | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerAtPoint | |||
| ) |
| JNIMETHOD | ( | void | , |
| setLayerName | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setLayerName | |||
| ) |
Renames given layer.
| BEATMUP_OBJ | ( | Beatmup::Scene::Layer | , |
| layer | , | ||
| hLayer | |||
| ) |
| layer setName | ( | nameStr. | c_str() | ) |
| JNIMETHOD | ( | jstring | , |
| getLayerName | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerName | |||
| ) |
Returns layer name.
| JNIMETHOD | ( | void | , |
| setLayerVisibility | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setLayerVisibility | |||
| ) |
| JNIMETHOD | ( | jboolean | , |
| getLayerVisibility | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerVisibility | |||
| ) |
| return layer isVisible () ? JNI_TRUE JNIMETHOD | ( | void | , |
| setLayerPhantomFlag | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setLayerPhantomFlag | |||
| ) |
Phantom layer mode management.
| JNIMETHOD | ( | jboolean | , |
| getLayerPhantomFlag | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerPhantomFlag | |||
| ) |
| return layer isPhantom () ? JNI_TRUE JNIMETHOD | ( | void | , |
| setLayerTransform | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setLayerTransform | |||
| ) |
| mapping matrix setElements | ( | (float) | a11, |
| (float) | a12, | ||
| (float) | a21, | ||
| (float) | a22 | ||
| ) |
| JNIMETHOD | ( | void | , |
| getLayerTransform | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerTransform | |||
| ) |
| JNIMETHOD | ( | void | , |
| setLayerX | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setLayerX | |||
| ) |
Changes layer horizontal position.
Definition at line 300 of file wrapper_imag.cpp.
| JNIMETHOD | ( | jfloat | , |
| getLayerX | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerX | |||
| ) |
Returns layer horizontal position.
| JNIMETHOD | ( | void | , |
| setLayerY | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setLayerY | |||
| ) |
Changes layer vertical position.
| JNIMETHOD | ( | jfloat | , |
| getLayerY | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerY | |||
| ) |
Returns layer vertical position.
| JNIMETHOD | ( | jfloat | , |
| getLayerOrientation | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getLayerOrientation | |||
| ) |
Returns layer orientation in degrees.
| JNIMETHOD | ( | void | , |
| setLayerCenterPos | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setLayerCenterPos | |||
| ) |
Sets layer center position.
| layer getMapping ().setCenterPosition(Beatmup JNIMETHOD | ( | void | , |
| scaleLayer | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| scaleLayer | |||
| ) |
| JNIMETHOD | ( | void | , |
| rotateLayer | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| rotateLayer | |||
| ) |
| JNIMETHOD | ( | void | , |
| setBitmapLayerModulationColor | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setBitmapLayerModulationColor | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Scene::BitmapLayer | , |
| layer | , | ||
| hLayer | |||
| ) |
| JNIMETHOD | ( | void | , |
| getBitmapLayerModulationColor | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getBitmapLayerModulationColor | |||
| ) |
| JNIMETHOD | ( | void | , |
| setBitmapLayerMaskPos | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setBitmapLayerMaskPos | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Scene::CustomMaskedBitmapLayer | , |
| layer | , | ||
| hLayer | |||
| ) |
| JNIMETHOD | ( | void | , |
| scaleBitmapLayerMask | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| scaleBitmapLayerMask | |||
| ) |
| layer getMaskMapping | ( | ) |
| JNIMETHOD | ( | void | , |
| rotateBitmapLayerMask | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| rotateBitmapLayerMask | |||
| ) |
| JNIMETHOD | ( | void | , |
| skewBitmapLayerMask | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| skewBitmapLayerMask | |||
| ) |
| JNIMETHOD | ( | void | , |
| setBitmapLayerBgColor | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setBitmapLayerBgColor | |||
| ) |
| JNIMETHOD | ( | void | , |
| getBitmapLayerBgColor | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getBitmapLayerBgColor | |||
| ) |
| JNIMETHOD | ( | void | , |
| setBitmapLayerImageTransform | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setBitmapLayerImageTransform | |||
| ) |
| JNIMETHOD | ( | void | , |
| getBitmapLayerImageTransform | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getBitmapLayerImageTransform | |||
| ) |
| JNIMETHOD | ( | void | , |
| setBitmapLayerMaskTransform | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setBitmapLayerMaskTransform | |||
| ) |
| JNIMETHOD | ( | void | , |
| getBitmapLayerMaskTransform | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getBitmapLayerMaskTransform | |||
| ) |
| JNIMETHOD | ( | void | , |
| setBitmapLayerBitmap | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setBitmapLayerBitmap | |||
| ) |
| JNIMETHOD | ( | void | , |
| setMaskedBitmapLayerMask | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setMaskedBitmapLayerMask | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Scene::MaskedBitmapLayer | , |
| layer | , | ||
| hLayer | |||
| ) |
| layer setMask | ( | mask | ) |
| JNIMETHOD | ( | void | , |
| setShapedBitmapLayerCornerRadius | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setShapedBitmapLayerCornerRadius | |||
| ) |
Sets shaped bitmap mask corners radius.
| BEATMUP_OBJ | ( | Beatmup::Scene::ShapedBitmapLayer | , |
| layer | , | ||
| hLayer | |||
| ) |
| layer setCornerRadius | ( | (float) | radius | ) |
| JNIMETHOD | ( | jfloat | , |
| getShapedBitmapLayerCornerRadius | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getShapedBitmapLayerCornerRadius | |||
| ) |
| return | ( | jfloat | ) | -> getCornerRadius() |
| JNIMETHOD | ( | void | , |
| setShapedBitmapLayerBorderWidth | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setShapedBitmapLayerBorderWidth | |||
| ) |
| layer setBorderWidth | ( | (float) | width | ) |
| JNIMETHOD | ( | jfloat | , |
| getShapedBitmapLayerBorderWidth | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getShapedBitmapLayerBorderWidth | |||
| ) |
| JNIMETHOD | ( | void | , |
| setShapedBitmapLayerSlopeWidth | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setShapedBitmapLayerSlopeWidth | |||
| ) |
| layer setSlopeWidth | ( | (float) | width | ) |
| JNIMETHOD | ( | jfloat | , |
| getShapedBitmapLayerSlopeWidth | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getShapedBitmapLayerSlopeWidth | |||
| ) |
| JNIMETHOD | ( | void | , |
| setShapedBitmapLayerInPixelsSwitch | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setShapedBitmapLayerInPixelsSwitch | |||
| ) |
| JNIMETHOD | ( | jboolean | , |
| getShapedBitmapLayerInPixelsSwitch | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| getShapedBitmapLayerInPixelsSwitch | |||
| ) |
| return layer getInPixels () ? JNI_TRUE JNIMETHOD | ( | void | , |
| setShadedBitmapLayerShader | , | ||
| Java_Beatmup_Rendering_Scene | , | ||
| setShadedBitmapLayerShader | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Scene::ShadedBitmapLayer | , |
| layer | , | ||
| hLayer | |||
| ) |
| BEATMUP_OBJ_OR_NULL | ( | Beatmup::ImageShader | , |
| shader | , | ||
| jShader | |||
| ) |
| applicator setShader | ( | shader | ) |
| JNIMETHOD | ( | jlong | , |
| newSceneRenderer | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| newSceneRenderer | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Android::Context | , |
| ctx | , | ||
| jEnv | |||
| ) |
| return | ( | jlong | ) |
| BEATMUP_OBJ | ( | Beatmup::AbstractBitmap | , |
| bitmap | , | ||
| jBitmap | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::SceneRenderer | , |
| renderer | , | ||
| hRenderer | |||
| ) |
| floodFill setOutput | ( | bitmap | ) |
| JNIMETHOD | ( | void | , |
| resetOutput | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| resetOutput | |||
| ) |
| renderer resetOutput | ( | ) |
| JNIMETHOD | ( | void | , |
| setOutputMapping | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| setOutputMapping | |||
| ) |
| renderer setOutputMapping | ( | (Beatmup::SceneRenderer::OutputMapping) | mapping | ) |
| JNIMETHOD | ( | jint | , |
| getOutputMapping | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| getOutputMapping | |||
| ) |
| JNIMETHOD | ( | void | , |
| setOutputReferenceWidth | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| setOutputReferenceWidth | |||
| ) |
| renderer setOutputReferenceWidth | ( | (int) | width | ) |
| JNIMETHOD | ( | jint | , |
| getOutputReferenceWidth | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| getOutputReferenceWidth | |||
| ) |
| JNIMETHOD | ( | void | , |
| setOutputPixelsFetching | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| setOutputPixelsFetching | |||
| ) |
| JNIMETHOD | ( | jboolean | , |
| getOutputPixelsFetching | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| getOutputPixelsFetching | |||
| ) |
| return renderer getOutputPixelsFetching () ? JNI_TRUE JNIMETHOD | ( | void | , |
| setBackgroundBitmap | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| setBackgroundBitmap | |||
| ) |
| JNIMETHOD | ( | jobject | , |
| pickLayer | , | ||
| Java_Beatmup_Rendering_SceneRenderer | , | ||
| pickLayer | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newInternalBitmap | , | ||
| Java_Beatmup_Bitmap | , | ||
| newInternalBitmap | |||
| ) |
Creates new internally managed bitmap.
| BEATMUP_OBJ | ( | Beatmup::Context | , |
| ctx | , | ||
| jCtx | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newNativeBitmap | , | ||
| Java_Beatmup_Bitmap | , | ||
| newNativeBitmap | |||
| ) |
Creates new bitmap from Android bitmap object.
Returns bitmap width in pixels.
| BEATMUP_OBJ | ( | Beatmup::AbstractBitmap | , |
| bitmap | , | ||
| hBitmap | |||
| ) |
| JNIMETHOD | ( | jint | , |
| getPixelFormat | , | ||
| Java_Beatmup_Bitmap | , | ||
| getPixelFormat | |||
| ) |
Returns bitmap pixel format.
| bitmap zero | ( | ) |
| BEATMUP_OBJ | ( | Beatmup::AbstractBitmap | , |
| input | , | ||
| hInputBitmap | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::AbstractBitmap | , |
| output | , | ||
| hOutputBitmap | |||
| ) |
| return filter setInput | ( | input | ) |
| resampler setOutput | ( | output | ) |
| input getContext | ( | ) |
| JNIMETHOD | ( | void | , |
| invert | , | ||
| Java_Beatmup_Bitmap | , | ||
| invert | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newExternalImage | , | ||
| Java_Beatmup_Android_ExternalBitmap | , | ||
| newExternalImage | |||
| ) |
| JNIMETHOD | ( | void | , |
| notifyUpdate | , | ||
| Java_Beatmup_Android_ExternalBitmap | , | ||
| notifyUpdate | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Android::ExternalBitmap | , |
| bitmap | , | ||
| hBitmap | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newBinaryOperation | , | ||
| Java_Beatmup_Imaging_BinaryOperation | , | ||
| newBinaryOperation | |||
| ) |
|
new |
| BEATMUP_OBJ | ( | Beatmup::BitmapBinaryOperation | , |
| operation | , | ||
| hInstance | |||
| ) |
| operation setOperand1 | ( | bitmap | ) |
| JNIMETHOD | ( | void | , |
| setOperand2 | , | ||
| Java_Beatmup_Imaging_BinaryOperation | , | ||
| setOperand2 | |||
| ) |
| operation setOperand2 | ( | bitmap | ) |
| JNIMETHOD | ( | void | , |
| setOperation | , | ||
| Java_Beatmup_Imaging_BinaryOperation | , | ||
| setOperation | |||
| ) |
| operation setOperation | ( | (Beatmup::BitmapBinaryOperation::Operation) | op | ) |
| operation resetCrop | ( | ) |
| JNIMETHOD | ( | void | , |
| setCrop | , | ||
| Java_Beatmup_Imaging_BinaryOperation | , | ||
| setCrop | |||
| ) |
| 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 | |||
| ) |
| $pool factory setIntPoint | ( | jenv | , |
| operation-> | getOutputOrigin(), | ||
| outputOrigin | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newFloodFill | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| newFloodFill | |||
| ) |
|
new |
| BEATMUP_OBJ | ( | Beatmup::FloodFill | , |
| floodFill | , | ||
| hInstance | |||
| ) |
| floodFill setInput | ( | bitmap | ) |
| JNIMETHOD | ( | void | , |
| setMaskPos | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| setMaskPos | |||
| ) |
| Beatmup::IntPoint p | ( | (int) | x, |
| (int) | y | ||
| ) |
| floodFill setMaskPos | ( | p | ) |
| JNIMETHOD | ( | void | , |
| setTolerance | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| setTolerance | |||
| ) |
| floodFill setTolerance | ( | (float) | tolerance | ) |
| JNIMETHOD | ( | void | , |
| setBorderPostprocessing | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| setBorderPostprocessing | |||
| ) |
| floodFill setBorderPostprocessing | ( | (Beatmup::FloodFill::BorderMorphology) | op, |
| hold | , | ||
| release | |||
| ) |
| JNIMETHOD | ( | void | , |
| setComputeContours | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| setComputeContours | |||
| ) |
Enables / disables border contours computation.
| floodFill setComputeContours | ( | flag | = =JNI_TRUE | ) |
| JNIMETHOD | ( | jint | , |
| getContourCount | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| getContourCount | |||
| ) |
| return | ( | jint | ) | -> getContourCount() |
| JNIMETHOD | ( | jint | , |
| getContourPointCount | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| getContourPointCount | |||
| ) |
| JNIMETHOD | ( | jintArray | , |
| getContour | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| getContour | |||
| ) |
Returns a layer border component (a contour)
| 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 | ) |
| JNIMETHOD | ( | jobject | , |
| getBoundingBox | , | ||
| Java_Beatmup_Imaging_FloodFill | , | ||
| getBoundingBox | |||
| ) |
Returns mask bounding box.
| JNIMETHOD | ( | void | , |
| setBitmaps | , | ||
| Java_Beatmup_Imaging_Filters_PixelwiseFilter | , | ||
| setInput | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Filters::PixelwiseFilter | , |
| filter | , | ||
| hInstance | |||
| ) |
| BEATMUP_OBJ_OR_NULL | ( | Beatmup::AbstractBitmap | , |
| input | , | ||
| jInputBitmap | |||
| ) |
| JNIMETHOD | ( | void | , |
| setBitmaps | , | ||
| Java_Beatmup_Imaging_Filters_PixelwiseFilter | , | ||
| setOutput | |||
| ) |
| BEATMUP_OBJ_OR_NULL | ( | Beatmup::AbstractBitmap | , |
| output | , | ||
| jOutputBitmap | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newColorMatrixTransform | , | ||
| Java_Beatmup_Imaging_Filters_ColorMatrixTransform | , | ||
| newColorMatrixTransform | |||
| ) |
|
new |
| 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 | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Filters::ColorMatrix | , |
| filter | , | ||
| hInstance | |||
| ) |
| filter setHSVCorrection | ( | (float) | h, |
| (float) | s, | ||
| (float) | v | ||
| ) |
| filter setColorInversion | ( | preservedColor | , |
| (float) | s, | ||
| (float) | v | ||
| ) |
| JNIMETHOD | ( | void | , |
| setAllowIntegerApprox | , | ||
| Java_Beatmup_Imaging_Filters_ColorMatrixTransform | , | ||
| setAllowIntegerApprox | |||
| ) |
| filter allowIntegerApproximations | ( | allow | = =JNI_TRUE | ) |
| JNIMETHOD | ( | jboolean | , |
| allowIntegerApprox | , | ||
| Java_Beatmup_Imaging_Filters_ColorMatrixTransform | , | ||
| allowIntegerApprox | |||
| ) |
| return | ( | jboolean | ) | -> isIntegerApproximationsAllowed() |
| JNIMETHOD | ( | jlong | , |
| newSepia | , | ||
| Java_Beatmup_Imaging_Filters_Sepia | , | ||
| newSepia | |||
| ) |
|
new |
Definition at line 1020 of file wrapper_imag.cpp.
| 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__ | |||
| ) |
|
new |
|
new |
|
new |
| BEATMUP_OBJ | ( | Beatmup::Color::Matrix | , |
| matFrom | , | ||
| hInstFrom | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Color::Matrix | , |
| matTo | , | ||
| hInstTo | |||
| ) |
| JNIMETHOD | ( | void | , |
| multiply | , | ||
| Java_Beatmup_Imaging_ColorMatrix | , | ||
| multiply | |||
| ) |
| 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 | |||
| ) |
| BEATMUP_OBJ | ( | Beatmup::Color::Matrix | , |
| mat | , | ||
| hInst | |||
| ) |
| JNIMETHOD | ( | void | , |
| setElement | , | ||
| Java_Beatmup_Imaging_ColorMatrix | , | ||
| setElement | |||
| ) |
| JNIMETHOD | ( | jlong | , |
| newShader | , | ||
| Java_Beatmup_Shading_ImageShader | , | ||
| newImageShader | |||
| ) |
|
new |
| BEATMUP_OBJ | ( | Beatmup::ImageShader | , |
| shader | , | ||
| hInstance | |||
| ) |
| shader setSourceCode | ( | javaChar | ) |
| JNIMETHOD | ( | jlong | , |
| newShaderApplicator | , | ||
| Java_Beatmup_Shading_ShaderApplicator | , | ||
| newShaderApplicator | |||
| ) |
Definition at line 1182 of file wrapper_imag.cpp.
| BEATMUP_OBJ | ( | Beatmup::ShaderApplicator | , |
| applicator | , | ||
| hInst | |||
| ) |
| BEATMUP_OBJ_OR_NULL | ( | Beatmup::AbstractBitmap | , |
| bitmap | , | ||
| jBitmap | |||
| ) |
| applicator setOutputBitmap | ( | bitmap | ) |
| jclass |
Definition at line 65 of file wrapper_imag.cpp.
| jobject |
Definition at line 74 of file wrapper_imag.cpp.
| jlong hScene |
Definition at line 74 of file wrapper_imag.cpp.
Definition at line 74 of file wrapper_imag.cpp.
Definition at line 74 of file wrapper_imag.cpp.
| Beatmup::Scene::Layer* newbie = &scene->addScene(*subscene) |
Definition at line 78 of file wrapper_imag.cpp.
Definition at line 128 of file wrapper_imag.cpp.
| jlong jint n = scene->getLayerCount() |
Definition at line 131 of file wrapper_imag.cpp.
| jlong jint index |
Definition at line 150 of file wrapper_imag.cpp.
| jlong jstring name |
Definition at line 159 of file wrapper_imag.cpp.
| Beatmup::Scene::Layer * layer = scene->getLayer(nameStr.c_str()) |
Definition at line 163 of file wrapper_imag.cpp.
| jlong jint x = x |
Definition at line 170 of file wrapper_imag.cpp.
| jlong jint jint y |
Definition at line 170 of file wrapper_imag.cpp.
| jlong hLayer |
Definition at line 182 of file wrapper_imag.cpp.
| jlong jboolean visible |
Definition at line 199 of file wrapper_imag.cpp.
Definition at line 215 of file wrapper_imag.cpp.
| jlong jfloat jfloat jfloat a11 |
Definition at line 229 of file wrapper_imag.cpp.
| jlong jfloat jfloat jfloat jfloat a12 |
Definition at line 229 of file wrapper_imag.cpp.
| jlong jfloat jfloat jfloat jfloat jfloat a21 |
Definition at line 229 of file wrapper_imag.cpp.
| jlong jfloat jfloat jfloat jfloat jfloat jfloat a22 |
Definition at line 229 of file wrapper_imag.cpp.
| jlong jint mapping = layer->getMapping() |
Definition at line 232 of file wrapper_imag.cpp.
| jlong jfloat factor |
Definition at line 300 of file wrapper_imag.cpp.
| jlong jfloat jfloat fixx |
Definition at line 300 of file wrapper_imag.cpp.
| jlong jfloat jfloat jfloat fixy |
Definition at line 300 of file wrapper_imag.cpp.
| JNIEnv jlong jint jfloat jfloat jfloat jfloat jfloat a |
Definition at line 307 of file wrapper_imag.cpp.
Definition at line 314 of file wrapper_imag.cpp.
Definition at line 314 of file wrapper_imag.cpp.
Definition at line 314 of file wrapper_imag.cpp.
Definition at line 321 of file wrapper_imag.cpp.
Definition at line 406 of file wrapper_imag.cpp.
| else |
Definition at line 412 of file wrapper_imag.cpp.
Definition at line 419 of file wrapper_imag.cpp.
| jlong jfloat radius |
Definition at line 433 of file wrapper_imag.cpp.
| jlong jint width |
Definition at line 447 of file wrapper_imag.cpp.
| jlong jfloat jfloat jboolean inPixels |
Definition at line 475 of file wrapper_imag.cpp.
Definition at line 489 of file wrapper_imag.cpp.
| jobject jEnv |
Definition at line 500 of file wrapper_imag.cpp.
| Beatmup::SceneRenderer* renderer = new Beatmup::SceneRenderer() |
Definition at line 503 of file wrapper_imag.cpp.
| jlong hRenderer |
Definition at line 508 of file wrapper_imag.cpp.
| JNIEnv* jenv |
Definition at line 523 of file wrapper_imag.cpp.
| jlong jboolean fetch |
Definition at line 561 of file wrapper_imag.cpp.
| jobject jCtx |
Definition at line 599 of file wrapper_imag.cpp.
| jlong jint jint height |
Definition at line 599 of file wrapper_imag.cpp.
| jobject jint jint jint pixelFormat |
Definition at line 599 of file wrapper_imag.cpp.
| Beatmup::Android::ExternalBitmap * bitmap = new Beatmup::InternalBitmap(*ctx, (Beatmup::PixelFormat)pixelFormat, (int)width, (int)height) |
Definition at line 602 of file wrapper_imag.cpp.
| jlong hBitmap |
Definition at line 621 of file wrapper_imag.cpp.
| jlong hInputBitmap |
Definition at line 653 of file wrapper_imag.cpp.
Definition at line 653 of file wrapper_imag.cpp.
Definition at line 653 of file wrapper_imag.cpp.
Definition at line 653 of file wrapper_imag.cpp.
Definition at line 653 of file wrapper_imag.cpp.
Definition at line 653 of file wrapper_imag.cpp.
Definition at line 653 of file wrapper_imag.cpp.
Definition at line 653 of file wrapper_imag.cpp.
| Beatmup::Crop crop |
Definition at line 657 of file wrapper_imag.cpp.
| Beatmup::IntPoint outOrigin(left, top) | ( | left | , |
| top | |||
| ) |
| jobject jobj |
Definition at line 698 of file wrapper_imag.cpp.
Definition at line 720 of file wrapper_imag.cpp.
| jlong jint op |
Definition at line 744 of file wrapper_imag.cpp.
| jlong jint w |
Definition at line 760 of file wrapper_imag.cpp.
Definition at line 760 of file wrapper_imag.cpp.
| jlong jint jint jint op1x |
Definition at line 760 of file wrapper_imag.cpp.
| jlong jint jint jint jint op1y |
Definition at line 760 of file wrapper_imag.cpp.
| jlong jint jint jint jint jint op2x |
Definition at line 760 of file wrapper_imag.cpp.
| jlong jint jint jint jint jint jint op2y |
Definition at line 760 of file wrapper_imag.cpp.
| jlong jint jint jint jint jint jint jint outx |
Definition at line 760 of file wrapper_imag.cpp.
| jlong jint jint jint jint jint jint jint jint outy |
Definition at line 760 of file wrapper_imag.cpp.
Definition at line 772 of file wrapper_imag.cpp.
Definition at line 772 of file wrapper_imag.cpp.
Definition at line 772 of file wrapper_imag.cpp.
| jlong jfloat tolerance |
Definition at line 815 of file wrapper_imag.cpp.
| jlong jint jfloat hold |
Definition at line 822 of file wrapper_imag.cpp.
| jlong jint jfloat jfloat release |
Definition at line 822 of file wrapper_imag.cpp.
| jlong jintArray xy |
Definition at line 829 of file wrapper_imag.cpp.
Definition at line 832 of file wrapper_imag.cpp.
Definition at line 833 of file wrapper_imag.cpp.
| jlong jboolean flag |
Definition at line 842 of file wrapper_imag.cpp.
| return |
Definition at line 862 of file wrapper_imag.cpp.
| jlong jint jfloat step |
Definition at line 869 of file wrapper_imag.cpp.
| BEATMUP_ENTER |
Definition at line 871 of file wrapper_imag.cpp.
Definition at line 897 of file wrapper_imag.cpp.
Definition at line 898 of file wrapper_imag.cpp.
| int pn = 0 |
Definition at line 899 of file wrapper_imag.cpp.
Definition at line 920 of file wrapper_imag.cpp.
Definition at line 928 of file wrapper_imag.cpp.
| jlong hInst |
Definition at line 945 of file wrapper_imag.cpp.
Definition at line 945 of file wrapper_imag.cpp.
| * mat = filter->getMatrix() |
Definition at line 957 of file wrapper_imag.cpp.
| JNIEnv jlong jint out |
Definition at line 962 of file wrapper_imag.cpp.
| JNIEnv jlong jint jfloat bias |
Definition at line 962 of file wrapper_imag.cpp.
| JNIEnv jlong jfloat jfloat jfloat jfloat s |
Definition at line 973 of file wrapper_imag.cpp.
| jlong jint jint jfloat v |
Definition at line 973 of file wrapper_imag.cpp.
| Beatmup::color3f preservedColor { (float)r, (float)g, (float)b } |
Definition at line 986 of file wrapper_imag.cpp.
| jlong jboolean allow |
Definition at line 991 of file wrapper_imag.cpp.
Definition at line 1035 of file wrapper_imag.cpp.
| JNIEnv jlong jint mode |
Definition at line 1045 of file wrapper_imag.cpp.
| JNIEnv jlong jfloat val |
Definition at line 1063 of file wrapper_imag.cpp.
Definition at line 1104 of file wrapper_imag.cpp.
Definition at line 1104 of file wrapper_imag.cpp.
| * matTo = *matFrom |
Definition at line 1108 of file wrapper_imag.cpp.
| jlong hLeft |
Definition at line 1112 of file wrapper_imag.cpp.
Definition at line 1112 of file wrapper_imag.cpp.
Definition at line 1112 of file wrapper_imag.cpp.
| * matResult = (*matLeft) * (*matRight) |
Definition at line 1117 of file wrapper_imag.cpp.
Definition at line 1152 of file wrapper_imag.cpp.
Definition at line 1155 of file wrapper_imag.cpp.