Git Product home page Git Product logo

easyrs's People

Contributors

silvaren avatar vensent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyrs's Issues

Opacity?

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...

Testing in espresso, fails to load renderscript

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.

android.support.v8.renderscript... to android.renderscript....

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

androidx

this library can support androidx?

Create custom blend filter

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?

guava error + solution:

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' }
}

Cannot instantiate the Lut3DParams.Cube

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.

NV21 to Bitmap

Hi, thanks for your lib, I tried to convert NV21 to Bitmap but the result is that. That is live preview, I'm using PhotoApparat library
22768188_1681536138583941_1018852009_o

Doesn't work with api level 22

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

JPEG compression

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?

Allowbackup issue

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.

Blend Left Top

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.

Support of converting YUV_240_888 to Bitmap

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...

rs blur type

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.