correct the zpos and capability of layers 97/70397/2 accepted/tizen/mobile/20160519.085522 submit/tizen/20160519.061417
authorBoram Park <boram1288.park@samsung.com>
Thu, 19 May 2016 06:02:30 +0000 (15:02 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 19 May 2016 06:06:23 +0000 (15:06 +0900)
  If a TDM backend support PP, when video is playing, the display
  server normally will convert a video image with PP and show it
  to a GRAPHIC layer. If a GRAPHIC layer fully supports scaling,
  rotating and various color formats, the display server will show
  a video image to a GRAPHIC layer without converting.

  However, some hardware vendors want to handle a video image directly
  inside of their TDM backend module. If a TDM backend module offer
  VIDEO layers, the display server will pass a video image to the TDM
  backend module without any modification. No scaling, no rotating.
  And also, the display server won’t check video formats too. Then a
  TDM backend module has the responsibility to display a video image
  on the screen.

Change-Id: I932916f756291a40ddb8b19048d065769e8072e8

src/tdm_sprd_display.c

index ed40bba..25a567b 100755 (executable)
@@ -634,7 +634,7 @@ _tdm_sprd_display_create_layer_list_LCD(tdm_sprd_output_data *output_data)
                                       TDM_LAYER_CAPABILITY_SCANOUT |
                                       TDM_LAYER_CAPABILITY_RESEVED_MEMORY |
                                       TDM_LAYER_CAPABILITY_NO_CROP;
-       layer_data_osd->zpos = 0;
+       layer_data_osd->zpos = 1;
 
        layer_data_osd->format_count = sizeof(osd_layer_formats) / sizeof(int);
        layer_data_osd->formats = osd_layer_formats;
@@ -648,10 +648,10 @@ _tdm_sprd_display_create_layer_list_LCD(tdm_sprd_output_data *output_data)
        layer_data_img->sprd_data = sprd_data;
        layer_data_img->output_data = output_data;
        layer_data_img->capabilities = TDM_LAYER_CAPABILITY_OVERLAY |
-                                      TDM_LAYER_CAPABILITY_VIDEO |
+                                      TDM_LAYER_CAPABILITY_GRAPHIC |
                                       TDM_LAYER_CAPABILITY_SCANOUT |
                                       TDM_LAYER_CAPABILITY_NO_CROP;
-       layer_data_img->zpos = -1;
+       layer_data_img->zpos = 0;
 
        layer_data_img->format_count = sizeof(img_layer_formats) / sizeof(int);
        layer_data_img->formats = img_layer_formats;