1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question CameraEx2 onImageAvailable event

Discussion in 'Android Questions' started by walterf25, Jul 10, 2019.

  1. walterf25

    walterf25 Well-Known Member Licensed User

    Hi @Erel, I know we're not supposed to direct our questions directly to you, but i really think that since you wrote this library I may have a better chance at getting a straight answer from you, I am currently working on creating an App at work to test some custom made Cameras by Qualcom company, i am in need of having access to the onImageAvailable Event, I went through your library and I see that you have an Event that is supposed to be raised depending on the ImageFormat, below is the code taken from your Camera2 Library:

    Code deleted due to inappropriately posting it without Consent.

    My question is, I tried setting the following Sub to different values including 35 in the PreviewFormat parameter to see If I can raise the PreviewTaken Event without any success, For the Value = 35 it seems to work but when I take a picture i get the following error:
    For any other value except 256 I keep getting an error saying that whatever previewformat i pass to the function is not supported, which brings me to my next question, I have posted this next question on this thread, about getting the supported preview formats.

    Any advice you can give me on how to accomplish what i'm trying to do here?

    Thanks,
    Walter
     
    Last edited: Jul 11, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    Did I ever publish the library source code?
     
  3. walterf25

    walterf25 Well-Known Member Licensed User

    No, i looked at the Jar file with a tool called JDGUI.

    Regards,
    Walter
     
  4. DonManfred

    DonManfred Expert Licensed User

    In fact you were decompiling it as JD is a JavaDecompiler.
    You/we are not allowed to Decompile them.
     
  5. walterf25

    walterf25 Well-Known Member Licensed User

    The tools only shows the source code, you can't really do anything else with it, I would agree with you if I was using Dex2Jar or some other similar tool, but I apologize if I wasn't supposed to, just wanted to take a look at the code, I mean the library is based on Android's Native Camera2 API, i don't think there's any harm on that, i would say If the library was based on Erel's own proprietary API then Yes by all means shoot me :(

    Walter
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    1. All libraries call underlying APIs. The library code is propriety.
    2. Showing the source code = reverse engineering the library. This is not allowed. I don't really mind if you do it for yourself however you shouldn't post the reverse engineered code and you shouldn't except me to provide support based on this code.
     
    walterf25 and DonManfred like this.
  7. walterf25

    walterf25 Well-Known Member Licensed User

    Got it, and again I apologize, i have deleted the code and written "Deleted due to inappropriately posting it without consent" instead.

    Thanks again.
    Walter
     
    Erel and José J. Aguilar like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice