forked from mindspore-Ecosystem/mindspore
DecodeAndCropAndResizeJepg do not support odd size
This commit is contained in:
parent
049acf6d58
commit
6b6409d910
|
@ -31,7 +31,7 @@ uint32_t DecodeAndResizeJpeg(SoftDpProcsessInfo *soft_dp_process_info) {
|
||||||
return checkParamErr;
|
return checkParamErr;
|
||||||
}
|
}
|
||||||
if (soft_dp_process_info->output_width % 2 == 1 || soft_dp_process_info->output_height % 2 == 1) {
|
if (soft_dp_process_info->output_width % 2 == 1 || soft_dp_process_info->output_height % 2 == 1) {
|
||||||
API_LOGE("odd width and height dose not support");
|
API_LOGE("odd width and height dose not support in resize interface");
|
||||||
return checkParamErr;
|
return checkParamErr;
|
||||||
}
|
}
|
||||||
VpcInfo vpc_input_info;
|
VpcInfo vpc_input_info;
|
||||||
|
@ -65,6 +65,10 @@ uint32_t DecodeAndCropAndResizeJpeg(SoftDpProcsessInfo *soft_dp_process_info, co
|
||||||
API_LOGE("The input buffer or out buffer is null or size is 0");
|
API_LOGE("The input buffer or out buffer is null or size is 0");
|
||||||
return checkParamErr;
|
return checkParamErr;
|
||||||
}
|
}
|
||||||
|
if (soft_dp_process_info->output_width % 2 == 1 || soft_dp_process_info->output_height % 2 == 1) {
|
||||||
|
API_LOGE("odd width and height dose not support in crop and resize interface");
|
||||||
|
return checkParamErr;
|
||||||
|
}
|
||||||
VpcInfo vpc_input_info;
|
VpcInfo vpc_input_info;
|
||||||
SoftJpegd soft_handler;
|
SoftJpegd soft_handler;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue