silvaren / easyrs Goto Github PK
View Code? Open in Web Editor NEWConvenience RenderScript tools for processing common Android formats such as Bitmap and NV21.
License: MIT License
Convenience RenderScript tools for processing common Android formats such as Bitmap and NV21.
License: MIT License
Because of render scrips files https://github.com/silvaren/easyrs/tree/master/easyrs/src/main/rs), does this lib work with Android 64bit App(arm64-v8a)?
Is there a way to set opacity on either LUT or 3D LUT? The Android docs do not have an alpha channel in 3D LUT but they do for LUT...
The library has worked well for me during debug. Thanks. When testing with espresso, the renderscript library fails to load. Maybe this is not related to your library, but if you have a pointer to help, would appreciate it.
How about using android.renderscript instead of android.support.v8.renderscript everywhere?
Here quote from docs (https://developer.android.com/guide/topics/renderscript/compute):
When developing an Android application that uses RenderScript, you can access its API from Java in one of two ways:
android.renderscript - The APIs in this class package are available on devices running Android 3.0 (API level 11) and higher.
android.support.v8.renderscript - The APIs in this package are available through a Support Library, which allows you to use them on devices running Android 2.3 (API level 9) and higher.
Here are the tradeoffs:If you use the Support Library APIs, the RenderScript portion of your application will be compatible with devices running Android 2.3 (API level 9) and higher, regardless of which RenderScript features you use. This allows your application to work on more devices than if you use the native (android.renderscript) APIs.
Certain RenderScript features are not available through the Support Library APIs.
If you use the Support Library APIs, you will get (possibly significantly) larger APKs than if you use the native (android.renderscript) APIs.
I believe currently almost no-one (?) targeting API level < 11, whereas smaller apk sounds good.
Also I've got some build problem when adding support for android.support.v8.renderscript in my gradle build, but I guess it's internal problem which requires to dig deeper on my side.
I could try migrate whole code to use android.renderscript instead of support one if you agree
this library can support androidx?
Is possibile to cropping image from a rect?
Hi, thanks for your great project. I want to implent a custom blend filter such screen blend and passing intensity as a parameter but could not find a solution. Could you help me to implent it?
error: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava
Solution: in gradle:
dependencies {
...
implementation('io.github.silvaren:easyrs:0.5.3') { exclude module: 'guava' }
}
When I tried to use the method Lut3D.apply3dLut , I found I cannot instantiate a Lut3DParams.Cube
Anyway, I admit this is a very good tool.
But, please make improvement.
Hi, I'm trying to make easyrs work in my project.It has minSdkVersion 21 and targetSdkVersion 22 and I getting erros like
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
There is a way to make it work with this configuration?
(I just need to get a NV21 byte array from a bitmap)
Thanks
Is it possible to update that tool to support jpeg compression? I have read that mentioned algorithm is not well suitable for gpu processing. do you planning to add that functionality?
I am getting this issue: Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:25:9-36
is also present at [io.github.silvaren:easyrs:0.5.3] AndroidManifest.xml:12:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:23:5-115:19 to override.
Great lib.
with using Blend, is it possible to mod to allow to place the second image at a position over the first image?
Example. Image 1 if full and image 2 is quater size with left/top padding of 20 for example. Like Picture in Picture.
Hello, first of all thanks for your great library!
I am now trying to do something to each frame returned by Android Camera 2 API (Which I guess most user of this library do).
Note that I have already specified YUV_240_888 for the ImageReader:
mFrameImageReader = ImageReader.newInstance(largest.getWidth() / 4, largest.getHeight() / 4,
ImageFormat.YUV_420_888, 2);
And in onImageAvailable:
@Override
public void onImageAvailable(ImageReader reader) {
Image image = reader.acquireNextImage();
try {
if (onFrameCallback != null) {
ByteBuffer buffer = image.getPlanes()[0].getBuffer();
byte[] bytes = new byte[buffer.capacity()];
buffer.get(bytes);
Bitmap frameBitmap = YuvToRgb.yuvToRgb(rs, bytes, width, height);
Log.i("onFrame", frameBitmap.getWidth() + ", " + frameBitmap.getHeight());
}
} finally {
image.close();
}
}
When I attach a debugger, I can see the conversion line is executed but before the logging line, the app crashes without any stacktrace, instead giving this error message:
Fatal signal 7 (SIGBUS), code 2, fault addr 0xbe68f040 in tid 1699
Do you have any idea / any working example with Camera 2 API?
By the way, Camera 1 returns NV21 format and I have tried with Camera 1 API and NV21 works perfectly. But Camera 2 does not support NV21...
Hi, what is the type of blur used here? Gaussian, Box or any other? What could be the opencv equivalent of the same?I tried to replicate the result with opencv gaussian blur with same kernel size; but result seems to be different
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.