Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqnxcameraframebuffer.cpp File Reference

(e9abd242abfbc368478f7be3e2923e7b100a9386)

#include "qqnxcameraframebuffer_p.h"
#include <limits>
+ Include dependency graph for qqnxcameraframebuffer.cpp:

Go to the source code of this file.

Functions

template<typename T >
static constexpr int toInt (T value)
 
template<typename T >
static constexpr QSize frameSize (const T &frame)
 
static constexpr QVideoFrameFormat::PixelFormat frameTypeToPixelFormat (camera_frametype_t type)
 
static constexpr size_t bufferDataSize (const camera_frame_nv12_t &frame)
 
static constexpr size_t bufferDataSize (const camera_frame_rgb8888_t &frame)
 
static constexpr size_t bufferDataSize (const camera_frame_gray8_t &frame)
 
static constexpr size_t bufferDataSize (const camera_frame_cbycry_t &frame)
 
static constexpr size_t bufferDataSize (const camera_frame_ycbcr420p_t &frame)
 
static constexpr size_t bufferDataSize (const camera_frame_ycbycr_t &frame)
 
static constexpr size_t bufferDataSize (const camera_buffer_t *buffer)
 
static QAbstractVideoBuffer::MapData mapData (const camera_frame_nv12_t &frame, unsigned char *baseAddress)
 
static QAbstractVideoBuffer::MapData mapData (const camera_frame_rgb8888_t &frame, unsigned char *baseAddress)
 
static QAbstractVideoBuffer::MapData mapData (const camera_frame_gray8_t &frame, unsigned char *baseAddress)
 
static QAbstractVideoBuffer::MapData mapData (const camera_frame_cbycry_t &frame, unsigned char *baseAddress)
 
static QAbstractVideoBuffer::MapData mapData (const camera_frame_ycbcr420p_t &frame, unsigned char *baseAddress)
 
static QAbstractVideoBuffer::MapData mapData (const camera_frame_ycbycr_t &frame, unsigned char *baseAddress)
 
static QAbstractVideoBuffer::MapData mapData (const camera_buffer_t *buffer, unsigned char *baseAddress)
 
static constexpr QSize frameSize (const camera_buffer_t *buffer)
 

Function Documentation

◆ bufferDataSize() [1/7]

static constexpr size_t bufferDataSize ( const camera_buffer_t * buffer)
staticconstexpr

Definition at line 81 of file qqnxcameraframebuffer.cpp.

References bufferDataSize().

+ Here is the call graph for this function:

◆ bufferDataSize() [2/7]

static constexpr size_t bufferDataSize ( const camera_frame_cbycry_t & frame)
staticconstexpr

Definition at line 66 of file qqnxcameraframebuffer.cpp.

References frame.

◆ bufferDataSize() [3/7]

static constexpr size_t bufferDataSize ( const camera_frame_gray8_t & frame)
staticconstexpr

Definition at line 61 of file qqnxcameraframebuffer.cpp.

References frame, and QWidget::height.

◆ bufferDataSize() [4/7]

static constexpr size_t bufferDataSize ( const camera_frame_nv12_t & frame)
staticconstexpr

Definition at line 51 of file qqnxcameraframebuffer.cpp.

References frame, and QWidget::height.

Referenced by bufferDataSize().

+ Here is the caller graph for this function:

◆ bufferDataSize() [5/7]

static constexpr size_t bufferDataSize ( const camera_frame_rgb8888_t & frame)
staticconstexpr

Definition at line 56 of file qqnxcameraframebuffer.cpp.

References frame, and QWidget::height.

◆ bufferDataSize() [6/7]

static constexpr size_t bufferDataSize ( const camera_frame_ycbcr420p_t & frame)
staticconstexpr

Definition at line 71 of file qqnxcameraframebuffer.cpp.

References frame, and QWidget::height.

◆ bufferDataSize() [7/7]

static constexpr size_t bufferDataSize ( const camera_frame_ycbycr_t & frame)
staticconstexpr

Definition at line 76 of file qqnxcameraframebuffer.cpp.

References frame, and QWidget::height.

◆ frameSize() [1/2]

static constexpr QSize frameSize ( const camera_buffer_t * buffer)
staticconstexpr

Definition at line 238 of file qqnxcameraframebuffer.cpp.

References frameSize().

+ Here is the call graph for this function:

◆ frameSize() [2/2]

template<typename T >
static constexpr QSize frameSize ( const T & frame)
staticconstexpr

Definition at line 24 of file qqnxcameraframebuffer.cpp.

References frame, QWidget::height, toInt(), and QWidget::width.

Referenced by QQnxCameraFrameBuffer::QQnxCameraFrameBuffer(), QMacStylePrivate::CocoaControl::adjustedControlFrame(), QQuickSpriteEngine::assembledImage(), D3DPresentEngine::createVideoSamples(), frameSize(), qImageFromVideoFrame(), QVideoWindowPrivate::render(), QFFmpeg::VideoFrameEncoder::sendFrame(), QFFmpeg::AudioSourceIO::setFrameSize(), QVideoTextureHelper::SubtitleLayout::update(), QVideoWindowPrivate::updateSubtitle(), and QWasmVideoOutput::videoFrameCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ frameTypeToPixelFormat()

◆ mapData() [1/7]

static QAbstractVideoBuffer::MapData mapData ( const camera_buffer_t * buffer,
unsigned char * baseAddress )
static

Definition at line 215 of file qqnxcameraframebuffer.cpp.

References mapData().

+ Here is the call graph for this function:

◆ mapData() [2/7]

static QAbstractVideoBuffer::MapData mapData ( const camera_frame_cbycry_t & frame,
unsigned char * baseAddress )
static

Definition at line 158 of file qqnxcameraframebuffer.cpp.

References frame, and toInt().

+ Here is the call graph for this function:

◆ mapData() [3/7]

static QAbstractVideoBuffer::MapData mapData ( const camera_frame_gray8_t & frame,
unsigned char * baseAddress )
static

Definition at line 141 of file qqnxcameraframebuffer.cpp.

References frame, QWidget::height, and toInt().

+ Here is the call graph for this function:

◆ mapData() [4/7]

static QAbstractVideoBuffer::MapData mapData ( const camera_frame_nv12_t & frame,
unsigned char * baseAddress )
static

Definition at line 103 of file qqnxcameraframebuffer.cpp.

References frame, QWidget::height, QWidget::size, and toInt().

Referenced by QQnxCameraFrameBuffer::QQnxCameraFrameBuffer(), AVFVideoBuffer::map(), QImageVideoBuffer::map(), QMemoryVideoBuffer::map(), AndroidTextureVideoBuffer::map(), QCGImageVideoBuffer::map(), QD3D11TextureVideoBuffer::map(), QFFmpegVideoBuffer::map(), QGstVideoBuffer::map(), and mapData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mapData() [5/7]

static QAbstractVideoBuffer::MapData mapData ( const camera_frame_rgb8888_t & frame,
unsigned char * baseAddress )
static

Definition at line 124 of file qqnxcameraframebuffer.cpp.

References frame, QWidget::height, and toInt().

+ Here is the call graph for this function:

◆ mapData() [6/7]

static QAbstractVideoBuffer::MapData mapData ( const camera_frame_ycbcr420p_t & frame,
unsigned char * baseAddress )
static

Definition at line 175 of file qqnxcameraframebuffer.cpp.

References frame, QWidget::height, QWidget::size, and toInt().

+ Here is the call graph for this function:

◆ mapData() [7/7]

static QAbstractVideoBuffer::MapData mapData ( const camera_frame_ycbycr_t & frame,
unsigned char * baseAddress )
static

Definition at line 198 of file qqnxcameraframebuffer.cpp.

References frame, QWidget::height, and toInt().

+ Here is the call graph for this function:

◆ toInt()

template<typename T >
static constexpr int toInt ( T value)
staticconstexpr

Definition at line 9 of file qqnxcameraframebuffer.cpp.

Referenced by frameSize(), mapData(), mapData(), mapData(), mapData(), mapData(), and mapData().

+ Here is the caller graph for this function: