Fri Aug 24 02:29:09 2007

Asterisk developer's documentation


ast_frame Struct Reference

Data structure associated with a single frame of data. More...

#include <frame.h>


Public Member Functions

 AST_LIST_ENTRY (ast_frame) frame_list

Data Fields

void * data
int datalen
timeval delivery
enum ast_frame_type frametype
int has_timing_info
long len
int mallocd
size_t mallocd_hdr_len
int offset
int samples
int seqno
const char * src
int subclass
long ts


Detailed Description

Data structure associated with a single frame of data.

Definition at line 128 of file frame.h.


Member Function Documentation

AST_LIST_ENTRY ( ast_frame   ) 

For placing in a linked list


Field Documentation

void* data

Pointer to actual data

Definition at line 146 of file frame.h.

Referenced by __ast_read(), __zt_exception(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_frame_free(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_prod(), ast_rtp_read(), ast_slinfactory_read(), ast_write(), bridge_native_loop(), bridge_p2p_loop(), cb_events(), do_immediate_setup(), function_ilink(), handle_link_data(), iax2_send(), iax2_sendimage(), iax_frame_wrap(), jpeg_write_image(), misdn_read(), misdn_write(), mwanalyze_exec(), nbs_xread(), nbs_xwrite(), ogg_vorbis_read(), phone_exception(), phone_read(), phone_write(), process_rfc3389(), rpt(), rxfax_exec(), send_link_dtmf(), send_tone_burst(), txfax_exec(), waitstream_core(), zap_frameout(), zt_handle_event(), zt_read(), and zt_write().

int datalen

Length of data

Definition at line 134 of file frame.h.

Referenced by __zt_exception(), adsi_careful_send(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_frdup(), ast_frisolate(), ast_rtcp_read(), ast_rtp_read(), ast_rtp_write(), ast_write(), bridge_native_loop(), bridge_p2p_loop(), cb_events(), do_immediate_setup(), function_ilink(), gsm_write(), handle_link_data(), iax2_send(), iax2_sendimage(), iax_frame_wrap(), iaxfrdup2(), jpeg_write_image(), milliwatt_generate(), misdn_read(), mwanalyze_exec(), nbs_xread(), nbs_xwrite(), ogg_vorbis_read(), phone_exception(), phone_read(), phone_write(), process_rfc3389(), rpt(), send_dtmf(), send_link_dtmf(), send_tone_burst(), waitstream_core(), zap_frameout(), zt_handle_event(), zt_read(), and zt_write().

struct timeval delivery

Global delivery time

Definition at line 148 of file frame.h.

Referenced by __get_from_jb(), __zt_exception(), ast_frdup(), ast_rtp_read(), ast_translate(), cb_events(), do_immediate_setup(), iax_frame_wrap(), misdn_read(), mwanalyze_exec(), nbs_xread(), phone_exception(), phone_read(), process_rfc3389(), schedule_delivery(), and zt_read().

enum ast_frame_type frametype

Kind of frame

Definition at line 130 of file frame.h.

Referenced by __ast_read(), __attempt_transmit(), __get_from_jb(), __zt_exception(), adsi_careful_send(), ast_channel_spy_read_frame(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_queue_frame(), ast_rtcp_read(), ast_rtp_read(), ast_rtp_write(), ast_translate(), ast_write(), background_detect_exec(), bridge_native_loop(), bridge_p2p_loop(), cb_events(), conf_run(), do_immediate_setup(), function_ilink(), gtalk_digit(), gtalk_write(), handle_frame(), handle_frame_ownerless(), handle_link_data(), iax2_send(), iax_frame_wrap(), jpeg_write_image(), lintospeex_frameout(), mgcp_write(), milliwatt_generate(), misdn_read(), mwanalyze_exec(), nbs_xwrite(), nv_background_detect_exec(), nv_detectfax_exec(), ogg_vorbis_read(), oh323_write(), phone_exception(), phone_read(), phone_write(), process_rfc3389(), rxfax_exec(), schedule_delivery(), send_dtmf(), send_link_dtmf(), send_tone_burst(), silence_generator_generate(), sip_write(), skinny_write(), txfax_exec(), waitstream_core(), zap_frameout(), zt_handle_dtmfup(), zt_handle_event(), zt_read(), and zt_write().

int has_timing_info

Timing data flag

Definition at line 152 of file frame.h.

Referenced by __do_deliver(), ast_frdup(), ast_frisolate(), ast_rtp_read(), ast_translate(), and framein().

long len

Length in milliseconds

Definition at line 156 of file frame.h.

Referenced by ast_frdup(), ast_frisolate(), ast_jb_put(), ast_rtp_read(), ast_translate(), ast_write(), create_jb(), framein(), iax_frame_wrap(), jb_put_adaptive(), jb_put_first_fixed(), and jb_put_fixed().

int mallocd

Was the data malloc'd? i.e. should we free it when we discard the frame?

Definition at line 138 of file frame.h.

Referenced by __zt_exception(), ast_frame_free(), ast_frdup(), ast_frisolate(), ast_rtcp_read(), ast_rtp_read(), cb_events(), do_immediate_setup(), function_ilink(), handle_link_data(), iax_frame_wrap(), misdn_read(), mwanalyze_exec(), nbs_xread(), ogg_vorbis_read(), phone_exception(), phone_read(), send_dtmf(), send_link_dtmf(), send_tone_burst(), zap_frameout(), zt_handle_event(), and zt_read().

size_t mallocd_hdr_len

The number of bytes allocated for a malloc'd frame header

Definition at line 140 of file frame.h.

Referenced by ast_frdup().

int offset

How many bytes exist _before_ "data" that can be used if needed

Definition at line 142 of file frame.h.

Referenced by __get_from_jb(), __zt_exception(), ast_frame_free(), ast_frdup(), ast_frisolate(), ast_rtp_read(), ast_rtp_write(), cb_events(), do_immediate_setup(), function_ilink(), handle_link_data(), iax_frame_wrap(), misdn_read(), mwanalyze_exec(), nbs_xread(), phone_exception(), phone_read(), process_rfc3389(), send_link_dtmf(), send_tone_burst(), zap_frameout(), zt_handle_event(), and zt_read().

int samples

Number of 8khz samples in this frame

Definition at line 136 of file frame.h.

Referenced by __get_from_jb(), __zt_exception(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_rtcp_read(), ast_rtp_read(), ast_slinfactory_read(), ast_translate(), cb_events(), dictate_exec(), do_immediate_setup(), function_ilink(), g722tolin_sample(), g726tolin_sample(), handle_link_data(), iax_frame_wrap(), lintoadpcm_frameout(), lintog722_sample(), lintog726_sample(), lintospeex_frameout(), milliwatt_generate(), misdn_read(), misdn_write(), mwanalyze_exec(), nbs_xread(), ogg_vorbis_read(), phone_exception(), phone_read(), process_rfc2833(), process_rfc3389(), queue_frame_to_spies(), rxfax_exec(), send_dtmf(), send_link_dtmf(), send_tone_burst(), txfax_exec(), wav_read(), zap_frameout(), zt_handle_event(), and zt_read().

int seqno

Sequence number

Definition at line 158 of file frame.h.

Referenced by ast_frdup(), ast_frisolate(), ast_rtp_read(), ast_translate(), and framein().

const char* src

Optional source of frame for debugging

Definition at line 144 of file frame.h.

Referenced by __get_from_jb(), __zt_exception(), ast_dsp_process(), ast_frame_free(), ast_frdup(), ast_frisolate(), ast_prod(), ast_rtcp_read(), ast_rtp_read(), cb_events(), do_immediate_setup(), iax_frame_wrap(), misdn_read(), misdn_write(), mwanalyze_exec(), nbs_xread(), pcm_seek(), phone_exception(), phone_read(), send_dtmf(), zt_handle_event(), and zt_read().

int subclass

Subclass, frame dependent

Definition at line 132 of file frame.h.

Referenced by __ast_read(), __attempt_transmit(), __get_from_jb(), __zt_exception(), adsi_careful_send(), ast_dsp_call_progress(), ast_dsp_digitdetect(), ast_dsp_process(), ast_frame_slinear_sum(), ast_frdup(), ast_frisolate(), ast_prod(), ast_queue_frame(), ast_rtcp_read(), ast_rtp_read(), ast_rtp_write(), ast_write(), background_detect_exec(), bridge_native_loop(), bridge_p2p_loop(), cb_events(), create_jb(), do_immediate_setup(), function_ilink(), gtalk_write(), handle_frame(), handle_frame_ownerless(), handle_link_data(), iax2_send(), iax2_sendimage(), iax_frame_wrap(), jpeg_write_image(), mgcp_write(), misdn_read(), misdn_write(), mwanalyze_exec(), nbs_xwrite(), nv_background_detect_exec(), nv_detectfax_exec(), ogg_vorbis_read(), oh323_write(), phone_exception(), phone_read(), phone_write(), process_rfc3389(), rpt_call(), send_dtmf(), send_link_dtmf(), send_tone_burst(), sip_write(), skinny_write(), waitstream_core(), zap_frameout(), zt_handle_dtmfup(), zt_handle_event(), zt_read(), and zt_write().

long ts

Timestamp in milliseconds

Definition at line 154 of file frame.h.

Referenced by ast_frdup(), ast_frisolate(), ast_jb_put(), ast_rtp_read(), ast_translate(), create_jb(), framein(), h263_read(), h264_read(), jb_put_adaptive(), jb_put_first_fixed(), and jb_put_fixed().


The documentation for this struct was generated from the following file:
Generated on Fri Aug 24 02:29:09 2007 for Asterisk - the Open Source PBX by  doxygen 1.5.1