i don't change it, it gets changed by the "Author Driver" presumably to avoid colliding with the status bar or somesuch.
here's some log output which might illustrate what's going on -- 05-07 11:13:51.516: WARN/AuthorDriver(35): Intended width(480) exceeds the max allowed width(352). Max width is used instead. 05-07 11:13:51.516: WARN/AuthorDriver(35): Intended height(295) exceeds the max allowed height(288). Max height is used instead. however, a bit later on it seems that nobody has told the camera this -- 05-07 11:13:51.686: VERBOSE/QualcommCameraHardware(35): requested size 480 x 320 05-07 11:13:51.686: VERBOSE/QualcommCameraHardware(35): actual size 480 x 320 so the codec is encoding for 480x320, but the surface is only delivering 352x288. hence the corruption. hth j >This is a limitation of the hardware, the preview size and encoded >size must be the same. > >I'm not sure how you were able to change the preview size though. I'd >like to know the code sequence you used, because it's not supposed to >be possible. > >On May 6, 11:11 am, Jason Proctor <[email protected]> wrote: >> just a tiny fyi here is that i did manage to get video recording >> working fine in my app. >> >> there is however a problem if the surface view fills its parent and >> the parent is the entire screen. if that happens, then the camera's >> view of things gets resized but nobody tells the codec, and hence the >> movie is messed up. it's encoded for one size but the movie metainfo >> says something else. >> >> making the size something smaller than the screen made it work, but >> it *is* a bug IMHO. >> >> -- >> jason.software.particle > -- jason.software.particle --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

