3 Replies Latest reply on Mar 15, 2017 6:01 PM by Intel Corporation

    SR300 color and depth stream fps question

    Edsion_Wu

      Hi, Sir

       

      I try to setting the SR300 color and depth stream at 1920x1080 30 fps .

       

      but the image show 17 fps at 1920x1080, below the photo1,

      1920_1080_2.gif

      when I setting 640x480 the image show 30 fps

      640_480_2.gif

      Q. At  1920x1080, could i setting 30 fps and how to check it is true ?

       

      Thanks.

       

      It's my testing code

      #include <pxcsensemanager.h>
      #include <pxcsession.h>
      #include "util_render.h"
      #include <iostream>
      
      
      #define COLOR_WIDTH 640//1920
      #define COLOR_HEIGHT 480//1080
      #define DEPTH_WIDTH 640
      #define DEPTH_HEIGHT 480
      
      
      void main()
      {
        UtilRender *renderColor = new UtilRender(L"COLOR_STREAM");
        UtilRender *renderDepth = new UtilRender(L"DEPTH_STREAM");
      
      
        PXCSenseManager *psm = NULL;
        psm = PXCSenseManager::CreateInstance();
        if (psm == NULL) {
        std::cout << "Unabel to create the PXCSenseManager" << std::endl;
        return;
        }
      
      
        PXCSession::ImplVersion version = psm->QuerySession()->QueryVersion();
        std::cout << "SDK Version:" << version.major << version.minor << std::endl;
      
      
        psm->EnableStream(PXCCapture::STREAM_TYPE_COLOR, COLOR_WIDTH, COLOR_HEIGHT,30);
        psm->EnableStream(PXCCapture::STREAM_TYPE_DEPTH, DEPTH_WIDTH, DEPTH_HEIGHT, 30);
        if (psm->Init() != PXC_STATUS_NO_ERROR) {
        std::cout << "Unable to Init the PXCSenseManager" << std::endl;
        return;
        }
      
      
        PXCImage *colorIm, *depthIm;
        while (true)
        {
        if (psm->AcquireFrame(true) < PXC_STATUS_NO_ERROR)
        {
        break;
        }
      
      
        PXCCapture::Sample *sample = psm->QuerySample();
        if (sample)
        {
        if (sample->color)
        {
        colorIm = sample->color;
        if (!renderColor->RenderFrame(colorIm))
        break;
        }
        if (sample->depth)
        {
        depthIm = sample->depth;
        if (!renderDepth->RenderFrame(depthIm))
        break;
        }
        }
        psm->ReleaseFrame();
        }
        psm->Release();
      }