UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
av_frame Struct Reference
Inheritance diagram for av_frame:
Inheritance graph
Collaboration diagram for av_frame:
Collaboration graph

Public Member Functions

 av_frame (struct video_desc desc, int GoldenSize, int BytesPerFrame, int AudioLen)
 
 ~av_frame ()
 
- Public Member Functions inherited from av_frame_base
virtual ~av_frame_base ()
 

Public Attributes

char * audio_data
 
int audio_len
 
int mGoldenSize
 
bool valid
 
struct video_frame * video
 

Detailed Description

Definition at line 112 of file bluefish444.cpp.

Constructor & Destructor Documentation

◆ av_frame()

av_frame::av_frame ( struct video_desc desc,
int GoldenSize,
int BytesPerFrame,
int AudioLen )
inline

Definition at line 113 of file bluefish444.cpp.

113 :
114 valid(true),
115 audio_len(0),
116 mGoldenSize(GoldenSize)
117 {
119 for(unsigned int i = 0; i < desc.tile_count; ++i) {
120 video->tiles[i].data_len = BytesPerFrame;
121 video->tiles[i].data = (char*)
122 bfAlloc(GoldenSize);
123 }
124 if(AudioLen) {
125 audio_data = (char *) bfAlloc(AudioLen);
126 } else {
127 audio_data = NULL;
128 }
129 }
struct video_desc desc
struct video_frame * vf_alloc_desc(struct video_desc desc)
Allocates video frame accordig given desc.
struct video_frame * video
char * audio_data
char * data
Raw tile data. Pointer must be at least 4B aligned.
Definition types.h:287
unsigned int data_len
length of the data
Definition types.h:288
unsigned int tile_count
Definition types.h:185
struct tile tiles[FLEXIBLE_ARRAY_MEMBER]
Definition types.h:345

References audio_data, tile::data, tile::data_len, desc, video_desc::tile_count, video_frame::tiles, vf_alloc_desc(), and video.

Referenced by worker().

Here is the call graph for this function:

◆ ~av_frame()

av_frame::~av_frame ( )
inline

Definition at line 131 of file bluefish444.cpp.

131 {
132 bfFree(audio_len, audio_data);
133 for(unsigned int i = 0; i < video->tile_count; ++i) {
134 bfFree(mGoldenSize, video->tiles[i].data);
135 }
136 vf_free(video);
137 }
void vf_free(struct video_frame *buf)
Frees video_frame structure.
unsigned int tile_count
Definition types.h:344

References audio_data, audio_len, tile::data, mGoldenSize, video_frame::tile_count, video_frame::tiles, vf_free(), and video.

Here is the call graph for this function:

Member Data Documentation

◆ audio_data

char* av_frame::audio_data

Definition at line 139 of file bluefish444.cpp.

Referenced by av_frame(), ~av_frame(), and worker().

◆ audio_len

int av_frame::audio_len

Definition at line 142 of file bluefish444.cpp.

Referenced by ~av_frame(), and worker().

◆ mGoldenSize

int av_frame::mGoldenSize

Definition at line 143 of file bluefish444.cpp.

Referenced by ~av_frame().

◆ valid

bool av_frame::valid

Definition at line 141 of file bluefish444.cpp.

Referenced by vidcap_bluefish444_done(), vidcap_bluefish444_grab(), and worker().

◆ video

struct video_frame* av_frame::video

Definition at line 140 of file bluefish444.cpp.

Referenced by av_frame(), ~av_frame(), and worker().


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