Save to raw, headerless h263 data.
More...
Go to the source code of this file.
|
#define | BUF_SIZE 32768 /* Four real h.263 Frames */ |
|
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Raw H.263 data" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_APP_DEPEND } |
|
static struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_format | h263_f |
|
Save to raw, headerless h263 data.
- File name extension: h263
Definition in file format_h263.c.
#define BUF_SIZE 32768 /* Four real h.263 Frames */ |
static void __reg_module |
( |
void |
| ) |
|
|
static |
static void __unreg_module |
( |
void |
| ) |
|
|
static |
Definition at line 56 of file format_h263.c.
References ast_log(), ast_filestream::f, and LOG_WARNING.
61 if ((res = fread(&ts, 1,
sizeof(ts), s->
f)) <
sizeof(ts)) {
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
Definition at line 68 of file format_h263.c.
References ast_filestream::_private, AST_FORMAT_H263, AST_FRAME_SET_BUFFER, AST_FRAME_VIDEO, AST_FRIENDLY_OFFSET, ast_log(), ast_filestream::buf, BUF_SIZE, ast_frame_subclass::codec, ast_frame::data, ast_frame::datalen, ast_frame::delivery, errno, ast_filestream::f, ast_filestream::fr, ast_frame::frametype, if(), h263_desc::lastts, len(), LOG_WARNING, ast_frame::mallocd, ast_frame::ptr, ast_frame::samples, ast_frame::subclass, and ast_frame::ts.
77 if ((res = fread(&len, 1,
sizeof(len), s->
f)) < 1)
80 mark = (len & 0x8000) ? 1 : 0;
100 if ((res = fread(&ts, 1,
sizeof(ts), s->
f)) ==
sizeof(ts)) {
102 *whennext = fs->
lastts * 4/45;
union ast_frame_subclass subclass
#define AST_FRAME_SET_BUFFER(fr, _base, _ofs, _datalen)
#define AST_FRIENDLY_OFFSET
Offset into a frame's data buffer.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
if(yyss+yystacksize-1<=yyssp)
enum ast_frame_type frametype
union ast_frame::@172 data
static int h263_seek |
( |
struct ast_filestream * |
fs, |
|
|
off_t |
sample_offset, |
|
|
int |
whence |
|
) |
| |
|
static |
Definition at line 150 of file format_h263.c.
References ast_log(), AST_LOG_WARNING, errno, and ast_filestream::f.
155 if ((fd = fileno(fs->
f)) < 0) {
159 if ((cur = ftello(fs->
f)) < 0) {
164 return ftruncate(fd, cur);
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
Definition at line 108 of file format_h263.c.
References AST_FORMAT_H263, AST_FRAME_VIDEO, ast_getformatname(), ast_log(), ast_frame_subclass::codec, ast_frame::data, ast_frame::datalen, errno, ast_filestream::f, ast_frame::frametype, len(), LOG_WARNING, ast_frame::ptr, ast_frame::samples, and ast_frame::subclass.
128 if ((res = fwrite(&ts, 1,
sizeof(ts), fs->
f)) !=
sizeof(ts)) {
132 len = htons(f->
datalen | mark);
133 if ((res = fwrite(&len, 1,
sizeof(len), fs->
f)) !=
sizeof(len)) {
union ast_frame_subclass subclass
char * ast_getformatname(format_t format)
Get the name of a format.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
enum ast_frame_type frametype
union ast_frame::@172 data
static int load_module |
( |
void |
| ) |
|
|
static |
static int unload_module |
( |
void |
| ) |
|
|
static |
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Raw H.263 data" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_APP_DEPEND } |
|
static |