Skip to content
Browse files

use HAL YUV constants instead of libui's

  • Loading branch information...
1 parent bb42f35 commit f6246226b35c35dd8d60997ab480babf12c2f91e Mathias Agopian committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 android/samples/android_surface_output_fb.cpp
View
4 android/samples/android_surface_output_fb.cpp
@@ -132,7 +132,7 @@ OSCL_EXPORT_REF bool AndroidSurfaceOutputFB::initCheck()
mHeapPmem->slap();
master.clear();
ISurface::BufferHeap buffers(displayWidth, displayHeight,
- frameWidth, frameHeight, PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem);
+ frameWidth, frameHeight, HAL_PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem);
mSurface->registerBuffers(buffers);
// create frame buffers
@@ -183,7 +183,7 @@ PVMFStatus AndroidSurfaceOutputFB::writeFrameBuf(uint8* aData, uint32 aDataLen,
// register frame buffers with SurfaceFlinger
ISurface::BufferHeap buffers(iVideoDisplayWidth, iVideoDisplayHeight,
iVideoWidth, iVideoHeight,
- PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem);
+ HAL_PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem);
mSurface->registerBuffers(buffers);
}

0 comments on commit f624622

Please sign in to comment.
Something went wrong with that request. Please try again.