FFmpeg
Data Fields
SwsFrame Struct Reference

Represents a view into a single field of frame data. More...

#include <format.h>

Data Fields

uint8_t * data [4]
 
int linesize [4]
 
int width
 Dimensions and format. More...
 
int height
 
enum AVPixelFormat format
 
const AVFrameavframe
 Pointer to the original AVFrame, if there is a 1:1 correspondence. More...
 

Detailed Description

Represents a view into a single field of frame data.

Ostensibly, this is a (non-compatible) subset of AVFrame, however, the semantics are VERY different.

Unlike AVFrame, this struct does NOT own any data references. All buffers referenced by a SwsFrame are managed externally. This merely represents a view into data.

This struct is not refcounted, and may be freely copied onto the stack.

Definition at line 188 of file format.h.

Field Documentation

◆ data

uint8_t* SwsFrame::data[4]

◆ linesize

int SwsFrame::linesize[4]

◆ width

int SwsFrame::width

Dimensions and format.

Definition at line 196 of file format.h.

◆ height

int SwsFrame::height

Definition at line 196 of file format.h.

◆ format

enum AVPixelFormat SwsFrame::format

Definition at line 197 of file format.h.

Referenced by run_copy().

◆ avframe

const AVFrame* SwsFrame::avframe

Pointer to the original AVFrame, if there is a 1:1 correspondence.

Definition at line 202 of file format.h.

Referenced by process().


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