MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::FFmpegContext Struct Reference

RAII wrapper for FFmpeg contexts with proper cleanup. More...

#include <SoundFileReader.hpp>

+ Collaboration diagram for MayaFlux::IO::FFmpegContext:

Public Member Functions

 ~FFmpegContext ()
 
 FFmpegContext ()=default
 
 FFmpegContext (const FFmpegContext &)=delete
 
FFmpegContextoperator= (const FFmpegContext &)=delete
 
 FFmpegContext (FFmpegContext &&)=delete
 
FFmpegContextoperator= (FFmpegContext &&)=delete
 
bool is_valid () const
 

Public Attributes

AVFormatContext * format_context = nullptr
 
AVCodecContext * codec_context = nullptr
 
SwrContext * swr_context = nullptr
 
int audio_stream_index = -1
 
uint64_t total_frames = 0
 
uint32_t sample_rate = 0
 
uint32_t channels = 0
 

Detailed Description

RAII wrapper for FFmpeg contexts with proper cleanup.

This struct holds all FFmpeg-related state and ensures proper cleanup order. Shared ownership allows safe concurrent access with reader-writer semantics.

Definition at line 45 of file SoundFileReader.hpp.


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