[android-developers] Re: Resizing camera preview dimensions
The G1 ignores whatever preview dimensions you throw at its camera. http://android.git.kernel.org/?p=platform/hardware/msm7k.git;a=blob_plain;f=libcamera/QualcommCameraHardware.cpp Regards On Jan 6, 6:07 pm, Robert wrote: > Is anyone aware of how to lower the width and height size that is > returned by previewCallback for Camera? Right now it returns an image > with dimensions 480x320 and I would like to reduce that by at least > half. Any suggestions? > > Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Resizing camera preview dimensions
You can do: Camera.Parameters p = c.getParameters(); p.setPreviewSize(width, height); c.setParameters(p); before you do c.startPreview(); where c is Camera. On Jan 6, 5:07 pm, Robert wrote: > Is anyone aware of how to lower the width and height size that is > returned by previewCallback for Camera? Right now it returns an image > with dimensions 480x320 and I would like to reduce that by at least > half. Any suggestions? > > Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Resizing camera preview dimensions
The G1 camera driver currently ignores the preview size and forces it to 320 x 240. On Jan 6, 11:19 am, Omar wrote: > You can do: > > Camera.Parameters p = c.getParameters(); > p.setPreviewSize(width, height); > c.setParameters(p); > > before you do c.startPreview(); > where c is Camera. > > On Jan 6, 5:07 pm, Robert wrote: > > > Is anyone aware of how to lower the width and height size that is > > returned by previewCallback for Camera? Right now it returns an image > > with dimensions 480x320 and I would like to reduce that by at least > > half. Any suggestions? > > > Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---