Design a .braw player with Qt and BlackmagicRAWSDK

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Jiarong

  • Posts: 2
  • Joined: Tue Feb 25, 2020 10:09 am
  • Real Name: Jiarong Che

Design a .braw player with Qt and BlackmagicRAWSDK

PostTue Feb 25, 2020 1:26 pm

Hello!

Is there anyone try to design a .braw player with Qt with the BlackmagicRAWSDK?

There is a problem on playing .braw video in the QMediaPlayer. I have already using the SDK, the function of ProcessClipManualFlow1 to get a sequence of bit images and change them to QImage, but i don't know how to play these images in the QMediaPlayer or in a surface.

I used to try to solve the problem with:
player->setMedia(QMediaContent(),buffer);

but it seems not work very well.

Thank you very much!
Offline

Cameron Nichols

Blackmagic Design

  • Posts: 443
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Design a .braw player with Qt and BlackmagicRAWSDK

PostTue Mar 03, 2020 2:13 am

Hi Jiarong,

I would recommend instead generating a custom QOpenGLWidget, and within GL context, get the texture handle by calling IBlackmagicRawOpenGLInteropHelper::SetImage with the processed image. You can then bind the GL texture to your viewport with this handle.

Be mindful of the output value openGLTextureTarget, it will either return GL_TEXTURE_2D (OpenGL) or GL_TEXTURE_RECTANGLE (Metal), so will have different coordinate systems. This is important if you are intending for your application to be cross-platform.

Regards
Cameron
Offline

Jiarong

  • Posts: 2
  • Joined: Tue Feb 25, 2020 10:09 am
  • Real Name: Jiarong Che

Re: Design a .braw player with Qt and BlackmagicRAWSDK

PostTue Mar 03, 2020 2:19 pm

Ok. Thank you very much! I will try to use QOpenGLWidget and pay attention to the Texture.

Sincerely,
Jiarong

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 18 guests