summaryrefslogtreecommitdiffstats
path: root/branches/1.0/tinyMEDIA/include/tinymedia/tmedia_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/tinyMEDIA/include/tinymedia/tmedia_common.h')
-rw-r--r--branches/1.0/tinyMEDIA/include/tinymedia/tmedia_common.h119
1 files changed, 0 insertions, 119 deletions
diff --git a/branches/1.0/tinyMEDIA/include/tinymedia/tmedia_common.h b/branches/1.0/tinyMEDIA/include/tinymedia/tmedia_common.h
deleted file mode 100644
index 54044be..0000000
--- a/branches/1.0/tinyMEDIA/include/tinymedia/tmedia_common.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* 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.
-*
-*/
-
-/**@file tmedia_common.h
- * @brief Common functions and definitions.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYMEDIA_COMMON_H
-#define TINYMEDIA_COMMON_H
-
-#include "tinymedia_config.h"
-
-#include "tinysdp/tsdp_message.h"
-
-TMEDIA_BEGIN_DECLS
-
-/** List of all supported media types */
-typedef enum tmedia_type_e
-{
- tmedia_none = 0x00,
- tmedia_ghost = (0x01 << 0),
-
- tmedia_audio = (0x01 << 1),
- tmedia_video = (0x01 << 2),
- tmedia_chat = (0x01 << 3),
- tmedia_file = (0x01 << 4),
- tmedia_t38 = (0x01 << 5),
-
- tmedia_msrp = (tmedia_chat | tmedia_file),
- tmedia_audiovideo = (tmedia_audio | tmedia_video),
-
- tmedia_all = (tmedia_audio | tmedia_video | tmedia_msrp | tmedia_t38)
-}
-tmedia_type_t;
-
-typedef enum tmedia_video_size_type_e
-{
- tmedia_vst_none,
- tmedia_vst_sqcif,
- tmedia_vst_qcif,
- tmedia_vst_qvga,
- tmedia_vst_cif,
- tmedia_vst_vga,
- tmedia_vst_4cif,
- tmedia_vst_svga,
- tmedia_vst_xga,
- tmedia_vst_sxga,
- tmedia_vst_16cif,
- tmedia_vst_hd720p,
- tmedia_vst_hd1080p,
-
- tmedia_vst_ios_low,
- tmedia_vst_ios_high
-}
-tmedia_video_size_type_t;
-
-typedef struct tmedia_video_size_s
-{
- tmedia_video_size_type_t type;
- tsk_size_t width;
- tsk_size_t height;
-}
-tmedia_video_size_t;
-
-
-// used by tinyWRAP
-typedef enum tmedia_chroma_e
-{
- tmedia_rgb24, // will be stored as bgr24 on x86 (little endians) machines; e.g. WindowsPhone7
- tmedia_bgr24, // used by windows consumer (DirectShow) -
- tmedia_rgb32, // used by iOS4 consumer (iPhone and iPod touch)
- tmedia_rgb565le, // (used by both android and wince consumers)
- tmedia_rgb565be,
- tmedia_nv12, // used by iOS4 producer (iPhone and iPod Touch 3GS and 4)
- tmedia_nv21, // Yuv420 SP (used by android producer)
- tmedia_yuv422p,
- tmedia_uyvy422, // used by iOS4 producer (iPhone and iPod Touch 3G)
- tmedia_yuv420p, // Default
-}
-tmedia_chroma_t;
-
-// used by tinyWRAP
-typedef enum tmedia_bandwidth_level_e
-{
- tmedia_bl_low,
- tmedia_bl_medium,
- tmedia_bl_hight
-}
-tmedia_bandwidth_level_t;
-
-TINYMEDIA_API tmedia_type_t tmedia_type_from_sdp(const tsdp_message_t* sdp);
-TINYMEDIA_API int tmedia_parse_rtpmap(const char* rtpmap, char** name, int32_t* rate, int32_t* channels);
-TINYMEDIA_API const tmedia_video_size_t* tmedia_get_video_size(tmedia_chroma_t chroma, tsk_size_t size);
-
-TMEDIA_END_DECLS
-
-#endif /* TINYMEDIA_COMMON_H */
OpenPOWER on IntegriCloud