Wed Jan 8 2020 09:49:47

Asterisk developer's documentation


ex_g722.h
Go to the documentation of this file.
1 /*! \file
2  * \brief 8-bit data
3  *
4  * Copyright (C) 2008, Digium, Inc.
5  *
6  * Distributed under the terms of the GNU General Public License
7  *
8  */
9 
10 static uint8_t ex_g722[] = {
11  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
12  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
13  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
14  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
16  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
17  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
22  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
26  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
27  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
28  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
29  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
30  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
31 };
32 
33 static struct ast_frame *g722_sample(void)
34 {
35  static struct ast_frame f = {
37  .subclass.codec = AST_FORMAT_G722,
38  .datalen = sizeof(ex_g722),
40  .mallocd = 0,
41  .offset = 0,
42  .src = __PRETTY_FUNCTION__,
43  .data.ptr = ex_g722,
44  };
45 
46  return &f;
47 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static struct ast_frame * g722_sample(void)
Definition: ex_g722.h:33
static struct ast_format f[]
Definition: format_g726.c:181
Data structure associated with a single frame of data.
Definition: frame.h:142
#define AST_FORMAT_G722
Definition: frame.h:266
enum ast_frame_type frametype
Definition: frame.h:144
static uint8_t ex_g722[]
Definition: ex_g722.h:10
int samples
Definition: frame.h:150