FFmpeg
Functions
iamf_reader.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavcodec/mathops.h"
#include "libavcodec/packet.h"
#include "avformat.h"
#include "avio_internal.h"
#include "iamf.h"
#include "iamf_parse.h"
#include "iamf_reader.h"

Go to the source code of this file.

Functions

static AVStreamfind_stream_by_id (AVFormatContext *s, int id)
 
static int audio_frame_obu (AVFormatContext *s, const IAMFDemuxContext *c, AVIOContext *pb, AVPacket *pkt, int len, enum IAMF_OBU_Type type, unsigned skip_samples, unsigned discard_padding, int id_in_bitstream)
 
static int parameter_block_obu (AVFormatContext *s, IAMFDemuxContext *c, AVIOContext *pbc, int len)
 
int ff_iamf_read_packet (AVFormatContext *s, IAMFDemuxContext *c, AVIOContext *pb, int max_size, AVPacket *pkt)
 
void ff_iamf_read_deinit (IAMFDemuxContext *c)
 

Function Documentation

◆ find_stream_by_id()

static AVStream* find_stream_by_id ( AVFormatContext s,
int  id 
)
static

Definition at line 33 of file iamf_reader.c.

Referenced by audio_frame_obu().

◆ audio_frame_obu()

static int audio_frame_obu ( AVFormatContext s,
const IAMFDemuxContext c,
AVIOContext pb,
AVPacket pkt,
int  len,
enum IAMF_OBU_Type  type,
unsigned  skip_samples,
unsigned  discard_padding,
int  id_in_bitstream 
)
static

Definition at line 43 of file iamf_reader.c.

Referenced by ff_iamf_read_packet().

◆ parameter_block_obu()

static int parameter_block_obu ( AVFormatContext s,
IAMFDemuxContext c,
AVIOContext pbc,
int  len 
)
static

Definition at line 101 of file iamf_reader.c.

Referenced by ff_iamf_read_packet().

◆ ff_iamf_read_packet()

int ff_iamf_read_packet ( AVFormatContext s,
IAMFDemuxContext c,
AVIOContext pb,
int  max_size,
AVPacket pkt 
)

Definition at line 266 of file iamf_reader.c.

Referenced by iamf_read_packet(), and mov_read_packet().

◆ ff_iamf_read_deinit()

void ff_iamf_read_deinit ( IAMFDemuxContext c)

Definition at line 326 of file iamf_reader.c.

Referenced by iamf_read_close(), and mov_free_stream_context().