Quantcast
Channel: Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1294

Ipp Visulization Task

$
0
0

Hi all,

My goal is to use ipplib on Mac OS X Sierra .

In parallel Studio 2018 there are different sample but I not understand the better pipeline for the visualization task.

  • First I tried ipp_blur_rotate_sample that come with application Cocoa for visualization. It work on command line but I have some problem to load project in Xcode .
  • After I tried ipp_resize_mt and ipp_thread  that work in a shell and Xcode Environment. In this example there is the source that let me think at. visualization task, but not work. This is the code:

       // Rendering

            if(!bNoWindow)

            {

                WindowDraw draw("Intel(R) IPP Resize example", WF_FIT_TO_IMAGE);

                if(draw.IsInitialized())

                {

                    printf("\nPress Space to cycle through stages:\n");

                    printf("1 - result image\n");

                    printf("2 - original image\n");

                    printf("\nClose window to exit.\n");

     

                    int  iIndex  = 0;

                    bool bRedraw = true;

                    while(!draw.IsClosed())

                    {

                        vm_time_sleep(10);

                        if(draw.CheckKey() == KK_SPACE)

                        {

                            iIndex = (iIndex+1)%2;

                            bRedraw = true;

                        }

                        if(draw.IsInvalidated())

                            bRedraw = true;

     

                        if(bRedraw)

                        {

                            if(iIndex == 0)

                                draw.DrawImage(&dstData);

                            else if(iIndex == 1)

                                draw.DrawImage(&srcData);

                            bRedraw = false;

                        }

                    }

                }    But I have no visualization or windows open or Error also if I force the if-condition at top.

I'm glad to understand what is the right way for the visualization of the result of some ipp operation on the image.

Thanks in advanced.


Viewing all articles
Browse latest Browse all 1294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>