4 Replies Latest reply on Jul 10, 2009 12:34 PM by Nikolay_Mikhalev

    ATIStream and 24bgr image =(


      Hi everyone! =) (sorry for english )
      I got a question:
      I want to use the video card to speed up the code for image processing.
      But the problem is that: both CUDA and AMDStream minimum can handle only int type (32 bits), but i have the image 24bgr =(
      How can I map(convert) 24bgt image quickly to proccess them on video card? or how to handle?

      Now i use next sample code:

      int* gpu_data ...
      byte* image = ...
      for (int i = 0; i < imageSize; i++)
        gpu_data = image;

      and then i map gpu_data on int3 array, that each position in the matrix was the color-point? ... but one thing is already converting spend a lot of time =(((
      What can i do?