What are the appropriate steps to rotate the viewfinder of the camera?
Another screen problem is driving me crazy.
I'm quite confused as to what are appropriate measures to turn the viewfinder window when the user rotates the device.
I seem to be able to get things market during the passage of a landscape to a landscape upside. But to me something else gives basically the things that I can't begin to describe. For example, when I go from landscape to portrait, I always get the bottom half of the screen to be the dark tone and the view backwards.
Say vf_win is the window of the viewfinder and the size is the size of the vf_win and the angle is the angle of rotation new peripheral.
So I first turn to the viewfinder window by
screen_set_window_property_iv(vf_win, SCREEN_PROPERTY_SOURCE_SIZE, size); screen_set_window_property_iv(vf_win, SCREEN_PROPERTY_BUFFER_SIZE, size); rc = screen_set_window_property_iv(vf_win, SCREEN_PROPERTY_ROTATION, &angle);
then rotate the camera by means of
rc = camera_set_device_orientation(handle, angle); rc = camera_set_videovf_property( handle, CAMERA_IMGPROP_ROTATION, &angle);
?
I think the above is certainly false since I couldn't get the results I wanted.
Any help is greatly appreciated.
The sample application does not work quite right when launched in portrait on the playbook, because the default configuration of the camera is for landscape. Down in the device drivers, we don't really know anything about how the device is held and what is intention of the user/application, so we rely on the app by telling us a lot of information to make things. Don't forget, this is the API of the lowest level available for access to the camera. There is an API of Cascades photo being developed which encapsulates C API to the top and tries to simlify things at the expense of flexibility.
On PB, the video viewfinder frames 1920 x 1080 by default, but several other formats are supported (this whole landscape well!). Use camera_get_video_vf_resolutions() to retrieve the complete list. If you need to make in a picture window, you must specify either a rotation of output using camera_set_videovf_property (handle, CAMERA_IMGPROP_ROTATION, 90 or 270) or by adjusting your rotation of window screen using screen_set_window_property_iv (win, SCREEN_PROPERTY_ROTATION, 90 or 270) and optionally resize the window by using SCREEN_PROPERTY_SIZE.
The first option above actually produces a video image 1080 x 1920 returned in a window of the non-tourne screen. The second option is still dealing with buffers of window of 1920 x 1080, but when the window is composite, it is blitted to the side. We have 2 ways of doing this is because we have a requirement to be able to save videos in formats portrait without having to rely on the advice of metadata to display the videos properly as Apple or Android have to do (this is the reason for the 1st method). For the second method (form) this is because not all applications require the video must rotate, nor necessarily all hardware platforms support video output in this mode.
To answer your last question - definition of resolution 1024 x 576 vf and a rotation of 90 on playbook will give the following result:
-buffers that have a width of 576 and a height of 1024 pixels of video output.
-You can then display the viewfinder in a window size 576 x 1024 (or however you choose to scale)
-buffers sent by the sensor of the camera would be rotated 90 degrees to the right before being delivered through these pads size 576 x 1024
Represent it visually?
If you keep the playbook in house orientation and a person stood in front of the camera, the image would rotate 90 degrees to the right so that their head is located to the right of the frame and feet to the left.
How is it useful?
If you happened to take the playbook oriented 90 degrees counterclockwise (eg. logo blackberry is on the right side) and displays this buffer image 576 x 1024, head of the person would now be at the top of the screen.
Once again, this can easily get somewhat confusing and really benefits greatly from visuals. I keep a stack of post-it notes at hand and am constantly draw lines of frame and stick men on them and turning them accordingly
See you soon,.
Sean
Tags: BlackBerry Developers
Similar Questions
-
I recently dropped my laptop and it is weird, one day he int open up to 4 start times and sometimes it shows me a folder and a question mark in the interface and sometimes asked to reset my password, what are the steps to take?
Anything can be corrupted on your MacBook Pro, but from what you say, it seems that the cable drive/SSD/flash memory/SATA hard was seriously damaged. Him "question mark" means that your Mac is unable to find any bootable device, meaning that it does not yet detect your OS X drive.
You should make a backup of your files (if you can still do it) and take the Mac at the Apple Store or dealer to get a diagnosis. There may be several damaged parts.
-
What are the steps to install new disk for Compaq Presario Notebook 61-420US
I bought a Western Digital Scorpio Blue 320 GB Sata Hard Drive to replace the original fried. The drive is installed. After turning on the laptop computer, the error message was "no boot device found".
I turned off laptop and you press F2. I am running a test drive, the first version short then long.
What are my next steps?
I have the HP recovery discs?
Thank you!
Matthew wrote:
I bought a Western Digital Scorpio Blue 320 GB Sata Hard Drive to replace the original fried. The drive is installed. After turning on the laptop computer, the error message was "no boot device found".
I turned off laptop and you press F2. I am running a test drive, the first version short then long.
What are my next steps?
I have the HP recovery discs?
Thank you!
Hello
The error message indicates that there is nothing to start, it means that an operating system is not installed, or the MBR is corrupted, that is not your case. The hard drive is ok, but you must restore the system using the recovery disks, you got.
It's simple, change the startup option in the BIOS to CD/DVD-ROM as the first one (press ESC on startup, press F10), then you can insert the No. 1 disc in the optical drive recovery. Save the settings of the BIOS (reboot), then follow the instructions (click on factory reset). It worked for me that way...
-
Reformatting, what are the steps to her?
How to reformat y430 laptop lenovo?
What are the steps to her?How to reformat y430 laptop lenovo?
What are the steps to her?See link below to reinstall Windows on a Lenovo computer.
Lenovo - system recovery using ThinkVantage Rescue and Recovery:
http://support.Lenovo.com/en_US/downloads/detail.page?LegacyDocID=MIGR-70803When restore you to factory State, it will be like it was when you bought first - all preinstalled programs will be installed. Everything you have installed after purchase needs to be reinstalled. This removes all the personal files on the computer, save them first.
If you end up needing to install Lenovo discs:
Lenovo - call to order recovery disks:
http://support.Lenovo.com/en_US/product-and-parts/detail.page?&LegacyDocID=YaST-3P2QYL
-
What are the three steps necessary to correct disk cleanup does not not on Windows Vista?
What are the three steps necessary to correct disk cleanup does not not on Vista OS
This tutorial to see how id disk cleanup. See if it helps.
-
original title: can you help me?
My laptop is running out of space so I need to transfer the games mainly from my laptop on an external hard drive. What are the steps to achieve this?
My laptop is running out of space so I need to transfer the games mainly from my laptop on an external hard drive. What are the steps to achieve this?
Go to computer stores, get an external hard drive of 1 TB capacity. Ask for one that you can just simply copy and paste to transfer files.
I have a. Digital WD Elements. 1 TB vapacity. It works very well. No action of fancy, complicated to transfer, just copy and paste or drag and drop files.
I also use it to make Sysytem Image backup.
-
The microSD is corrupted (8gig) and not readable on Blackberry - using Blackberry Bold 9790. Copied the files to the Windows laptop using the SD card, but cannot open them. Majority are photos and videos. FILE0000. CH, FILE0001. CH... FILE0010.CH. What are the steps to convert to format for recovery of. CH files on laptop?
These are files corrupted, made from a checkdisk utility. You can usually convert them to what whatever and I usually just delete them.
-
Try to install items with purchased 14 box serial number and system does not... What are the next steps?
Are you sure have a serial number from the inside of the box, or you could have a redemption code?
Find your http://helpx.adobe.com/x-productkb/global/find-serial-number.html serial No.
What is the exact error message?
Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
-
Can I update my single-user plan in terms of the Adobe creative team? and if so what are the steps?
Hello
Please contact adobe for the same support:
In the meantime, you can also consult:
Creative cloud for teams. Adobe Creative Cloud for businesses
Hope this information is helpful!
-
I can't not persistent install the latest update of Adobe Audition. It is not a CC version but came on disc in CS6. I constantly get this error message after you download the update that does not install: U43M1D207. What are the steps to perform this installation?
-
I am trying to reinstall cs6 on my new computer, what are the steps to do this? Its already on both computers.
Hello
To download please visit:-applications download Creative Suite 6
It is advisable to disable the software on a computer on which it will be is most used, especially before giving away or selling the computer or reformat the hard disk. Please see this link: How to disable the software. This frees an activation if you have the option to install the software on another computer at any time.
If you do not have access to your old computer because you have replaced a hard drive, upgraded your operating system to format your computer before you deactivate your software or your computer is dead, you can ask Adobe Support to help you disable from a machine, you cannot access. Have your serial number or Adobe ID ready, then contact us.
To load the software on another computer, download and install it as you did on the first computer. Then enter your serial number to activate it.
Hope this helps!
-
I am creating a flyer and must add five photos to document and resize them to scale. What are the specific steps?
Without seeing your Flyer available, it is difficult to advise you, but if you want to build the room yourself, illustrated above approach shows how to put an image in the layout, position, and resize it.
Fig 1. Make a selection on the page layout for the position (and possibly cropped) image format
Fig 2. Open the image and choose the command selection > all followed by Edit > copy
Fig. 3. Return to the layout and choose Edition > paste special > paste in the image will be probably larger than your selection when pasted into the Flyer.
Fig 4. Choose Edition > transform > scale the scale tool appears.
Fig. 5. Drag the frame to adjust it to a corner of the space of the image
Fig. 6. Hold down the SHIFT key (to preserve proportion) and drag the farthest corner of scale handle diagonally downwards to reduce the size of the image to fit in the area of selection. Then click on the symbol to Commit in the Options bar to produce the result (Fig 7).
Repeat for each of the other images...
-
I've got 4 Lightroom and my hard drive is too full with photos I have in lightroom. I want to move a lot to a USB key and remove them from lightroom. What are the steps to do this please?
I have some listed here videos that will help you with this
Organization of Lightroom - Lightroom and Photoshop training
Dave
-
I want to uninstall my old CS5 Design Premium from my computer to reinstall it on another computer. What are the steps? Is there something special with the activation codes, etc.?
You are allowed to have two facilities enabled, so if you prefer you can keep ut on the current computer and just install it on the new as you did initially. If you want to remove on the other machine, the first thing to do is to disable it by opening a program in the suite and by selecting help-> turn off in the top toolbar. That's all you need to do to disable the software. At this point if you prefer you can uninstall it if you want.
As much as on the new nmachine, as I indicated just, just install it like you did the first time.
-
What are the steps to increase the size of Guest OS Windows Server 2003 disk?
People,
Hello. I use 3 Player VM and Guest OS Windows Server 2003. The host OS is Windows 7.
I just increase the disk size of Virtual Machine from 80 GB to 150 GB successfully. The next thing to do is to repartition the disk size of Guest OS Windows Server 2003 in 150 GB.
What are the specific steps to increase the size of Guest OS Windows Server 2003 disk?
Thank you.
Only, I tried start gparted-live - 0.7.0 - 4.ISO both gparted-live - 0.7.0 - 7.iso in VMware Player and had no problem in order to check the MD5SUM.
Attach the file vmware.log so we can see what is happening.
-
What are the steps to convert any Plugin jQuery Plugin Apex?
Dear Apex Experts,
What are the steps to convert any Plugin jQuery Plugin Apex?
Best regardsYes, you need to write make it two lines to say apex plsql and jquery and so on.
So, just download the plugin above and install as an example and look into the plugin definition in the shared components.
Look at the rendered (PLSQL) function
Maybe you are looking for
-
All the sound abruptly stopped HP dv5
I hope you can help. My sound - all keyboad, alert sounds, music, speakers - all, suddenly stopped working. I have a: Pavilion dv5 laptop Model dv5 1210TU p/n NT689PA #ABG Running on Windows Vista, 32-bit operating system Sound is turned on and the
-
How can I fix error code 0 x 80040154 inform me please
How can I fix error code 0 x 80040154 inform me please
-
I just noticed that the TouchSmart from HP ENVY 15-j051sa I bought actually watch as a TouchSmart from HP ENVY 15-j051ea when I put in the serial number etc. What is the difference in the numbers of model 15-j051sa and 15-j051ea (his and ea)?
-
Q5 whaen question upgraded to os 10.2.1 suspended blackBerry camera
HI1 feb on28th what version 10.2.1 I upgraded my Blackberry 10 on it after upgrading my camera is suspended and no photos I restart holding my camera. but it doesn't take no change camera does not work. and there we more I m having model q5 blackberr
-
Are the components appearance customizable/revertable
Hey all, I know that the problems with the beta 2 appearance is at the bottom of the nature of the minds of most people, but I was wondering, they changed the buttons, drop-down lists, etc. to a white style which is nice but my applications were styl