[Q] Camera preview on SurfaceHolder without full screen preview on HDMI? - Galaxy Camera Q&A, Help & Troubleshooting

Hi!
I'm developing an app for my Galaxy Cam. I want to display the camera preview image on a SurfaceView which is placed somewhere on the layout - but not full screen.
This works like a charm.
But I also want to display this app on the big screen via HDMI. Unfortunately, after activating the camera with this surface holder, the HDMI output changes to full screen camera preview only.
When I activate the camera (and the buffered preview) without setting the surface holder, the HDMI content will still be the normal screen.
Is there any way to use the surface holder preview and get the normal screen via HDMI?
Thanks alot in advance!

Solved it
Well... I just figured out that I can use a TextureView instead, which will not result in a full screen camera preview via HDMI.

Related

Would the Captivate video out work okay on a 7" 234x480 screen?

Im thinking about adding a 7" lcd screen to my truck to act as a backup monitor and a larger lcd for GPS. I'd like to connect my Captivate to the lcd and using it for larger, set top viewing of the gps.
Would this work fine in terms of using the video out for gps only? http://www.ecbuys.com/car-lcd-and-c...-tft-lcd-car-headrest-color-monitor-p-52.html
shaxs said:
Im thinking about adding a 7" lcd screen to my truck to act as a backup monitor and a larger lcd for GPS. I'd like to connect my Captivate to the lcd and using it for larger, set top viewing of the gps.
Would this work fine in terms of using the video out for gps only? http://www.ecbuys.com/car-lcd-and-c...-tft-lcd-car-headrest-color-monitor-p-52.html
Click to expand...
Click to collapse
Standard TV video - is 480 lines of resolution - so anything that can emulate a tv monitor (it has TV video in) should display fine. You will get the entire Captivate desktop on your TV - every move to every app is shown - just like having a bigger phone - but you have to touch the smaller screen.
alphadog00 said:
Standard TV video - is 480 lines of resolution - so anything that can emulate a tv monitor (it has TV video in) should display fine. You will get the entire Captivate desktop on your TV - every move to every app is shown - just like having a bigger phone - but you have to touch the smaller screen.
Click to expand...
Click to collapse
Perfect that is what I need. I will be using the larger screen just to view the GPS and view the video player. I have microsoft sync in my truck and it streams bluetooth audio superbly, but it doesnt show who the artists is on the radio screen. So having a larger lcd on the dash for viewing song info/google navigator, pandora, and using for a backup camera would be great. I did a mockup of how big it would be and where I would put it here:
http://www.f150forum.com/f7/has-anyone-thought-aftermarket-lcd-upgrade-67384/
I think this would be a pretty sweet setup!
one thing to keep in mind - you will want some type of rotation lock feature - this is built in to 2.2. The autorotate is copied to the external screen, so portrait mode on the phone will give you black bars left and right on the right on the screen. You will probably want to lock the screen in landscape mode when connected to your monitor.
Ah yes I am running Cognition Beta 2.2. so I have the option. Good point

Found a bug to enable 1080p in mirroring mode (glitchy)

Hi all,
I could not sleep thinking of using chrooted linux on my 47" 1080p LCD, fine, but we a re limited to the hdmi mirroring, which is 800x480 stretched to fill the screen.
Thinking about the video player, which does proper 1080p output I tried to fool the system somehow with video playing and task switching, menus, back btn presses, and found something:
Using temasek´s kang + ironkrnl #251 32mb hack, qemu lcd density 210
You start playing a video, can be through native video player or mxplayer, HW or SW mode, then you press menu once or twice to show the options, the video freezes for a moment. then you press back twice rapdly, VOILA, you have a working gallery (works until you flip the phone to portrait, this resets the display to normally scaled screen) in 1080p in the lower half of the screen.
If you were using mxplayer, the top half of the screen will have the player controls as they were on the phones screen during video playback. everything is repeated side by side almos three times (I think it´s the difference in resolution being compensated in the framebuffer or some sort of scaling bug).
All in all, does someone have any idea on how to invoke a mirrorless 1080p picture on hdmi? (or mirrored and downscaled/croppped on the phones screen), apparently only gallery is capable of displaying in 1080, any other app works in the phones screen but the image keeps frozen on hdmi with sound ok.
Imagine chrooted linux in 1080 with BT mouse and KB!
Pictures attached:
edit: tried with 1202221503-ETaNa_48 kernel and could not reproduce it, later will try with etana 64 and other ironkrnl
What a great little bug. It would be nice to have it actually run at 1080p for the Android screen and things like the word processor. Would make using the phone as a mini computer so much better.
Great find dude...!!
Sent from my LG-P990
Sould I post this at Development section? Can some mod move this thread to dev? I think it will be more useful there.
bollux78 said:
Sould I post this at Development section? Can some mod move this thread to dev? I think it will be more useful there.
Click to expand...
Click to collapse
Not development. Moving to general.
I can only say that I wish I had the same amount of spare time as you

HDMI tv out, only mirroring?

I tried the tvout with the offical hmdi adapter but it mirrors the tablet including the system bar, and since the resolution of the tablet is 16:10 and not 16:9 I get two black vertical stripes at both sides.
Is there a way to change this behavior? Like a full 16:9 or a 1080p out?
zooster said:
I tried the tvout with the offical hmdi adapter but it mirrors the tablet including the system bar, and since the resolution of the tablet is 16:10 and not 16:9 I get two black vertical stripes at both sides.
Is there a way to change this behavior? Like a full 16:9 or a 1080p out?
Click to expand...
Click to collapse
You'll need to change the settings on your TV to stretch the picture or zoom it, most TV's have a setting to automatically do this to hide black bars, the only problem is it alters the shapes, people end up with odd shaped heads etc
So basically there is no way to play on a tv a 16:9 fullhd video or a slidewhow without status bar? I mean, is mirroring the only one mode?
You can set this up to hide the status bar, but 16:9 is always going to be an issue as the tablet is not 16:9
Yes, but still tvout is a limited feature since I can't have an extended desktop or i.e. a slideshow played on tv while working on something on the tab...
zooster said:
Yes, but still tvout is a limited feature since I can't have an extended desktop or i.e. a slideshow played on tv while working on something on the tab...
Click to expand...
Click to collapse
Hang on......so you want to play a video to the TV in HD widescreen while still doing something on the tablet ?
I'm pretty sure there's no Android devices that do this
A kind of... My first aim is to play a slideshow on a tv in full screen mode, while seeing the slide's tree on the tablet and choosing which one to show in full screen on the tv.
Second aim is to disable tablet video and show only tv. It would be nice to play a 3d game on the tv, but as long as the video is doubled fps are so low that it's unplayable.
FPS won't be doubled as all you're doing is doubling up the video output, not the data going through the GPU, there's plenty of video's on youtube of folks using MHL adapters to connect to a TV to play games
Yes fps won't be halved but, since a tough game is very cpu intensive, doubling the video it lags a lot more the tablet. My tablet is much more laggy even simply swiping on the home screens or app drawer when connected to a tv.
Flash motley kernel and overclock to 1.4
I believe a Nexus Q will let you send video from the tablet to the TV whilst doing other stuff on the tablet, but it costs quite a lot.
Definitely hear some unrealistic multitasking wants. Also, doesn't ICS improve hdmi out options as far as full screen video, not just mirroring?
Sent from my SPH-D700 using Tapatalk 2
The Galaxy note 10.1 has this function in the movieplayer to only show the video while controls are shown on the tablet. This is exactly what you are asking if i understand you correctly.
I'm also looking for more possibilities in this area. Being able to see the picture Gallery while only showing the last picture (or non at the start) would be amazing!
If i find anything i will share it here

[Q] Clone display on HDMI in camera mode

Hi,
I would like to set up a "photo booth" based on my Samsung Galaxy Camera, and I am using the HDMI output to display the screen on a TV.
The problem is that when in camera mode, the HDMI output will not display extra info (such as the timer countdown for example, or the focus zone confirmation). The HDM output only displays the liveview feed from the sensor.
Do you know if it's possible to have the exact same display on the screen and on the TV in camera mode?
Many thanks,
Calvin

[Q] HDMI Out in camera app

Can the camera do HDMI out in the camera app? I bought this camera with the intention of using it mostly to catalog a stamp collection. What I want to do is attach it to my tripod facing down, then use HDMI to my monitor along with a bluetooth mouse. That way I can capture it and do quick editing (mostly cropping and rotating) all on a larger screen.

Categories

Resources