Hi List,

i'm porting Android to a Samsung S5PC110 "Hummingbird" with PowerVR
SGX540. Everthing is working except Video playback when i try to
playback im seeing this in the logcat:

 ( 2539): alloc(800, 480, 4, 00000d00, ...) failed -22 (Invalid argument)
D/        ( 2539): Allocated buffers:
D/        ( 2539):   0x22fb60: 1500.00 KiB |  800 x  480 |  1 | 0x00000133
D/        ( 2539):   0x2304e8:  750.00 KiB |  480 x  800 |  4 | 0x00000300
D/        ( 2539):   0x234c98:  406.25 KiB |  800 x  130 |  1 | 0x00000133
D/        ( 2539):   0x23cd78:    2.50 KiB |   12 x   20 |  1 | 0x00000133
D/        ( 2539):   0x2f87a8: 1500.00 KiB |  800 x  480 |  1 | 0x00000133
D/        ( 2539):   0x3104a0:  750.00 KiB |  480 x  800 |  4 | 0x00000300
D/        ( 2539):   0x32c4c0: 1346.25 KiB |  480 x  718 |  1 | 0x00000133
D/        ( 2539):   0x36db98:  118.75 KiB |  800 x   38 |  1 | 0x00000133
D/        ( 2539):   0x3cb078: 2243.75 KiB |  800 x  718 |  1 | 0x00000133
D/        ( 2539):   0x3cedb0:  118.75 KiB |  800 x   38 |  1 | 0x00000133
D/        ( 2539): Total allocated: 8736.25 KB

so the gralloc device is giving me that error. I have done some
research and got to the point that allocating a buffer with
"GRALLOC_USAGE_HW_2D & GRALLOC_USAGE_HW_TEXTURE" fails when i use the
HAL_PIXEL_FORMAT_RGB_565 pixelformat. All other allocation work fine.
The function that tries to allocate the buffer is
LayerBuffer::BufferSource::initTempBuffer what is called from the
OnDraw method of the LayerBuffer. I'm not sure why only this special
case is failing.
Do you have any clues on that how to work around this issue or where i
can investigate?

Thanks in advanced.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to