Another problem of camera!

Hello

I discovered a bug in my code that causes some videos recorded in the landscape to display incorrectly (laterally) rotated when played with the native multimedia player.

I only have been through hellovideocamera and can not find all the differences between my code and sample.

What I realized however is that mVideoAngle and mVfAngle are still the two 0 (creating viewfinder) initially after having called

if (camera_get_video_property(mCameraHandle,
            CAMERA_IMGPROP_ROTATION, &mVideoAngle) == CAMERA_EOK) {
        cout << "\n initial video angle" << mVideoAngle;
    }
    if (camera_get_videovf_property(mCameraHandle,
            CAMERA_IMGPROP_ROTATION, &mVfAngle) == CAMERA_EOK) {
        cout << "\n initial video viewfinder angle" << mVfAngle;
    }

I managed to get something other than 0 for the above code by replacing camera_get_video_property with camera_get_photo_property (I get 270), but then the video is upside down.

Please see the complete createViewfinder code below.

int MuteCamera::createViewfinder(camera_unit_t cameraUnit,
        const QString &group,
        const QString &id)
{
    mVideoFileDescriptor = -1;
    cout << "\n createViewfinder";
    cout.flush();
    mCameraHandle = CAMERA_HANDLE_INVALID;;
    if (mCameraHandle != CAMERA_HANDLE_INVALID) {
        cout << "camera already running";
        cout.flush();
        return EBUSY;
    }
    mCameraUnit = cameraUnit;

    camera_error_t  rc = camera_open(mCameraUnit,
            CAMERA_MODE_RW | CAMERA_MODE_ROLL,
            &mCameraHandle);

    if (rc != CAMERA_EOK) {
        cout << "could not open camera " << rc << "\n";
        return EIO;
    }
    cout << "\n camera opened";
    cout.flush();

    mShouldMirror = (mCameraUnit == CAMERA_UNIT_FRONT);
    querySupportedRotationsVideo();

    if (camera_get_video_property(mCameraHandle,
            CAMERA_IMGPROP_ROTATION, &mVideoAngle) == CAMERA_EOK) {
        cout << "\n initial video angle" << mVideoAngle;
    }
    if (camera_get_videovf_property(mCameraHandle,
            CAMERA_IMGPROP_ROTATION, &mVfAngle) == CAMERA_EOK) {
        cout << "\n initial video viewfinder angle" << mVfAngle;
    }
    if (camera_set_videovf_property(mCameraHandle,
            CAMERA_IMGPROP_WIN_GROUPID, group.toStdString().c_str(),
            CAMERA_IMGPROP_WIN_ID, id.toStdString().c_str()) == CAMERA_EOK) {
        cout << "viewfinder configured";
        if (camera_start_video_viewfinder(mCameraHandle, NULL, &status_callback_video, this) == CAMERA_EOK) {

            cout << "viewfinder started \n";
            cout.flush();
            return EOK;
        }
    }
    cout << "couldn't start viewfinder";
    cout.flush();
    camera_close(mCameraHandle);
    mCameraHandle = CAMERA_HANDLE_INVALID;
    return EIO;
}

Really puzzled with this - any help appreciated.

It turned out that I was variable initialization after you have created the page of the camera, rather than before.

Tags: BlackBerry Developers

Similar Questions

  • TEXT DISPLAY PROBLEM IN CAMERA RAW

    Hello

    I have a text display problem in Camera Raw. Where there are labels of boxes that need to be checked, for example in the preferences or settings to be pasted to another file, the text is unreadable print. What happens is that he takes to the bottom of half of the top line and half top of the bottom line, rather than by extending the line if the text is only on a single line. It is a problem for me to see all the options. It's the same on all the text of the label within the program.

    I have attached a few screenshots to illustrate the problem.

    Any ideas would be greatly appreciated.

    Thank you very much

    Carl

    The problem is not with the size of the screen, but with the "pixel density" (never forget, that the density of physical pixels of the monitor is indicated). Right-click on the desktop and select Properties (or go to control panel and select display). On the Control Panel, select Advanced; the general Panel contains the DPI setting. I guess that the parameter is now greater than 96 dpi.

    I created a thread on this problem, which must have been at least two years ago. The answer was, as 1. Adobe will solve the problem, 2. It is a problem only with the classic Windows style (under the appearance tab). I have not tested with the XP style, because I prefer the classic style; I'm cursed and live with this shit (my setting is 120dpi).

    BTW, this may be much worse than half-readable labels: buttons, fields, text can disappear completely (you may even not notice, that there should be other buttons and the Panel options)...

    Gabor

  • How to make El Capitan to recognize my Canon printer I've done what I think is everything: one clean install of El Capitan (another problem); Reinstall the software from the CD; Anon same impression reset. No luck at all.

    How do El Capitan to recognize my Canon printer? I did what I think, that's all I can: clean install of El Capitan (another problem); Reinstall the software of Canon from the CD; same impression reset - my printer shows not yet up! I tried LAN and USB.  No luck at all. The printer does not yet appear upward on the tree of USB in the reporting system.

    What printer model Canon...?

    kologano wrote:

    The printer does not yet appear upward on the tree of USB in the reporting system.

    This looks more like a bad USB cable or bad printer.

  • Cursor problem in camera raw

    Hi, I'm on a mac OS 10.11.1. 24 GB of memory are installed. The graphics card is NVIDIA Quadro 4000 2048 MB. I use photoshop CC 2015 01 Release. Recently I started having a problem in camera raw which may coincide with a recent update CC15. When I treat a raw file in ACR, words like clarity, contrast, exposure, etc., disappear as soon as I move a slider. This also happens when I use the camera raw filter. Move the sliders again changes the image, but I don't really know what I am drag once the descriptive text disappears.  I 'use the graphics processor' unchecked preferences in camera raw. Thanks for your help.problem.jpg

    Hi caligula,

    Please update the Camera Raw update again on your system to Version 9.3.

    Plugin Raw camera setup

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • I tried a lot of time to download Lightroom on my MacBookPro without success. I already remove the firewall. Perhaps because of a slow connection to the Lebanon? Or another problem?

    I tried a lot of time to download Lightroom on my MacBookPro without success. I already remove the firewall. Perhaps because of a slow connection to the Lebanon? Or another problem?

    Beatricel88978029 you receive specific when errors download Photoshop Lightroom?  For more information on how to resolve errors download please see error download and installation of the creative cloud application.

  • Hi, I have another problem, when people visit my site that they could not return to the home page

    Hi, I have another problem, when people visit my site that they could not return to the home page

    Hello

    Problem is in outline view.

    Please follow the steps below and you should be all set.

    1. go in the Plan view.

    2. right click on the 'HOME' page

    3. Select "Menu" > "include the Page containing the hyperlink.

    4 save the file and then try to preview.

    You should be all set.

    Concerning

    Vivek

  • manage the z-index property in the chrome browser (was: is there another problem with Chrome?)

    Hello

    I wonder is there another problem with Edge and Chrome.

    I know that something got sorted out but now I have a problem with rectangles (such as the hitboxes) not appearing is not in Chrome.

    Anyone know why this is happening?

    Hi Robyn,

    Looks like a problem with chrome. He is not able to manage the z-index property (although set) in this case. Due to which the user is not able to click on the button that is hidden by another element.

    There is a workaround solution you can do on board animate:

    You simply select the item named "s_cpl_fa_nav_x2" in the Panel edge ' Elements' animate and drag just below the element named "s_cpl_fa_0_guide_page1" and delete the selected item. This will place the first below the latter, with regard to the stacking order of the UI, and so the click event will work.

    I hope this works.

  • Perhaps another problem with Css

    I think this is another problem with my CSS is applied because of a problem but I have really no idea.

    The site is Alliance of injuries. The problem is with the images in the middle of the page. They are supposed to be in three rows of 3-3-2, but for some reason some they just below the other. When I click on Home.css in the "View Source", it is titled 'Page not found' don't know why.

    Anyone who has any ideas I would appreciate it.

    Brad

    First thing - you must stop using filenames with spaces in them.  That can get you into trouble.  Use only letters, numbers, dash or underscore - nothing else.

    Next thing, the image and CSS links in this page (located at the root of the site) are all (except two) wrong links related document, for example,.

    
    
    
    
    If the page is already at the root of the site, there is no ".." as possible.  It is sure to cause you problems.  All these links need to be just like this one (which is correct)-
    
    
    
    (although the Home.CSS file does not appear on the server!)
    The reason why your images are displayed in a vertical table is that each of them is contained in a
    container with no specified width (was this width specified in the Home.css file does not exist?).  So that they appear along a horizontal line, you need to specify the width of the div and float tag he left.
  • Another problem of MIAW

    Hi all

    I wonder if you can help me with another problem of MIAW I managed in. I want to create a MIAW custom shape window that runs at the opening of my film director. I am trying to apply a mask on my window using the following code

    global Mymovie

    on prepareMovie

    setting mask = 'Surf '.
    myMovie = window () .new ("MIAW_test")
    mymovie.fileName = 'MIAW.
    Set window("MIAW").appearanceOptions.mask = mas - mas is the bitmask 1 I want to ask my window
    horizOffset Set to 360
    Set vertOffset to 220
    set windowSize to the mymovie drawRect - defines the size of the window to the size of the film
    newRect to compensate for the value (windowSize, horizOffset, vertOffset)
    Set the rect of mymovie newRect
    myMovie.Open () - opens the window

    end

    The code does not work and I have no idea what is wrong with it. I tried to change several properties of my MIAW, but none of them seem to work. For example, another script I tried to change the type of the window is:

    global Mymovie

    on prepareMovie

    setting mask = 'Surf '.
    myMovie = window () .new ("MIAW_test")
    mymovie.fileName = 'MIAW.
    Window("MIAW").type = #tool
    horizOffset Set to 360
    Set vertOffset to 220
    set windowSize to the mymovie drawRect - defines the size of the window to the size of the film
    newRect to compensate for the value (windowSize, horizOffset, vertOffset)
    Set the rect of mymovie newRect
    myMovie.Open () - opens the window

    Yet once the script above does not work. Most of the examples I've tried on the adobe site also is nto working either with the release of Director MX 2004 I use 10.1.

    Finally, I would like to ask if you can suggest me any Xtra MIAW for MX 2004 10.1 that will allow me to manipulate the properties of MIAW easily without having to go through the hasle of lingo.

    Thank you very much

    Try to set the mask and various other appearanceOptions you want in the
    MIAW file itself via the tab display of IP model and save it
    file. Then, you don't need to put these things using the jargon before
    opening the window.

  • Problem of camera zoom - fuzzy shape in a composition that is in another publication

    I got a form within a composition, then the composition within another publication (my main one). When I use the camera in my main composition to zoom in the forms are blurred. I tried with forms and also solid with masks to create parts that I use for my animation, but the same thing happens.

    Surely, there is a simple way around this because all motion graphic videos I've seen are so strong.

    Any help would be appreciated!

    Turn on the Transformations of the collapse to your nested compositions.

  • Problem with camera 9900 blackBerry Smartphones

    When I select the camera feature on my phone I get the message

    "The camera is use by another application. Could not start the camera. Close other applications and try opening the camera again"

    I tried to remove the battery and the sim card and replace it, but the problem continues.

    Any ideas to fix this?

    Hey Hemang79,

    Welcome to the community of BlackBerry Support Forums.

    I can certainly help you.

    Follow the steps in this article to resolve the problem: www.blackberry.com/btsc/KB15544

    Let me know if you have any other questions.  See you soon.

  • Another problem Windows 7 Ultimate and the message 0xC004C003 error

    Sorry to bother you guys with another 0xC004C003 error, but I really don't understand why I get this error.

    I recently built myself a new computer and properly installed and activated my copy of Windows 7 Ultimate x 64. I decided to give the system a small upgrade and bought a second SSD and RAID 0 configuration configuration. When it came to the activation of the new construction, I get 0xC004C003 error. Is a reason to upgrade hard drive to get this error?

    I wanted to call activation MS but I have a slight problem with that, I speak much Chinese. Let me explain, I moved to China last year and I'm still fighting when people talk fast Chinese, the talker speaks very fast! Now I want to be clear, I was able to activate this key on this machine only 1 months ago. I actually got the imported copy of the United States because here in China I can only buy the Chinese version of the software or fake versions. I can not really afford to import a new copy and to be honest, I don't see why I should, what I have done is changed the configuration of hard disk.

    Any help would be most welcome and thank you for reading.

    Edit = Diag MGA

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0
    Validation caching Code online: n/a, hr = 0xc004f012
    Windows product key: *-* - FFCQH - GRQMF-T6CMM
    Windows product key hash: Riue/x/R9j30Z2bIJ7yrakqgfxE =
    Windows product ID: 00426-069-5784551-86938
    Windows product ID type: 5
    Windows license type: retail
    The Windows OS version: 6.1.7600.2.00010100.0.0.001
    ID: {629B7398-89B4-4015-974B-6790ABA09049} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Ultimate
    Architecture: 0 x 00000009
    Build lab: 7600.win7_gdr.101026 - 1503
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Internet Explorer\iexplore.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->
    [File mismatch: C:\Windows\system32\wat\watadminsvc.exe[Hr = 0 x 80070003]
    [File mismatch: C:\Windows\system32\wat\npwatweb.dll[Hr = 0 x 80070003]
    [File mismatch: C:\Windows\system32\wat\watux.exe[Hr = 0 x 80070003]
    [File mismatch: C:\Windows\system32\wat\watweb.dll[Hr = 0 x 80070003]

    Other data-->
    Office details: {629B7398-89B4-4015-974B-6790ABA09049}1.9.0027.06.1.7600.2.00010100.0.0.001x 64*-*-*-*-T6CMM5S-1-5-21-917638227-1205074682-757141463the system manufacturer,System Product NameAmerican Megatrends Inc. 00426-069-5784551-86938 0904 20121015000000.000000 + 00002BB0600018400FE08090409China Standard Time(GMT+08:00)03109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7600.16385

    Name: Windows 7 Ultimate edition
    Description: operating system Windows - Windows (r) 7, retail channel
    Activation ID: a0cde89c-3304-4157-b61c-c8ad785d1fad
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00426-00172-069-578455-00-2057-7600.0000-0722013
    Installation ID: 006524963346445051042175499601564022358766839126384761
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    Machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: T6CMM
    License status: initial grace period
    Time remaining: 43080 minute (s) on (29 day (s))
    Remaining Windows rearm count: 3
    Trust time: 14/03/2013-08:02:53

    Windows Activation Technologies-->
    HrOffline: 0x00000000
    HrOnline: n/a
    Beyond: 0 x 0000000000000000
    Event time stamp: n/a
    ActiveX: Not registered - 0 x 80040154
    The admin service: not registered - 0 x 80040154
    Output beyond bitmask:

    --> HWID data
    Current Hash HWID: KAAAAAAAAAABAAEAAQABAAAAAQABAAEAln1GcmxZ6ktYSPrPyowucw ==

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes, but no SLIC table
    Windows marker version: N/A
    OEMID and OEMTableID consistent: n/a
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    ALASKA APIC HAS M I
    FACP ALASKA A M I
    HPET ALASKA A M I
    ALASKA MCFG A M I
    FPDT ALASKA A M I
    SSDT SataRe SataTabl
    SSDT SataRe SataTabl
    SSDT SataRe SataTabl
    ADELINE ALASKA A M I

    Windows product ID: 00426-069-5784551-86938

    The ID of the product - 069 - indicates a not for resale MSDN account. If you are not the account holder and you bought it in a box at retail, the box and its contents is counterfeit. Request an immediate refund from the seller

    For more information, see this:

    http://social.Microsoft.com/forums/en-us/genuinewindows7/thread/a2444f34-0AFF-4f29-a8ac-67e28b0c0285

    And this:

    http://social.Microsoft.com/forums/en-us/genuinewindows7/thread/309bb621-92d5-43d6-98c1-2bb51b35607f

    To see how these counterfeits are more, see:

    http://www.YouTube.com/watch?v=hzqNNiOM0cs

    You can buy a legitimate windows from a legitimate retailer.

  • Problem updating Camera Raw in PSE8

    I PSE8 (no update available via help/updates) and a version of plugin Camera Raw default 5.5.0.97 installed.

    However I need at least version 6.2 of camera raw to be able to read my taken with the EOS 60 d raw files.

    When I try the updater 6.2 (or another more recent update) Application Adoble Manager gives an error message: "Failed to update" - updates cannot be applied. The patch is not applicable to you.

    It worked on my old computer, but when I transferred to my new computer pse8, I'm done with this problem.

    Is there a place I can dl pse8 with a newer camera raw plugin included?

    -There's a link to Camera Raw 6.2 'normal install' (not the update), so I can uninstall the version I have and install a new one?

    D ' other ideas?

    Thanks for your time,

    Kjetil Johannesen

    First of all, you are right that your camera requires the version of ACR 6.2 and PSE8 is indicated as being able to be upgraded to 6.2.

    FAQ: Photoshop Elements will work with my camera, or why does not open my raw files?

    So the question is, have you used the menu Help > Update to update your version of PSE8? Do you have an error message?

    If you used the menu Help > about Plugins and you're still on ACR 5.5, will have to find a way to install ACR 6.2 with PSE8.

    Download the correct version:

    Adobe: Photoshop Elements for Windows: Camera Raw 6.2 update

    Read the Readme file to install. http://www.Adobe.com/special/Photoshop/camera_raw/Camera_Raw_6.2_ReadMe.PDF

    Does that help?

  • iPhone 7 problem of camera Auto White Balance

    Hi guys, got my new iPhone 7 and had been shooting a lot of pictures with it. I noticed that all my whites in my photos appear yellowish and sometimes yellow in my photos may appear to be white / or with deep shades of yellow. I had attached 2 photos I took of a white wall in my office. 1 was captured by immediate shot in the camera application, while the other was shot after the camera go off focus. Not sure if it is a problem of software with the White Balance automatic camera or a hardware fault. I hope to hear advice from the community!

    I have iPhone 7 more on her white balance seems also more hot (more yellow) than the iPhone 6 s more.

    Friends with iPhone 7 also reported the same problem. Photos of the iPhone 7 more looks unnecessarily hot and yellow tinted.

  • Problem with camera integrated on Satellite P200-1BK

    Hello

    If all those who have this same problem and a solution would help me, it would be much appreciated.
    I had the laptop for 8 months and have not really used the web cam until recently. The problem is now, it was working fine until I was in the middle of a video call and the camera screen turned all green.

    Where there are distortions in the picture lines and green covering the picture.
    I have tried reinstalling the drivers for the webcam but have not been effective.
    If someone could help me it would be much appreciated.

    You use the Vista operating system?
    If Yes please check if all Vista updates are installed. I mean especially the Vista SP1.

    I see that you have updated the software of webcam, but please do this again after Vista update.
    Please don t forget to clean the operating system once the old webcam software has been removed using a software program such as CCLeaner.

    I put t know what program did you use to video conferencing, but it would be also a good idea to check if there are some updates because this issue could also be linked to this program too.

Maybe you are looking for

  • Error-200022 occurred at DAQmx start Task.vi

    Hello I have peripheral cDAQ and 3 modules that nor-9234 connected. My program (see attachment) works correctly with only 2 modules, but does not work with 3 modules. With 3 modules I have this error: "error-200022 occurred at Task.vi DAQmx Start.»  

  • Photosmart HP 5510 - will not print using black ink

    I have problems with my HP Photosmart 5510 all-in-One printer, because it will not print in black. All cartridges are brand new and are genuine HP cartridges. I've never used anything other than HP cartridges, and I believe that I have would be consi

  • Missing optical drives after removal and reinstallation of the only power cables.

    I had a problem with my cd - rw (plextor px-5224ta) and dvd - rom not opening not readers.  I opened my case and only disconnected the power cables, leaving cables ribbons connected, so that I can drag players a bit and work with trays to correct.  O

  • Where are stored all the images in office?

    I am not able to find the images in desktop in Windows 7. I would like to access the folder that seems to be very well hidden.

  • Make multiple copies of the bootable USB.

    Original title: AS bootable usb. CXC, I have a bootable USB key that contains a Windows 7 and an office package. I want to duplicate this package and I so (maybe three) of both of them. How can I do? Tim