On Fri, Dec 11, 2009 at 9:33 PM, Will <[email protected]> wrote: > I want to make a motion-jpeg. > > This is not a video format that is supported by the built-in codecs. > > One approach I've looked at is to use the preview callback, asking for > a JPEG buffer. Unfortunately, the HTC phones I've tried this on all > call back at several second intervals and give me an NV12 buffer > It should be NV21 (http://www.fourcc.org/yuv.php#NV21), not NV12.
> regardless of the pixel format you specify. (Anyone know the > behaviour on a droid?) I can code my way around the NV12 hassle but I > Droid supports NV21 (PixelFormat.YCbCr_420_SP) and YUY2 (PixelFormat.YCbCr_422_I). In 2.0 and after, apps can call getSupportedPreviewFormats to know the supported preview formats on devices. But only NV21 is guaranteed to be supported on all devices on all releases. In 1.6 and before, there is no way to know the supported preview formats and apps should just use NV21. > can't exactly do much when the callbacks are so seldom; I want around > 10 fps. > > The approach I was considering was making an opencore codec for > mjpeg. Which leads me to two questions before I start: > > 1) can third-parties make and install opencore codecs, or is this > strictly locked down? Is it to just drop an .so in the right folder, > or? > > 2) do the HTC phones use the default encoders? (i.e. will using the > same way the default opencore reference codecs get their pixel buffers > work on the phone?) > > thx > Will > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

