Home --> Documentations --> PJMEDIA Reference
Frame.
More...
|
void | pjmedia_frame_copy (pjmedia_frame *dst, const pjmedia_frame *src) |
|
void | pjmedia_frame_ext_append_subframe (pjmedia_frame_ext *frm, const void *src, unsigned bitlen, unsigned samples_cnt) |
|
pjmedia_frame_ext_subframe * | pjmedia_frame_ext_get_subframe (const pjmedia_frame_ext *frm, unsigned n) |
|
unsigned | pjmedia_frame_ext_copy_payload (const pjmedia_frame_ext *frm, void *dst, unsigned maxlen) |
|
pj_status_t | pjmedia_frame_ext_pop_subframes (pjmedia_frame_ext *frm, unsigned n) |
|
void | pjmedia_zero_samples (pj_int16_t *samples, unsigned count) |
|
void | pjmedia_copy_samples (pj_int16_t *dst, const pj_int16_t *src, unsigned count) |
|
void | pjmedia_move_samples (pj_int16_t *dst, const pj_int16_t *src, unsigned count) |
|
◆ pjmedia_frame_type
Types of media frame.
Enumerator |
---|
PJMEDIA_FRAME_TYPE_NONE | No frame.
|
PJMEDIA_FRAME_TYPE_AUDIO | Normal audio frame.
|
PJMEDIA_FRAME_TYPE_EXTENDED | Extended audio frame.
|
PJMEDIA_FRAME_TYPE_VIDEO | Video frame.
|
◆ pjmedia_frame_copy()
◆ pjmedia_frame_ext_append_subframe()
void pjmedia_frame_ext_append_subframe |
( |
pjmedia_frame_ext * |
frm, |
|
|
const void * |
src, |
|
|
unsigned |
bitlen, |
|
|
unsigned |
samples_cnt |
|
) |
| |
◆ pjmedia_frame_ext_get_subframe()
◆ pjmedia_frame_ext_copy_payload()
unsigned pjmedia_frame_ext_copy_payload |
( |
const pjmedia_frame_ext * |
frm, |
|
|
void * |
dst, |
|
|
unsigned |
maxlen |
|
) |
| |
◆ pjmedia_frame_ext_pop_subframes()
◆ pjmedia_zero_samples()
void pjmedia_zero_samples |
( |
pj_int16_t * |
samples, |
|
|
unsigned |
count |
|
) |
| |
This is a general purpose function set PCM samples to zero. Since this function is needed by many parts of the library, by putting this functionality in one place, it enables some. clever people to optimize this function.
- Parameters
-
samples | The 16bit PCM samples. |
count | Number of samples. |
References pj_bzero(), and PJ_INLINE.
◆ pjmedia_copy_samples()
◆ pjmedia_move_samples()
This is a general purpose function to copy samples from/to buffers with equal size. Since this function is needed by many parts of the library, by putting this functionality in one place, it enables some. clever people to optimize this function.
References PJ_INLINE, and pj_memmove().
Referenced by pjmedia_circ_buf_pack_buffer().
PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.
|