BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

pjmedia_frame_ext Struct Reference

#include <frame.h>

Data Fields

pjmedia_frame base
 
pj_uint16_t samples_cnt
 
pj_uint16_t subframe_cnt
 

Detailed Description

The pjmedia_frame_ext is used to carry a more complex audio frames than the typical PCM audio frames, and it is signaled by setting the "type" field of a pjmedia_frame to PJMEDIA_FRAME_TYPE_EXTENDED. With this set, application may typecast pjmedia_frame to pjmedia_frame_ext.

This structure may contain more than one audio frames, which subsequently will be called subframes in this structure. The subframes section immediately follows the end of this structure, and each subframe is represented by pjmedia_frame_ext_subframe structure. Every next subframe immediately follows the previous subframe, and all subframes are byte-aligned although its payload may not be byte-aligned.

Field Documentation

◆ base

pjmedia_frame pjmedia_frame_ext::base

Base frame info

◆ samples_cnt

pj_uint16_t pjmedia_frame_ext::samples_cnt

Number of samples in this frame

Referenced by pjmedia_frame_ext_append_subframe().

◆ subframe_cnt

pj_uint16_t pjmedia_frame_ext::subframe_cnt

Number of (sub)frames in this frame

Referenced by pjmedia_frame_ext_append_subframe().


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

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.