OpenGL and reminders of camera

Hello

I try to combine the camera API with openGL (so I can generate overlays and others on the images of the camera natively) and encounter a few problems, I hope someone here can help me to solve.

I use the new NDK 2.1.0 beta for the playbook and AOS opengl during initialization and the egl via bbutil generic functions provided in the examples. After that, I initialize the library of the camera, put in place a suitable photo viewfinder and issue the command to take a picture. This set works very well without worries.

I then use the image_callback to camera_take_photo() to perform additional analysis on the photo taken, extract the image of her data, everything works still fine, upward until the point where I'm trying to generate a texture from the data.

I have a global variable of GLuint named tex - like in the examples, for simplicity - and I call glGenTextures(1,&tex) in the callback function, which causes segfault for me. It didn't matter if I use a GLuint * tex, with appropriate adaptations of variable and it does not work when I switch the GLuint as the last parameter of the callback function.

Everyone is already has some experience on the camera API callbacks, or does anybody know that opengl is still completely initialized when run it callback functions? The function of debugger displays a large number of threads, but I'm not skilled enough in BB programming yet to know that it is what goes wrong.

Any help would be appreciated,

OK, so apparently a lot more trial and error after exploration, it turns out that openGL is indeed not initialized during the execution of the callback functions.

Just thought I should let people here know to maybe save the headaches.

Tags: BlackBerry Developers

Similar Questions

  • Satellite A350-13 b - OpenGL and Radeon HD3650

    Hello

    My laptop is the Satellite A350-13 b with ATI Mobility Radeon HD3650.

    I found that I have OpenGL 1.1 (7/7) and partially 1.2 (1/8).

    I installed the latest drivers from ATI, modded with Mobility Modder site (also tried drivers from the Toshiba website - no results).

    I found that the modded drivers require OpenGL patch to make it work.

    Must be added:

    HKLM\Software\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers\ati2dvag
    "Version" = "2" REG_DWORD %
    'DriverVersion' = '1' REG_DWORD %
    'Flags' = '1' REG_DWORD %
    "Dll"="atioglxx.dll" REG_SZ %

    But after he OpenGL Extensions Viewer see values (1.1 and 1.2).

    How is it possible to check the highest available version OpenGl and operate?

    I have a file called atioglxx.dll in Windows\System32 and registry entries mentioned above, but OpenGL Extensions Viewer says:

    Renderer: GDI generic
    Vendor: Microsoft Corporation
    Memory: 512 MB
    Version: 1.1.0
    Shading language version: N/A

    Texture size max: 1024 x 1024
    Max texture coordinates: 0
    Max vertex texture image capacity: 0
    Units of image texture max: 0
    Max geometry texture units: 0
    Value of filtering anisotropic max: 0
    Maximum number of light sources: 8
    Maximum window size: 16384 x 16384
    Components of top uniform max: 0
    Fragment components uniform max: 0
    Uniform components of geometry max: 0
    Max of the floats: 0
    Samples of max: 0
    Max draw buffers: 0

    Extensions: 3

    GL_EXT_bgra
    GL_EXT_paletted_texture
    GL_WIN_swap_hint

    Main features
    v1.1 (100% - 7/7)
    v1.2 (12% - 1/8)
    v1.3 (0% - 0/9)
    v1.4 (0% - 0/15)
    v1.5 (0% - 0/3)
    v2.0 (0% - 0/10)
    v2.1 (0% - 0/3)
    v3.0 (0% - 0/23)
    v3.1 (0% - 0/8)
    v3.2 (0% - 0/9)
    v3.3 (0% - 0/9)
    v4.0 (0% - 0/13)
    v4.1 (0% - 0/8)

    For the OpenGL driver version check (current: later known 1.1.0: 1.1.0):
    Latest version of found display drivers
    According to the database, you use the latest display drivers for your video card.

    No ICD registry entry
    The OpenGL driver does not expose the SOFTWARE/Microsoft/Windows (NT) / CurrentVersion/OpenGLDrivers registry entry. Could not detect the version of the driver, the revision of the driver name and the name.

    No support of the compiled vertex array
    This can lead to loss of performance in certain applications.

    No support of the singlepass
    This can lead to loss of performance in certain applications.

    No support for the secondary color
    Some applications can make not made salient polygon correctly.

    No support for S3TC compression
    This can lead to loss of performance in certain applications.

    No support from flange edge texture
    This feature adds control for edge clamping texel filtering. Some programs may not properly making the textures (black line border).

    No support for vertex program
    This function allows programming of vertex (equivalent to DX8 Vertex Shader). Some current or future OpenGL programs may require this functionality.

    No support fragment program
    This feature allows programmatically pixels (equivalent to DX9 Pixel Shader). Some current or future OpenGL programs may require this functionality.

    No OpenGL Shading Language support
    This can break compatibility for applications using by pixel shading.

    No support Frame buffer objects
    This can break compatibility for applications that use the rendering to texture functions.

    Some found texture units
    This can slow down some applications using fragment programs or extended texture mapping.

    Check the extension:
    GL_EXT_color_subtable could not be found, but has the entry point glColorSubTableEXT

    Thanks in advance for the help.

    PS: I'm from Poland, so keep in mind ;)

    Hello

    Nice ad, but what's the problem now? You publish many technical information that they are not useful, but what is your problem?

  • Handles sign and reminders

    I'm having some problems with the Panel handles and reminders, I think I can be misunderstanding exactly what consititues a 'panel '.

    My program has only a single panel with three tabs, namely panels and section orders of my .h file looks like this:

    #define PANEL 1 / * callback function: panelCB * /.
    #define PANEL_TAB 2

    My problem comes in the reminders when I try to set or get values of control, I have a reminder of command button that looks like this:

    int CVICALLBACK StartLoggingClicked (int, int int event, control panel,
    void * callbackData, int eventData1, int eventData2)
    {
    switch (event)
    {
    case EVENT_COMMIT:
    SetTabPageAttribute (panelHandle, PANEL_TAB, ATTR_DIMMED, 0, 1);
    SetTabPageAttribute (panelHandle, PANEL_TAB, ATTR_DIMMED, 1, 1);
               
    SetCtrlAttribute (Panel, TAB_MON_COMMAND_PAUSEMON, ATTR_DIMMED, 0);
    SetCtrlAttribute (Panel, TAB_MON_COMMAND_STOPMON, ATTR_DIMMED, 0);

    break;
    }
    return 0;
    }

    panelHandle is the global variable assigned by the call to LoadPanel. When I look at the table of values and panelHandle they are different (for example, panelHandle = 1, Panel = 4). Coincidentally (or not...) 4 is the value assigned to the command button in the .h file.

    If I do: SetTabPageAttribute (Panel, PANEL_TAB, ATTR_DIMMED, 0, 1).

    I get an error "the control is not of the type expected by the function", but it works very well with the global panelHandle.

    If I do: SetCtrlAttribute (panelHandle, TAB_MON_COMMAND_PAUSEMON, ATTR_DIMMED, 0);

    I get an error 'Invalid control ID', but it works with the parameter callback 'panel '.

    I have another article of the code in a function called by the recall:

    GetCtrlVal (panelHandle, TAB_BOARD_STRING_DATAFILENAME, & t_LogFilePath);

    Gives the error "the command has not value.

    If I pass the value of the 'panel' reminder to the function and do:

    GetCtrlVal (Panel, TAB_BOARD_STRING_DATAFILENAME, & t_LogFilePath);

    I get "invalid arugment type: found"pointer to table 260 char", should"pointer to int.

    It seems to me that the values of the Group and panelHandle do not match to what I think they do because, it seems, control of the values that I'm passing are false (i.e. do not correspond to the correct Panel) in some cases. Any help would be greatly appreciated.

    I searched for details about what did and did not imply a Panel to try to understand why I see different values, but I have not found anything. If there is a reference that I missed please point me to it.

    We are here in the typical question everyone who uses a tomb tab control. Be telegraphic,

    each page of a tab control (actually is) a panel separated with its own handle to use when it comes to control over the page of the tab itself.

    To be more clear, the tab is control over your main table and dealing with the tab control must be made with the handle of the main panel (panelhandle in your case): this is the case, for example when you use SetTabPageAttribute or GetTabPageAttribute or the setting / recovery of the attributes of the tab itself control (ATTR_TOP and so on); This is also true if you want to run the control tab with InsertTabPage, CopyTabPage and so on.

    However, before turning to a control on a page of tabs, you must retrieve the handle Panel appropriate to the page of the tab itself, for example using GetPanelHandleFromTabPage. With this handle, you can send commands located on the tab page. Only in the case where your reminder is triggered from a control in a page of tabs and wants to act on another control on the same page, you can use 'panel', which is the first parameter in the callback of control: this is the case when the reminder of a button on the tab page should read the value of a control on the same page. But if your button is elsewhere (outside of the tab control or on another page of the tab) you will need to retrieve the correct handle before you attempt to set a control: otherwise will result in errors that you find and a little more, you don't have yet.

    The example of TabExample bundled with the CVI (\samples\userint folder) can be useful depth in the use of the tab control.

  • I was listening to an audio book, and my sound came out, as well as the icon in the taskbar. How can I solve this problem?

    I was listening to an audio book, and my sound came out, as well as the speaker in task bar icon. how it?

    If you listen to the book on your computer you can try to restart the computer to see if that fixes the problem.

  • No connection between the computer and the digital camera.

    Tried to download from camera to the computer. After I connect my digital camera to the computer using the usb cable, said digital camera looking for a connection. I never get a guess that the cause I can't go any further. What I am doing wrong. I looked in my computer and the camera seems to be there.  First, he tries with this camera. I have a HP and HP M305 camera.

    You send messages in Forum Vista and you're missing to this effect on the experience of the current users of XP.

    http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP
    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

    I gave you the original link will show also a lot more updates and drivers for XP also.

    Software & Driver Downloads
    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=2093&LC=en&cc=us&DLC=en&sw_lang=&product=410648

    To start Devmgmt.msc type device manager in the Start Menu / RUN box.  Make sure that the camera is fixed when you look in the Device Manager.

    Troubleshoot: Windows won't recognize USB hard drive / fix unassigned drive letter
    http://www.TechSpot.com/VB/topic122125.html

  • I want to play Freecell and solitaire that came with my PC, but I get this error: "Windows cannot open this file: free cell.exe.mui.»

    Can help please I want to play freecell and solitaire that came with my pc but I get this error message... Why would he do that? How can I solve this problem?

    original title: windows cannot open this file: free cell.exe.mui.

    Hello

    1. don't you make changes to the computer?

    These can help you:

    Method 1: Perform a system restore

    To get the procedure perform system restore, open the site mentioned below

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    Method 2: Clean boot

    For the procedure to place the computer in a clean boot, open the site mentioned below

    http://support.microsoft.com/kb/929135.

    Note: To set the computer back to start normally, use the step 7 in the same link.

    Method 3: Check the new user account

    Open the site mentioned below for steps to create a new user account

    http://windows.microsoft.com/en-US/windows-vista/Create-a-user-account.

    I hope this helps.

  • I left my computer, but the lid down, and when I came back, my screen properties were screwed to the top

    My computer was working fine. Then I went somewhere, but I left my laptop, but the lid closed, and when I came back, the properties of the screen are all seeds. The wallpaper was very large, and any Web site I try to open is also very important.

    Hello

    Try rebooting to see if that helps.

    Use the system restore to a point before that happened.

    Start - Control Panel - restore and backup center - upper left repair Windows

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    --------------------------------------------

    Also, check to see if they apply:

    Right click on desktop - customize - display settings - Set resolution.

    Right click on desktop - customize - top left adjust font size (DPI)

    CTRL + mouse wheel works ZOOM

    CTRL + and CTRL - work ZOOM in and out

    Your mouse/touchpad probably incorporates a ZOOM to it.

    Your system also has a magnifier built in which could be a problem - it can be as often
    programmed to work on the mouse/keyboards.

    How to turn on the Magnifier On or Off in Vista
    http://www.Vistax64.com/tutorials/125037-Magnifier-turn-off.html

    To see if your mouse/touchpad is set to ZOOM or enlarge use Control Panel - mouse.

    The TouchPad (if you have one) probably also has Hotkey controls so check with the system manufacturer
    Support, online documentation and their forums, where appropriate.

    ==================================================

    Are you logged on as ADMINISTRATOR?

    Right click on desktop - customize - top left adjust font size (DPI)

    How to change the font size in Windows Vista
    http://www.vista4beginners.com/how-to-change-font-size

    ============================

    Start - type in the search-> REGEDIT search at the top of list - click box right on - RUN AS ADMIN

    HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics

    In the right pane, change AppliedDPI (double-click on it) of 78 who is from 120 to 60, which is (96)

    I hope this helps.

  • How should I organize appointments and reminders

    How should I organize appointments and reminders

    Usually using an e-mail management program, you need to install

    for example, Windows Live Mail (free), or MS Outlook usually a part of the paid for the MS Office suite

  • I transferred my Lightroom 5.7.1 my cell phone to my PC. I put in the serial number, you press "next" and another box came up saying that the updated code was for and upgraded version and I should put in the old version the serial number - this I can't f

    I transferred my Lightroom 5.7.1 my cell phone to my PC. I put in the serial number, you press "next" and another box came up saying that the updated code was for and upgraded version and I should put in the old version the serial number - this that I can't find

    you will need to this previous version number and serial number.

    If you purchased the previous version of adobe or registered with adobe, check your account: ID Adobe

    in otherwise, find the serial number of your product Adobe quickly

  • Lightroom6.3 and raw9.3 camera edit in photoshop - now the dialog appears asking you to render using Lightroom

    Hello

    Someone has seen it before and know what to do with it, beyond the obvious?

    What is happening since I started using photoshop CS6 standalone and lightroom with camera raw 9.3 6.3.

    When I look at updates in Photoshop, it shows no. The version of CR is certainly older than bright rooms.

    How this update. I thought that it would use the version running on the mac.

    Dan

    Editindialogue.jpg

    camerarawPhotoshop.jpg

    Hi Dan,.

    The message you get is due to an "ACR Mismatch" between the 2 applications that you use.

    So when you receive the warning lag in Lightroom, simply use the option "Rendered using Lightroom". It uses the engine cab of Lightroom to make the file and then passes the Photoshop file for editing.

    The only real consequence of this is that the rendered (Tiff or PSD) file is created by Lightroom (and appears in Lightroom) before being transmitted to the PS for editing. If you edit and save in the PS, no difference for a LR6.3 > CS6 workflow, but if you leave the editing in PS, you're now left with a Tiff/PSD in LR which you probably do not want and therefore have to remove. Other than that, the workflow works very well.

    Kind regards

    Tanuj

  • I bought a new carmera and Photoshop CS4 camera Raw can not read the ARW files.  I downloaded the lateset update but still can not read how can I get this problem solved thanks

    I bought a new carmera and Photoshop CS4 camera Raw can not read the ARW files.  I downloaded the lateset update but still can not read how can I get this problem solved thanks

    Hi tonyf,.

    Greetings!

    Each device is compatible with a minimum version of camera raw.

    Here is the complete list: https://helpx.adobe.com/camera-raw/kb/camera-raw-plug-supported-cameras.html

    Please check if you have this version of the camera installed which include your raw files.

    It would also be that your photoshop will not have to install this version of camera raw as its very old.

    In this case, you can convert your raw files to DNG and can use it.

    To convert the files to DNG, you must download and install the DNG Converter.

    Here is the link:

    Windows: Adobe - Adobe Camera Raw and DNG Converter: for Windows

    MAC: http://www.adobe.com/support/downloads/product.jsp?platform=Macintosh&product=106

    Concerning

    Jitendra

  • Ideas to explain why, when you work with raw files in LR 2015 with Edit in PS 2015 and use the Camera Raw filter, the profile in the Lens Correction Panel tab is missing

    Ideas to explain why, when you work with raw files in LR 2015 with Edit in PS 2015 and use the Camera Raw filter, the profile in the Lens Correction Panel tab is missing? Mac OS X 10.10.5.  I reinstalled the OS and Lightroom and PS, nothing helps.

    Hi ParadigmRose,

    This is expected as profile tab behavior does not appear under Lens Correction Panel if you go to Camera Raw Filter in Photoshop

    However, profile tab would be there if you open a raw image directly in camera raw first.

    You can go to the filter menu > Lens correction in Photoshop, if you want to search for profiles with edit in Photoshop.

    Kind regards

    Claes

  • I bought CS4 - have the box etc serial # - use an IMac with Snow Leopard - went to use the bridge and a screen came saying Adobe Bridge HOme Service was interrupted to concentrate on other resources... uh, I bought this software and how can we now

    I bought CS4 - have the box etc serial # - use an IMac with Snow Leopard - went to use the bridge and a screen came saying Adobe Bridge HOme Service has been discontinued for focus on other resources... uh, I bought this software and how it can now be 'gone '? Pls help - bridge is very convenient and I paid for it!

    See here:

    Deleted Adobe Bridge Home service

  • Sony Vaio VGN-Z31WN Windows Vista Business.  Serial number: 28286061 serial number: J003R5FO IMEI: 355891020417161 I recently had some work to my computer and when I came back, my Adobe suite has been uninstalled.  Should what steps I take

    Sony Vaio VGN-Z31WN

    Windows Vista professional.

    Serial number: 28286061

    Service etiquette: J003R5FO

    IMEI: 355891020417161

    I recently had some work to my computer and when I came back, my Adobe suite has been uninstalled.

    What steps should I take to re - install / checking the codes etc?

    Reinstall from the original with the original serial number disks. There is a good chance it will work. If she says "too many activations", you must contact Adobe.

    Please be aware that this is a public forum and all information that you post can be seen by the world. It's often a bad idea to post the serial numbers, because they can be stolen and Rob you of what you paid for. (Less a matter of concern for the machine numbers, but a real problem for the software). There is nothing that we can do your series of Sony or the serial number, only Sony could use it.

  • I downloaded and installed the camera Raw 8.8 and ORF files that will always open in Lightroom 5.7.

    I downloaded and installed the camera Raw 8.8 and ORF files that will always open in Lightroom 5.7.  The files were made using the new Olympus E - M5 II, who is on the list of supported devices.  When I run Lightroom and check the on the screen, it says it's Lightroom version 5.7, but Camera Raw 8.7 despite my having upgraded to 8.8.  I use a MacBook Pro with OS 10.7.5 Please advise on how to import and use ORF files in Lightroom.

    The files were made using the new Olympus E - M5 II, who is on the list of supported devices.

    Yes, this camera is supported by Camera Raw 8.8.

    Camera Raw plugin | Supported devices

    However, the required 'Version of Lightroom Minimum' column is empty. Lightroom does not yet support it.

    Like the so-called Warunicorn, Lightroom does not use the Camera Raw using Photoshop plugin. It uses its own Raw conversion engine so you have to wait for an update of Lightroom separate for this camera edit Raw files in Lightroom. Or use the DNG Converter and work with the DNG in Lightroom.

Maybe you are looking for

  • Battery for HP Pavilion Sleekbook 14

    Does anyone know what battery I need for the HP Pavilion Sleekbook 14-b008ea? He was bought as a display model of the Comet and had not one included.

  • Save the table on column

    Hello I have attached a simplified VI which records data after taking measurements of my measuring instrument.  Each iteration in the while loop is a measure.  Currently the data in two columns.  Can you help me save the data after each while the ite

  • Why is my web cam image to feel upside down using Skype?

    Whenever I try to do a video Skype call to someone, the video image od me is upside down.  How can I put my web cam image upside on the right?

  • Return one Page to another class?

    Simple question here: I have a class that contains my 'main' nagivation pane (menu) for my application. For everything that needs to be addded, I have other classes that do all the work (create the page, add content, etc.). The main class, I want to

  • IPSEC VPN between Pix 515E and 1841 router

    Hi all BACKGROUND We have implemented a site to site VPN IPSEC between a Pix 515E 8.0 operation (4) and an 1841 using static IP addresses at both ends. We used CCP on the router and the ASDM the pix to build initial tunnels. Now the site with the rou