[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-09 Thread sreedhar b
Hi Harish, Similar to your use case: My display size ( i mean display panel size) is 800x480. I tried to play 176x144 mp4 stream. And i kept android layoutwidth=352 and android layoutheight= 288 in movieview.xml In my case the result is that the surface now set to 352X288 at the center, i am

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-06 Thread Dave Sparks
I don't have any idea what's involved in getting VGA working. We've done some work with density-independent-pixels, but that it assumes that the screen size is fairly close to the current device. You probably need some help from someone more familiar with the layout code. On Jun 4, 8:08 am,

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-05 Thread Harishkumar V
Hi, in movieview.xml, VideoView android:id=@+id/surface_view android:layout_width=fill_parent - can be replaced to any desried width android:layout_height=fill_parent- can be replaced to any desired height android:layout_centerInParent=true

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-05 Thread sreedhar b
Hi Harish, I think the video view widget am using is by default available inside android. It uses the Camera.apk internally having the movie view. And thanks for the inputs on my query. As said in my previous mail, for a VGA(640X480) display panel the resize is not happening for the cases 2 and

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-05 Thread Harishkumar V
Hi, It should, how it works - the calculation is like this, for example, in ur case display width (dw) - 640 display height (dh) - 480 video width (vw) - 320 video height (vh) - 240 these are done in onmeasure function in videoview widget case 1: vw*dh vh*dw then, dh=(vh*dw)/vw; dw= no

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-04 Thread sreedhar b
Hi Dave, I am currently having my android setup for two display panels of resolution VGA, WVGA My observations for video playback using video player : In case of VGA display panel: S.no. Input stream resoutionO/P display resolution 1. VGA(640X480)VGA(640X480)

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-04 Thread Harishkumar V
Hi, This is achieved using OnMeasure() in VideoView.java. Also, can u share me how to get the videoplayer in android, presently i am using apidemos to play the video. Thanks and Regards, HarishKumar.V On Thu, Jun 4, 2009 at 8:38 PM, sreedhar b sreedhar...@gmail.com wrote: Hi Dave, I am

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-06-04 Thread Harishkumar V
Hi, u can check movieview.xml, where andorid:layout_width and android:layout_height plays the trick. Thanks and Regards, HarishKumar.V On Thu, Jun 4, 2009 at 9:05 PM, Harishkumar V harishpres...@gmail.comwrote: Hi, This is achieved using OnMeasure() in VideoView.java. Also, can u share me

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-05-21 Thread peter deng
Dave, I still have surfaceflinger crash like this, how do you get it fix? The kernel is fine.. I/SurfaceFlinger( 249): SurfaceFlinger is starting I/SurfaceFlinger( 249): SurfaceFlinger's main thread ready to run. Initializing graphics H/W... D/SurfaceFlinger( 249): pid 249 requesting gpu core

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-05-07 Thread Dave Sparks
I don't think SurfaceFlinger has anything to do with the problem. You can check this by looking at the window size requested by VideoView after the video size is determined. If the requested view size is not full screen, the problem is probably a layout issue. On May 7, 5:46 am, sreedhar b

[android-porting] Re: How the video display size making use of resize and rotation is set under Android

2009-04-30 Thread Dave Sparks
This capability is already built into the framework. You just scale the SurfaceView to the desired size. You probably want to adjust the height and width to maintain the aspect ratio of the original material. The rescaling is handled in SurfaceFlinger by the blitter engine. In fact, if you use