hwc: add the dummy video format 78/201678/3
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 19 Mar 2019 01:37:47 +0000 (10:37 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 19 Mar 2019 06:59:26 +0000 (06:59 +0000)
Change-Id: Ie739b2bdc17ca541741cad8f654d14aee68ecb6a

src/tdm_exynos_hwc.c

index 094a8b1e0cbf76374823ed7f52f679c66fd08e2c..05a9dbbede163e671462689d4d7ecff8d9379c06 100644 (file)
 #define ZPOS_VIDEO1  -1 //TODO:
 #define ZPOS_NONE    -999
 
+tbm_format hwc_window_video_formats[] = {
+       TBM_FORMAT_NV12,
+       TBM_FORMAT_YUV420
+};
+
 const char *
 _comp_to_str(tdm_hwc_window_composition composition_type)
 {
@@ -395,7 +400,9 @@ exynos_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats,
        RETURN_VAL_IF_FAIL(formats != NULL, TDM_ERROR_INVALID_PARAMETER);
        RETURN_VAL_IF_FAIL(count != NULL, TDM_ERROR_INVALID_PARAMETER);
 
-       // TODO:
+       // TODO: fix these formats.
+       *formats = hwc_window_video_formats;
+       *count = sizeof(hwc_window_video_formats) / sizeof(tbm_format);
 
        return TDM_ERROR_NONE;
 }