summaryrefslogtreecommitdiff
path: root/libopencorehw/android_surface_output_omap34xx.h
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-09-17 08:25:37 -0700
committerDave Sparks <davidsparks@android.com>2009-09-17 22:09:31 -0700
commit7ffd1fd69497000509fe03d28dfe4058545b7a1c (patch)
tree435a2dcc770aef8fcd118c9f6f442efdd5b94e1a /libopencorehw/android_surface_output_omap34xx.h
parent5eb838555fd22bfdbfecb2d264a9259db1555d72 (diff)
downloadomap3-7ffd1fd69497000509fe03d28dfe4058545b7a1c.tar.gz
Add support for software codecs in video MIO. This change allows the
software codecs to be used with the video overlay hardware. When the YUV420 planar format is detected, the MIO will not allocate buffers, but allow the decoder to allocate its own buffers. This change detects the YUV420 planar format, and then does a software color plane conversion to YUV422-UYVY format. This allows us to use accelerate YUV->RGB color conversion and scaling in the DSP. The primary goal is to enable fallback to software codecs when necessary.
Diffstat (limited to 'libopencorehw/android_surface_output_omap34xx.h')
-rw-r--r--libopencorehw/android_surface_output_omap34xx.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/libopencorehw/android_surface_output_omap34xx.h b/libopencorehw/android_surface_output_omap34xx.h
index c40f66c..68e14b1 100644
--- a/libopencorehw/android_surface_output_omap34xx.h
+++ b/libopencorehw/android_surface_output_omap34xx.h
@@ -62,15 +62,16 @@ class AndroidSurfaceOutputOmap34xx : public AndroidSurfaceOutput
OSCL_IMPORT_REF ~AndroidSurfaceOutputOmap34xx();
private:
- bool mUseOverlay;
- sp<Overlay> mOverlay;
- int bufEnc;
+ bool mUseOverlay;
+ sp<Overlay> mOverlay;
+ int bufEnc;
- int32 iNumberOfBuffers;
- int32 iBufferSize;
- bool mIsFirstFrame;
+ int32 iNumberOfBuffers;
+ int32 iBufferSize;
+ bool mIsFirstFrame;
+ bool mConvert;
public:
- BufferAllocOmap34xx mbufferAlloc;
+ BufferAllocOmap34xx mbufferAlloc;
};
#endif // ANDROID_SURFACE_OUTPUT_OMAP34XX_H_INCLUDED