Sunshine master
Self-hosted game stream host for Moonlight.
platf::av_pixel_buf_t Struct Reference

CoreVideo pixel buffer retained by an AV image wrapper. More...

#include <src/platform/macos/av_img_t.h>

Public Member Functions

 av_pixel_buf_t (CMSampleBufferRef sb)
 Lock the sample buffer's pixel buffer for read-only access.
 
uint8_t * data () const
 Return the base address of the locked Core Video pixel buffer.
 

Public Attributes

CVPixelBufferRef buf
 Pixel buffer extracted from the sample buffer.
 

Detailed Description

CoreVideo pixel buffer retained by an AV image wrapper.

Constructor & Destructor Documentation

◆ av_pixel_buf_t()

platf::av_pixel_buf_t::av_pixel_buf_t ( CMSampleBufferRef sb)
inlineexplicit

Lock the sample buffer's pixel buffer for read-only access.

Parameters
sbSample buffer that owns the image data.

Member Function Documentation

◆ data()

uint8_t * platf::av_pixel_buf_t::data ( ) const
inlinenodiscard

Return the base address of the locked Core Video pixel buffer.

Returns
Pointer to the first byte of image data in the pixel buffer.

The documentation for this struct was generated from the following file: