Revert "check the size limitation" 96/90896/1 accepted/tizen/3.0/ivi/20161011.050658 accepted/tizen/3.0/mobile/20161015.033831 accepted/tizen/3.0/tv/20161016.004945 accepted/tizen/3.0/wearable/20161015.083709 accepted/tizen/common/20161005.165658 accepted/tizen/ivi/20161005.120105 accepted/tizen/mobile/20161005.115940 accepted/tizen/tv/20161005.120025 accepted/tizen/wearable/20161005.120047 submit/tizen/20161004.080631 submit/tizen_3.0_ivi/20161010.000004 submit/tizen_3.0_mobile/20161015.000004 submit/tizen_3.0_tv/20161015.000003 submit/tizen_3.0_wearable/20161015.000004 submit/tizen_common/20161005.072458
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 4 Oct 2016 23:25:02 +0000 (08:25 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 4 Oct 2016 23:25:10 +0000 (08:25 +0900)
This reverts commit e5db3b0bef603c5e16fec1d2444e859169135ee2.

Change-Id: Ic3915255185014c04735367936e7bb2652ec16ee

src/tdm_capture.c
src/tdm_display.c
src/tdm_pp.c

index d2911f1..da1a0e5 100644 (file)
@@ -343,23 +343,6 @@ tdm_capture_set_info(tdm_capture *capture, tdm_info_capture *info)
 
        TDM_RETURN_VAL_IF_FAIL(info != NULL, TDM_ERROR_INVALID_PARAMETER);
 
-       if (private_display->caps_capture.min_w > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.h >= private_display->caps_capture.min_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.w >= private_display->caps_capture.min_w, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_display->caps_capture.min_h > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.v >= private_display->caps_capture.min_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.h >= private_display->caps_capture.min_h, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_display->caps_capture.max_w > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.h <= private_display->caps_capture.max_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.w <= private_display->caps_capture.max_w, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_display->caps_capture.max_h > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.v <= private_display->caps_capture.max_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.h <= private_display->caps_capture.max_h, TDM_ERROR_INVALID_PARAMETER);
-       }
-
        _pthread_mutex_lock(&private_display->lock);
 
        if (!func_capture->capture_set_info) {
index 5336f81..7d9b08f 100644 (file)
@@ -1447,27 +1447,6 @@ tdm_layer_set_info(tdm_layer *layer, tdm_info_layer *info)
 
        TDM_RETURN_VAL_IF_FAIL(info != NULL, TDM_ERROR_INVALID_PARAMETER);
 
-       if (private_output->caps.min_w > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.h >= private_output->caps.min_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.w >= private_output->caps.min_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_pos.w >= private_output->caps.min_w, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_output->caps.min_h > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.v >= private_output->caps.min_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.h >= private_output->caps.min_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_pos.h >= private_output->caps.min_h, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_output->caps.max_w > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.h <= private_output->caps.max_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.w <= private_output->caps.max_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_pos.w <= private_output->caps.max_w, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_output->caps.max_h > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.v <= private_output->caps.max_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.h <= private_output->caps.max_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_pos.h <= private_output->caps.max_h, TDM_ERROR_INVALID_PARAMETER);
-       }
-
        _pthread_mutex_lock(&private_display->lock);
 
        func_layer = &private_display->func_layer;
index 304d403..1a61d7f 100644 (file)
@@ -309,31 +309,6 @@ tdm_pp_set_info(tdm_pp *pp, tdm_info_pp *info)
 
        TDM_RETURN_VAL_IF_FAIL(info != NULL, TDM_ERROR_INVALID_PARAMETER);
 
-       if (private_display->caps_pp.min_w > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.h >= private_display->caps_pp.min_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.w >= private_display->caps_pp.min_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.h >= private_display->caps_pp.min_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.w >= private_display->caps_pp.min_w, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_display->caps_pp.min_h > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.v >= private_display->caps_pp.min_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.h >= private_display->caps_pp.min_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.v >= private_display->caps_pp.min_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.h >= private_display->caps_pp.min_h, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_display->caps_pp.max_w > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.h <= private_display->caps_pp.max_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.w <= private_display->caps_pp.max_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.h <= private_display->caps_pp.max_w, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.w <= private_display->caps_pp.max_w, TDM_ERROR_INVALID_PARAMETER);
-       }
-       if (private_display->caps_pp.max_h > 0) {
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.size.v <= private_display->caps_pp.max_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->src_config.pos.h <= private_display->caps_pp.max_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.size.v <= private_display->caps_pp.max_h, TDM_ERROR_INVALID_PARAMETER);
-               TDM_RETURN_VAL_IF_FAIL(info->dst_config.pos.h <= private_display->caps_pp.max_h, TDM_ERROR_INVALID_PARAMETER);
-       }
-
        _pthread_mutex_lock(&private_display->lock);
 
        if (!func_pp->pp_set_info) {