Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxcameraframebuffer.cpp File Reference

(f9ad0153f8cbe01eb986c6bb0c307ee10807ff94)

#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]

constexpr size_t bufferDataSize ( const camera_buffer_t * buffer)
staticconstexpr

Definition at line 81 of file qqnxcameraframebuffer.cpp.

◆ bufferDataSize() [2/7]

constexpr size_t bufferDataSize ( const camera_frame_cbycry_t & frame)
staticconstexpr

Definition at line 66 of file qqnxcameraframebuffer.cpp.

◆ bufferDataSize() [3/7]

constexpr size_t bufferDataSize ( const camera_frame_gray8_t & frame)
staticconstexpr

Definition at line 61 of file qqnxcameraframebuffer.cpp.

◆ bufferDataSize() [4/7]

constexpr size_t bufferDataSize ( const camera_frame_nv12_t & frame)
staticconstexpr

Definition at line 51 of file qqnxcameraframebuffer.cpp.

◆ bufferDataSize() [5/7]

constexpr size_t bufferDataSize ( const camera_frame_rgb8888_t & frame)
staticconstexpr

Definition at line 56 of file qqnxcameraframebuffer.cpp.

◆ bufferDataSize() [6/7]

constexpr size_t bufferDataSize ( const camera_frame_ycbcr420p_t & frame)
staticconstexpr

Definition at line 71 of file qqnxcameraframebuffer.cpp.

◆ bufferDataSize() [7/7]

constexpr size_t bufferDataSize ( const camera_frame_ycbycr_t & frame)
staticconstexpr

Definition at line 76 of file qqnxcameraframebuffer.cpp.

◆ frameSize() [1/2]

constexpr QSize frameSize ( const camera_buffer_t * buffer)
staticconstexpr

Definition at line 238 of file qqnxcameraframebuffer.cpp.

◆ frameSize() [2/2]

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

Definition at line 24 of file qqnxcameraframebuffer.cpp.

◆ frameTypeToPixelFormat()

constexpr QVideoFrameFormat::PixelFormat frameTypeToPixelFormat ( camera_frametype_t type)
staticconstexpr

Definition at line 29 of file qqnxcameraframebuffer.cpp.

◆ mapData() [1/7]

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

Definition at line 215 of file qqnxcameraframebuffer.cpp.

◆ mapData() [2/7]

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

Definition at line 158 of file qqnxcameraframebuffer.cpp.

◆ mapData() [3/7]

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

Definition at line 141 of file qqnxcameraframebuffer.cpp.

◆ mapData() [4/7]

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

Definition at line 103 of file qqnxcameraframebuffer.cpp.

◆ mapData() [5/7]

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

Definition at line 124 of file qqnxcameraframebuffer.cpp.

◆ mapData() [6/7]

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

Definition at line 175 of file qqnxcameraframebuffer.cpp.

◆ mapData() [7/7]

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

Definition at line 198 of file qqnxcameraframebuffer.cpp.

◆ toInt()

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

Definition at line 9 of file qqnxcameraframebuffer.cpp.