Merge "Tests: Camera2: Add Y8/Y16 to Stream create/delete tests"

This commit is contained in:
Igor Murashkin 2013-02-22 19:29:01 +00:00 committed by Android (Google) Code Review
commit 8379998878
2 changed files with 26 additions and 2 deletions

View file

@ -39,8 +39,8 @@ struct CameraStreamParams {
inline void PrintTo(const CameraStreamParams& p, ::std::ostream* os) {
*os << "{ ";
*os << "Format: " << p.mFormat << ", ";
*os << "HeapCount: " << p.mHeapCount;
*os << "Format: 0x" << std::hex << p.mFormat << ", ";
*os << "HeapCount: " << p.mHeapCount;
*os << " }";
}

View file

@ -141,6 +141,30 @@ static CameraStreamParams TestParameters[] = {
/*mFormat*/ HAL_PIXEL_FORMAT_YV12,
/*mHeapCount*/ 3
},
{
/*mFormat*/ HAL_PIXEL_FORMAT_Y8,
/*mHeapCount*/ 1
},
{
/*mFormat*/ HAL_PIXEL_FORMAT_Y8,
/*mHeapCount*/ 2
},
{
/*mFormat*/ HAL_PIXEL_FORMAT_Y8,
/*mHeapCount*/ 3
},
{
/*mFormat*/ HAL_PIXEL_FORMAT_Y16,
/*mHeapCount*/ 1
},
{
/*mFormat*/ HAL_PIXEL_FORMAT_Y16,
/*mHeapCount*/ 2
},
{
/*mFormat*/ HAL_PIXEL_FORMAT_Y16,
/*mHeapCount*/ 3
},
{
/*mFormat*/ HAL_PIXEL_FORMAT_RAW_SENSOR,
/*mHeapCount*/ 1