Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
ex_g726.h File Reference

4-bit G.726 data More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static struct ast_frameg726_sample (void)
 

Variables

static uint8_t ex_g726 []
 

Detailed Description

4-bit G.726 data

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_g726.h.

Function Documentation

◆ g726_sample()

static struct ast_frame * g726_sample ( void  )
static

Definition at line 18 of file ex_g726.h.

19{
20 static struct ast_frame f = {
22 .datalen = sizeof(ex_g726),
23 .samples = ARRAY_LEN(ex_g726) * 2, /* 2 samples per byte */
24 .mallocd = 0,
25 .offset = 0,
26 .src = __PRETTY_FUNCTION__,
27 .data.ptr = ex_g726,
28 };
29
31
32 return &f;
33}
static uint8_t ex_g726[]
Definition: ex_g726.h:10
struct ast_format * ast_format_g726
Built-in cached g726 format.
Definition: format_cache.c:111
@ AST_FRAME_VOICE
struct ast_format * format
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
enum ast_frame_type frametype
#define ARRAY_LEN(a)
Definition: utils.h:666

References ARRAY_LEN, ast_format_g726, AST_FRAME_VOICE, ex_g726, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

Variable Documentation

◆ ex_g726

uint8_t ex_g726[]
static

Definition at line 10 of file ex_g726.h.

Referenced by g726_sample().