Code Monkey home page Code Monkey logo

Comments (6)

liuyinhangx avatar liuyinhangx commented on September 25, 2024

Update:
There has error in out_index calculation, out_index has duplicate values:
out_index: 0
out_index: 0
out_index: 120
out_index: 120
out_index: 240
out_index: 240
out_index: 360
out_index: 360
out_index: 480
out_index: 480
out_index: 600
out_index: 600
......

from libxcam.

windyuan avatar windyuan commented on September 25, 2024

good. looks like index calculation issue. Try on following patch

diff --git a/cl_kernel/kernel_bayer_pipe.cl b/cl_kernel/kernel_bayer_pipe.cl
index eefbaea..7363f1f 100644
--- a/cl_kernel/kernel_bayer_pipe.cl
+++ b/cl_kernel/kernel_bayer_pipe.cl
@@ -380,7 +380,7 @@ inline void stats_3a_calculate (

     if (l_id_x % STATS_3A_GRID_SIZE == 0 && l_id_y % STATS_3A_GRID_SIZE == 0) {
         float4 tmp_data;
-        int out_index = mad24(g_id_y / STATS_3A_GRID_SIZE,  g_size_x / STATS_3A_GRID_SIZE, g_id_x / STATS_3A_GRID_SIZE);
+        int out_index = mad24(get_group_id(1),  g_size_x / STATS_3A_GRID_SIZE, g_id_x / STATS_3A_GRID_SIZE);
         tmp_data = input[shared_pos (l_id_x + SLM_CELL_X_OFFSET, l_id_y + SLM_CELL_Y_OFFSET)];
         stats_output[out_index].avg_gr = convert_uchar_sat(tmp_data.x * 255.0f);
         stats_output[out_index].avg_r = convert_uchar_sat(tmp_data.y * 255.0f);

from libxcam.

liuyinhangx avatar liuyinhangx commented on September 25, 2024

Fixed.

from libxcam.

windyuan avatar windyuan commented on September 25, 2024

pull request #230

from libxcam.

windyuan avatar windyuan commented on September 25, 2024

Hi Yinhang,
please verify and close this bug.
Thanks,
Wind

from libxcam.

liuyinhangx avatar liuyinhangx commented on September 25, 2024

Verified, close this issue.

from libxcam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.