summaryrefslogtreecommitdiffstats
path: root/tinyDAV/src/codecs/bfcp/tdav_codec_bfcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tinyDAV/src/codecs/bfcp/tdav_codec_bfcp.c')
-rwxr-xr-xtinyDAV/src/codecs/bfcp/tdav_codec_bfcp.c93
1 files changed, 46 insertions, 47 deletions
diff --git a/tinyDAV/src/codecs/bfcp/tdav_codec_bfcp.c b/tinyDAV/src/codecs/bfcp/tdav_codec_bfcp.c
index 3495295..5588410 100755
--- a/tinyDAV/src/codecs/bfcp/tdav_codec_bfcp.c
+++ b/tinyDAV/src/codecs/bfcp/tdav_codec_bfcp.c
@@ -1,18 +1,18 @@
/*
* Copyright (C) 2014 Mamadou DIOP.
-*
+*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
-*
+*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-*
+*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
@@ -35,8 +35,9 @@
#define tdav_codec_bfcp_decode tsk_null
static tsk_bool_t tdav_codec_bfcp_sdp_att_match(const tmedia_codec_t* codec, const char* att_name, const char* att_value)
-{ /* always match */
- return tsk_true;
+{
+ /* always match */
+ return tsk_true;
}
@@ -47,58 +48,56 @@ static tsk_bool_t tdav_codec_bfcp_sdp_att_match(const tmedia_codec_t* codec, con
/* constructor */
static tsk_object_t* tdav_codec_bfcp_ctor(tsk_object_t * self, va_list * app)
{
- tdav_codec_bfcp_t *bfcp = self;
- if (bfcp) {
- /* init base: called by tmedia_codec_create() */
- /* init self */
- }
- return self;
+ tdav_codec_bfcp_t *bfcp = self;
+ if (bfcp) {
+ /* init base: called by tmedia_codec_create() */
+ /* init self */
+ }
+ return self;
}
/* destructor */
static tsk_object_t* tdav_codec_bfcp_dtor(tsk_object_t * self)
-{
- tdav_codec_bfcp_t *bfcp = self;
- if (bfcp) {
- /* deinit base */
- tmedia_codec_bfcp_deinit(bfcp);
- /* deinit self */
- }
+{
+ tdav_codec_bfcp_t *bfcp = self;
+ if (bfcp) {
+ /* deinit base */
+ tmedia_codec_bfcp_deinit(bfcp);
+ /* deinit self */
+ }
- return self;
+ return self;
}
/* object definition */
-static const tsk_object_def_t tdav_codec_bfcp_def_s =
-{
- sizeof(tdav_codec_bfcp_t),
- tdav_codec_bfcp_ctor,
- tdav_codec_bfcp_dtor,
- tmedia_codec_cmp,
+static const tsk_object_def_t tdav_codec_bfcp_def_s = {
+ sizeof(tdav_codec_bfcp_t),
+ tdav_codec_bfcp_ctor,
+ tdav_codec_bfcp_dtor,
+ tmedia_codec_cmp,
};
/* plugin definition*/
-static const tmedia_codec_plugin_def_t tdav_codec_bfcp_plugin_def_s =
-{
- &tdav_codec_bfcp_def_s,
+static const tmedia_codec_plugin_def_t tdav_codec_bfcp_plugin_def_s = {
+ &tdav_codec_bfcp_def_s,
+
+ tmedia_bfcp,
+ tmedia_codec_id_none, // fake codec without real id
+ "application",
+ "BFCP fake codec",
+ TMEDIA_CODEC_FORMAT_BFCP,
+ tsk_false,
+ 0, // rate
- tmedia_bfcp,
- tmedia_codec_id_none, // fake codec without real id
- "application",
- "BFCP fake codec",
- TMEDIA_CODEC_FORMAT_BFCP,
- tsk_false,
- 0, // rate
-
- /* audio */
- {0},
+ /* audio */
+ {0},
- /* video */
- {0},
+ /* video */
+ {0},
- tsk_null, // set()
- tdav_codec_bfcp_open,
- tdav_codec_bfcp_close,
- tdav_codec_bfcp_encode,
- tdav_codec_bfcp_decode,
- tdav_codec_bfcp_sdp_att_match,
- tdav_codec_bfcp_sdp_att_get
+ tsk_null, // set()
+ tdav_codec_bfcp_open,
+ tdav_codec_bfcp_close,
+ tdav_codec_bfcp_encode,
+ tdav_codec_bfcp_decode,
+ tdav_codec_bfcp_sdp_att_match,
+ tdav_codec_bfcp_sdp_att_get
};
const tmedia_codec_plugin_def_t *tdav_codec_bfcp_plugin_def_t = &tdav_codec_bfcp_plugin_def_s;
OpenPOWER on IntegriCloud