From 883692c46e461164f4e44c806e72d53dca9aade8 Mon Sep 17 00:00:00 2001 From: qnqinan Date: Thu, 21 Mar 2019 18:03:55 +0800 Subject: [PATCH] update --- src/fpga/V1/api.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/fpga/V1/api.cpp b/src/fpga/V1/api.cpp index 02db327cb3..9d1505dba4 100644 --- a/src/fpga/V1/api.cpp +++ b/src/fpga/V1/api.cpp @@ -466,24 +466,9 @@ void expand_EW_arg(EWAddArgs *arg) { uint64_t image_amount_per_row = align_to_x((uint64_t)args.image0.width * (uint64_t)args.image0.channels, IMAGE_ALIGNMENT); - ////////////////////////////////////////////////////////// - // temporary modify for EW and DMA problem - uint64_t image_image_pixel = 0; - if ((args.image0.width * args.image0.channels) >= 24576) { - if ((args.image0.width * args.image0.channels) % 32 != 0) { - DLOG << "EW parameter can not be support"; - } else { - image_amount_per_row = image_amount_per_row / 2; - image_image_pixel = ((uint64_t)args.image0.channels << 32) | - ((uint64_t)(args.image0.width / 2) << 16) | - (uint64_t)(args.image0.height * 2); - } - } else { - image_image_pixel = ((uint64_t)args.image0.channels << 32) | - ((uint64_t)args.image0.width << 16) | - (uint64_t)args.image0.height; - } - ////////////////////////////////////////////////////////// + uint64_t image_image_pixel = ((uint64_t)args.image0.channels << 32) | + ((uint64_t)args.image0.width << 16) | + (uint64_t)args.image0.height; (*arg).driver.image0_address_phy = image0_address_phy; (*arg).driver.image1_address_phy = image1_address_phy; -- GitLab