summaryrefslogtreecommitdiffstats
path: root/branches/1.0/tinyDAV/include/tinydav/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/tinyDAV/include/tinydav/codecs')
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h95
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv16.h67
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv32.h0
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/dtmf/tdav_codec_dtmf.h49
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/g711/g711.h44
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/g711/tdav_codec_g711.h59
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/g729/tdav_codec_g729.h80
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/gsm/tdav_codec_gsm.h59
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/h261/tdav_codec_h261.h84
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/h263/tdav_codec_h263.h116
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264.h105
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264_rtp.h123
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/ilbc/tdav_codec_ilbc.h64
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/mp4ves/tdav_codec_mp4ves.h85
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/msrp/tdav_codec_msrp.h51
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/speex/tdav_codec_speex.h79
-rw-r--r--branches/1.0/tinyDAV/include/tinydav/codecs/theora/tdav_codec_theora.h90
17 files changed, 0 insertions, 1250 deletions
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h b/branches/1.0/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h
deleted file mode 100644
index b72d1a0..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h
+++ /dev/null
@@ -1,95 +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 tdav_codec_amr.h
- * @brief AMR-NB and AMR-WB codecs.
- * RTP payloader/depayloader are based on RFC 4867
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_AMR_H
-#define TINYDAV_CODEC_AMR_H
-
-#include "tinydav_config.h"
-
-#if HAVE_OPENCORE_AMR
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <opencore-amrnb/interf_dec.h>
-#include <opencore-amrnb/interf_enc.h>
-
-TDAV_BEGIN_DECLS
-
-#define TDAV_CODEC_AMR(self) ((tdav_codec_amr_t*)(self))
-
-typedef enum tdav_codec_amr_type_e
-{
- tdav_codec_amr_type_nb,
- tdav_codec_amr_type_wb,
-}
-tdav_codec_amr_type_t;
-
-typedef enum tdav_codec_amr_mode_e
-{
- tdav_codec_amr_mode_oa,
- tdav_codec_amr_mode_be,
-}
-tdav_codec_amr_mode_t;
-
-/** Base class for all AMR codecs */
-typedef struct tdav_codec_amr_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-
- tdav_codec_amr_type_t type;
- tdav_codec_amr_mode_t mode;
-
- enum Mode encoder_mode;
- void* encoder;
- void* decoder;
-
- unsigned modes:16; /**< 0..7 for NB and 0..8 for WB plus SID, SPEECH_LOST, NO_DATA etc etc */
- unsigned mcp:2; /**< mode-change-periode (1 or 2) */
- unsigned mcc:2; /**< mode-change-capability (1 or 2) */
- unsigned mcn:1; /**< mode-change-neighnor (0 or 1) */
- unsigned crc:1; /**< 0 or 1 */
- unsigned robust_sorting:1; /**< robust-sorting (0 or 1) */
-}
-tdav_codec_amr_t;
-
-#define TDAV_DECLARE_CODEC_AMR tdav_codec_amr_t __codec_amr__
-
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_amrnb_oa_plugin_def_t;
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_amrnb_be_plugin_def_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_amrwb_oa_plugin_def_t;
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_amrwb_be_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* HAVE_OPENCORE_AMR */
-
-#endif /* TINYDAV_CODEC_AMR_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv16.h b/branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv16.h
deleted file mode 100644
index 0b5ffff..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv16.h
+++ /dev/null
@@ -1,67 +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 tdav_codec_bv16.h
- * @brief BroadVoice16 codec
- * The payloader/depayloader follow RFC 4298
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_BV16_H
-#define TINYDAV_CODEC_BV16_H
-
-#include "tinydav_config.h"
-
-#if HAVE_BV16
-
-#include "tinymedia/tmedia_codec.h"
-
-
-TDAV_BEGIN_DECLS
-
-/** BV16 codec */
-typedef struct tdav_codec_bv16_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-
- struct {
- void *state;
- void *bs;
- void *x;
- } encoder;
-
- struct {
- void *state;
- void *bs;
- void *x;
- } decoder;
-}
-tdav_codec_bv16_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_bv16_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* HAVE_BV16 */
-
-#endif /* TINYDAV_CODEC_BV16_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv32.h b/branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv32.h
deleted file mode 100644
index e69de29..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/bv/tdav_codec_bv32.h
+++ /dev/null
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/dtmf/tdav_codec_dtmf.h b/branches/1.0/tinyDAV/include/tinydav/codecs/dtmf/tdav_codec_dtmf.h
deleted file mode 100644
index 13f6392..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/dtmf/tdav_codec_dtmf.h
+++ /dev/null
@@ -1,49 +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 tdav_codec_dtmf.h
- * @brief DTMF (RFC 4733) codec plugins.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_DTMF_H
-#define TINYDAV_CODEC_DTMF_H
-
-#include "tinydav_config.h"
-
-#include "tinymedia/tmedia_codec.h"
-
-TDAV_BEGIN_DECLS
-
-typedef struct tdav_codec_dtmf_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-}
-tdav_codec_dtmf_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_dtmf_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* TINYDAV_CODEC_DTMF_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/g711/g711.h b/branches/1.0/tinyDAV/include/tinydav/codecs/g711/g711.h
deleted file mode 100644
index 9981f00..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/g711/g711.h
+++ /dev/null
@@ -1,44 +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 tdav_codec_g711.h
- * @brief G.711u and G.711a (a.k.a PCMU and PCMA) codec plugins.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_G711_IMPLEMENTATION_H
-#define TINYDAV_CODEC_G711_IMPLEMENTATION_H
-
-#include "tinydav_config.h"
-
-TDAV_BEGIN_DECLS
-
-unsigned char linear2alaw(short pcm_val);
-short alaw2linear(unsigned char a_val);
-unsigned char linear2ulaw(short pcm_val);
-short ulaw2linear(unsigned char u_val);
-
-TDAV_END_DECLS
-
-#endif /* TINYDAV_CODEC_G711_IMPLEMENTATION_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/g711/tdav_codec_g711.h b/branches/1.0/tinyDAV/include/tinydav/codecs/g711/tdav_codec_g711.h
deleted file mode 100644
index 73fd018..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/g711/tdav_codec_g711.h
+++ /dev/null
@@ -1,59 +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 tdav_codec_g711.h
- * @brief G.711u and G.711a (a.k.a PCMU and PCMA) codec plugins.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_G711_H
-#define TINYDAV_CODEC_G711_H
-
-#include "tinydav_config.h"
-
-#include "tinymedia/tmedia_codec.h"
-
-TDAV_BEGIN_DECLS
-
-/** G.711u codec */
-typedef struct tdav_codec_g711u_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-}
-tdav_codec_g711u_t;
-
-/** G.711a codec */
-typedef struct tdav_codec_g711a_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-}
-tdav_codec_g711a_t;
-
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_g711a_plugin_def_t;
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_g711u_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* TINYDAV_CODEC_G711_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/g729/tdav_codec_g729.h b/branches/1.0/tinyDAV/include/tinydav/codecs/g729/tdav_codec_g729.h
deleted file mode 100644
index 92c5a9a..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/g729/tdav_codec_g729.h
+++ /dev/null
@@ -1,80 +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 tdav_codec_g729.h
- * @brief G729a codec.
- * Source from: http://www.itu.int/rec/T-REC-G.729-199611-S!AnnA/en
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_G729_H
-#define TINYDAV_CODEC_G729_H
-
-#include "tinydav_config.h"
-
-#if HAVE_G729
-
-#include "tinymedia/tmedia_codec.h"
-
-#include "g729b/typedef.h"
-#include "g729b/ld8a.h"
-
-
-TDAV_BEGIN_DECLS
-
-/** G.729abb codec */
-typedef struct tdav_codec_g729ab_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-
- struct{
- Word16 prm[PRM_SIZE+1]; /* Analysis parameters + frame type */
- Word16 serial[SERIAL_SIZE]; /* Output bitstream buffer */
-
- Word16 frame; /* frame counter */
-
- /* For G.729B */
- Word16 vad_enable;
- } encoder;
-
- struct{
- Word16 serial[SERIAL_SIZE]; /* Serial stream */
- Word16 synth_buf[L_FRAME+M], *synth; /* Synthesis */
- Word16 parm[PRM_SIZE+2]; /* Synthesis parameters */
- Word16 Az_dec[MP1*2]; /* Decoded Az for post-filter */
- Word16 T2[2]; /* Pitch lag for 2 subframes */
-
- /* For G.729B */
- Word16 Vad;
- } decoder;
-}
-tdav_codec_g729ab_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_g729ab_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* TINYDAV_CODEC_G729_H */
-
-#endif
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/gsm/tdav_codec_gsm.h b/branches/1.0/tinyDAV/include/tinydav/codecs/gsm/tdav_codec_gsm.h
deleted file mode 100644
index 0ed0d17..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/gsm/tdav_codec_gsm.h
+++ /dev/null
@@ -1,59 +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 tdav_codec_gsm.h
- * @brief GSM Full Rate Codec (Based on libgsm)
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_GSM_H
-#define TINYDAV_CODEC_GSM_H
-
-#include "tinydav_config.h"
-
-#if HAVE_LIBGSM
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <gsm.h>
-
-TDAV_BEGIN_DECLS
-
-/** GSM codec */
-typedef struct tdav_codec_gsm_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-
- gsm encoder;
- gsm decoder;
-}
-tdav_codec_gsm_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_gsm_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* HAVE_LIBGSM */
-
-#endif /* TINYDAV_CODEC_GSM_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/h261/tdav_codec_h261.h b/branches/1.0/tinyDAV/include/tinydav/codecs/h261/tdav_codec_h261.h
deleted file mode 100644
index 939d19b..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/h261/tdav_codec_h261.h
+++ /dev/null
@@ -1,84 +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 tdav_codec_h261.h
- * @brief H.261 codec plugin.
- * RTP payloader follows RFC 4587
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_H261_H
-#define TINYDAV_CODEC_H261_H
-
-#include "tinydav_config.h"
-
-#if HAVE_FFMPEG
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <libavcodec/avcodec.h>
-
-TDAV_BEGIN_DECLS
-
-#define TDAV_CODEC_H261(self) ((tdav_codec_h261_t*)(self))
-
-/** H.2261 codec */
-typedef struct tdav_codec_h261_s
-{
- TMEDIA_DECLARE_CODEC_VIDEO;
-
- struct{
- uint8_t* ptr;
- tsk_size_t size;
- } rtp;
-
- // Encoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
- void* buffer;
- } encoder;
-
- // decoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
-
- void* accumulator;
- uint8_t ebit;
- tsk_size_t accumulator_pos;
- uint16_t last_seq;
- } decoder;
-}
-tdav_codec_h261_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h261_plugin_def_t;
-TDAV_END_DECLS
-
-
-#endif /* HAVE_FFMPEG */
-
-#endif /* TINYDAV_CODEC_H261_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/h263/tdav_codec_h263.h b/branches/1.0/tinyDAV/include/tinydav/codecs/h263/tdav_codec_h263.h
deleted file mode 100644
index 3103e4a..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/h263/tdav_codec_h263.h
+++ /dev/null
@@ -1,116 +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 tdav_codec_h263.h
- * @brief H.263-1996 and H.263-1998 codec plugins.
- * RTP payloader follows RFC 4629 for H263+ and RFC 2190 for H263.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_H263_H
-#define TINYDAV_CODEC_H263_H
-
-#include "tinydav_config.h"
-
-#if HAVE_FFMPEG
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <libavcodec/avcodec.h>
-
-TDAV_BEGIN_DECLS
-
-#define TDAV_CODEC_H263(self) ((tdav_codec_h263_t*)(self))
-
-typedef enum tdav_codec_h263_type_e
-{
- tdav_codec_h263_1996,
- tdav_codec_h263_1998,
- tdav_codec_h263_2000,
-}
-tdav_codec_h263_type_t;
-
-/** H.263-1996 codec */
-typedef struct tdav_codec_h263_s
-{
- TMEDIA_DECLARE_CODEC_VIDEO;
-
- tdav_codec_h263_type_t type;
-
- struct{
- uint8_t* ptr;
- tsk_size_t size;
- } rtp;
-
- // Encoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
- void* buffer;
- } encoder;
-
- // decoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
-
- void* accumulator;
- uint8_t ebit;
- tsk_size_t accumulator_pos;
- uint16_t last_seq;
- } decoder;
-}
-tdav_codec_h263_t;
-
-#define TDAV_DECLARE_CODEC_H263 tdav_codec_h263_t __codec_h263__
-
-int tdav_codec_h263_init(tdav_codec_h263_t* self, tdav_codec_h263_type_t type, enum CodecID encoder, enum CodecID decoder);
-int tdav_codec_h263_deinit(tdav_codec_h263_t* self);
-
-/** H.263-1998 codec */
-typedef struct tdav_codec_h263p_s
-{
- TDAV_DECLARE_CODEC_H263;
-}
-tdav_codec_h263p_t;
-
-/** H.263-2000 codec */
-typedef struct tdav_codec_h263pp_s
-{
- TDAV_DECLARE_CODEC_H263;
-}
-tdav_codec_h263pp_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h263_plugin_def_t;
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h263p_plugin_def_t;
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h263pp_plugin_def_t;
-
-TDAV_END_DECLS
-
-
-#endif /* HAVE_FFMPEG */
-
-#endif /* TINYDAV_CODEC_H263_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264.h b/branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264.h
deleted file mode 100644
index 17c7680..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264.h
+++ /dev/null
@@ -1,105 +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 tdav_codec_h264.h
- * @brief H.264 codec plugin
- * RTP payloader/depayloader follows RFC 3984.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_H264_H
-#define TINYDAV_CODEC_H264_H
-
-#include "tinydav_config.h"
-
-#if HAVE_FFMPEG && (!defined(HAVE_H264) || HAVE_H264)
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <libavcodec/avcodec.h>
-
-TDAV_BEGIN_DECLS
-
-// Because of FD, declare it here
-typedef enum packetization_mode_e{
- Single_NAL_Unit_Mode = 0, /* Single NAL mode (Only nals from 1-23 are allowed) */
- Non_Interleaved_Mode = 1, /* Non-interleaved Mode: 1-23, 24 (STAP-A), 28 (FU-A) are allowed */
- Interleaved_Mode = 2 /* 25 (STAP-B), 26 (MTAP16), 27 (MTAP24), 28 (FU-A), and 29 (FU-B) are allowed.*/
-}
-packetization_mode_t;
-
-typedef enum tdav_codec_h264_profile_e
-{
- tdav_codec_h264_bp99,
-
- tdav_codec_h264_bp10,
- tdav_codec_h264_bp20,
- tdav_codec_h264_bp30,
-}
-tdav_codec_h264_profile_t;
-
-typedef struct tdav_codec_h264_s
-{
- TMEDIA_DECLARE_CODEC_VIDEO;
-
- tdav_codec_h264_profile_t profile;
-
- packetization_mode_t pack_mode;
-
- struct{
- uint8_t* ptr;
- tsk_size_t size;
- } rtp;
-
- // Encoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
- void* buffer;
- int frame_count;
- } encoder;
-
- // decoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
-
- void* accumulator;
- tsk_size_t accumulator_pos;
- uint16_t last_seq;
- } decoder;
-}
-tdav_codec_h264_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h264_bp10_plugin_def_t;
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h264_bp20_plugin_def_t;
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_h264_bp30_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* HAVE_FFMPEG */
-
-#endif /* TINYDAV_CODEC_H264_H */ \ No newline at end of file
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264_rtp.h b/branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264_rtp.h
deleted file mode 100644
index 83001b1..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/h264/tdav_codec_h264_rtp.h
+++ /dev/null
@@ -1,123 +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 tdav_codec_h264_rtp.h
- * @brief H.264 payloader/depayloder as per RFC 3984
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_H264_RTP_H
-#define TINYDAV_CODEC_H264_RTP_H
-
-#include "tinydav_config.h"
-
-#if HAVE_FFMPEG && (!defined(HAVE_H264) || HAVE_H264)
-
-#include "tsk_common.h"
-
-TDAV_BEGIN_DECLS
-
-#if TDAV_UNDER_WINDOWS
-# define H264_RTP_PAYLOAD_SIZE 1300
-#else
-# define H264_RTP_PAYLOAD_SIZE 900
-#endif
-
-#define H264_START_CODE_PREFIX_SIZE 4
-
-struct tdav_codec_h264_s;
-
-extern uint8_t H264_START_CODE_PREFIX[4];
-
-typedef enum profile_idc_e {
- profile_idc_none = 0,
-
- profile_idc_baseline = 66,
- profile_idc_extended = 88,
- profile_idc_main = 77,
- profile_idc_high = 100
-}
-profile_idc_t;
-
-typedef struct profile_iop_s {
- unsigned constraint_set0_flag:1;
- unsigned constraint_set1_flag:1;
- unsigned constraint_set2_flag:1;
- unsigned reserved_zero_5bits:5;
-}
-profile_iop_t;
-
-typedef enum level_idc_e {
- level_idc_none = 0,
-
- level_idc_1_0 = 10,
- level_idc_1_b = 14,
- level_idc_1_1 = 11,
- level_idc_1_2 = 12,
- level_idc_1_3 = 13,
- level_idc_2_0 = 20,
- level_idc_2_1 = 21,
- level_idc_2_2 = 22,
- level_idc_3_0 = 30
-}
-level_idc_t;
-
-
-/* 5.2. Common Structure of the RTP Payload Format
- Type Packet Type name Section
- ---------------------------------------------------------
- 0 undefined -
- 1-23 NAL unit Single NAL unit packet per H.264 5.6
- 24 STAP-A Single-time aggregation packet 5.7.1
- 25 STAP-B Single-time aggregation packet 5.7.1
- 26 MTAP16 Multi-time aggregation packet 5.7.2
- 27 MTAP24 Multi-time aggregation packet 5.7.2
- 28 FU-A Fragmentation unit 5.8
- 29 FU-B Fragmentation unit 5.8
- 30-31 undefined -
-*/
-typedef enum nal_unit_type_e{
- undefined_0 = 0,
- nal_unit,
- stap_a = 24,
- stap_b = 25,
- mtap16 = 26,
- mtap24 = 27,
- fu_a = 28,
- fu_b = 29,
- undefined_30 = 30,
- undefined_31 = 31
-}
-nal_unit_type_t;
-
-int tdav_codec_h264_parse_profile(const char* profile_level_id, profile_idc_t *p_idc, profile_iop_t *p_iop, level_idc_t *l_idc);
-int tdav_codec_h264_get_pay(const void* in_data, tsk_size_t in_size, const void** out_data, tsk_size_t *out_size, tsk_bool_t* append_scp);
-
-void tdav_codec_h264_rtp_callback(struct tdav_codec_h264_s *self, const void *data, tsk_size_t size, tsk_bool_t marker);
-
-TDAV_END_DECLS
-
-#endif /* HAVE_FFMPEG */
-
-#endif /* TINYDAV_CODEC_H264_RTP_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/ilbc/tdav_codec_ilbc.h b/branches/1.0/tinyDAV/include/tinydav/codecs/ilbc/tdav_codec_ilbc.h
deleted file mode 100644
index 974b7b8..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/ilbc/tdav_codec_ilbc.h
+++ /dev/null
@@ -1,64 +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 tdav_codec_ilbc.h
- * @brief iLBC codec
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_ILBC_H
-#define TINYDAV_CODEC_ILBC_H
-
-#include "tinydav_config.h"
-
-#if HAVE_ILBC
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <ilbc/iLBC_define.h>
-#include <ilbc/iLBC_encode.h>
-#include <ilbc/iLBC_decode.h>
-
-TDAV_BEGIN_DECLS
-
-/** iLBC codec */
-typedef struct tdav_codec_ilbc_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-
- iLBC_Enc_Inst_t encoder;
- iLBC_Dec_Inst_t decoder;
-
- float encblock[BLOCKL_MAX];
- float decblock[BLOCKL_MAX];
-}
-tdav_codec_ilbc_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_ilbc_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* HAVE_ILBC */
-
-#endif /* TINYDAV_CODEC_ILBC_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/mp4ves/tdav_codec_mp4ves.h b/branches/1.0/tinyDAV/include/tinydav/codecs/mp4ves/tdav_codec_mp4ves.h
deleted file mode 100644
index ce75cba..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/mp4ves/tdav_codec_mp4ves.h
+++ /dev/null
@@ -1,85 +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 tdav_codec_mp4ves.h
- * @brief MP4V-ES codec plugin
- * RTP payloader/depayloader follows RFC 3016.
- * ISO-IEC-14496-2: http://www.csus.edu/indiv/p/pangj/aresearch/video_compression/presentation/ISO-IEC-14496-2_2001_MPEG4_Visual.pdf
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Th Dec 2 16:54:58 2010 mdiop
- */
-#ifndef TINYDAV_CODEC_MP4VES_H
-#define TINYDAV_CODEC_MP4VES_H
-
-#include "tinydav_config.h"
-
-#if HAVE_FFMPEG
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <libavcodec/avcodec.h>
-
-TDAV_BEGIN_DECLS
-
-typedef struct tdav_codec_mp4ves_s
-{
- TMEDIA_DECLARE_CODEC_VIDEO;
-
- int profile;
-
- struct{
- uint8_t* ptr;
- tsk_size_t size;
- } rtp;
-
- // Encoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
- void* buffer;
- } encoder;
-
- // decoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
-
- void* accumulator;
- uint8_t ebit;
- tsk_size_t accumulator_pos;
- uint16_t last_seq;
- } decoder;
-}
-tdav_codec_mp4ves_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_mp4ves_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* HAVE_FFMPEG */
-
-#endif /* TINYDAV_CODEC_MP4VES_H */
-
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/msrp/tdav_codec_msrp.h b/branches/1.0/tinyDAV/include/tinydav/codecs/msrp/tdav_codec_msrp.h
deleted file mode 100644
index 12b7057..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/msrp/tdav_codec_msrp.h
+++ /dev/null
@@ -1,51 +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 tdav_codec_msrp.h
- * @brief The Message Session Relay Protocol (MSRP) fake codec.
- * Used for both Message (RFC 4975) and file transfer (RFC 5547).
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_MSRP_H
-#define TINYDAV_CODEC_MSRP_H
-
-#include "tinydav_config.h"
-
-#include "tinymedia/tmedia_codec.h"
-
-TDAV_BEGIN_DECLS
-
-/** MSRP codec */
-typedef struct tdav_codec_msrp_s
-{
- TMEDIA_DECLARE_CODEC_MSRP;
-}
-tdav_codec_msrp_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_msrp_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* TINYDAV_CODEC_MSRP_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/speex/tdav_codec_speex.h b/branches/1.0/tinyDAV/include/tinydav/codecs/speex/tdav_codec_speex.h
deleted file mode 100644
index 9c70fb1..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/speex/tdav_codec_speex.h
+++ /dev/null
@@ -1,79 +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 tdav_codec_ilbc.h
- * @brief Speex codecs
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_SPEEX_H
-#define TINYDAV_CODEC_SPEEX_H
-
-#include "tinydav_config.h"
-
-#if HAVE_LIB_SPEEX
-
-#include "tinymedia/tmedia_codec.h"
-
-#include <speex/speex.h>
-
-TDAV_BEGIN_DECLS
-
-typedef enum tdav_codec_speex_type_e
-{
- tdav_codec_speex_type_nb,
- tdav_codec_speex_type_wb,
- tdav_codec_speex_type_uwb,
-}
-tdav_codec_speex_type_t;
-
-/** Speex codec */
-typedef struct tdav_codec_speex_s
-{
- TMEDIA_DECLARE_CODEC_AUDIO;
-
- tdav_codec_speex_type_t type;
-
- struct{
- void* state;
- SpeexBits bits;
- tsk_size_t size;
- } encoder;
-
- struct {
- void* state;
- SpeexBits bits;
- spx_int16_t* buffer;
- tsk_size_t size;
- } decoder;
-}
-tdav_codec_speex_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_speex_nb_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* TINYDAV_CODEC_SPEEX_H */
-
-#endif /* TINYDAV_CODEC_SPEEX_H */
diff --git a/branches/1.0/tinyDAV/include/tinydav/codecs/theora/tdav_codec_theora.h b/branches/1.0/tinyDAV/include/tinydav/codecs/theora/tdav_codec_theora.h
deleted file mode 100644
index 38c7dbb..0000000
--- a/branches/1.0/tinyDAV/include/tinydav/codecs/theora/tdav_codec_theora.h
+++ /dev/null
@@ -1,90 +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 tdav_codec_theora.h
- * @brief Theora codec plugin
- * RTP payloader/depayloader follows draft-barbato-avt-rtp-theora-01.
- * For more information about Theora, http://www.theora.org/doc/Theora.pdf.
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYDAV_CODEC_THEORA_H
-#define TINYDAV_CODEC_THEORA_H
-
-#include "tinydav_config.h"
-
-#if HAVE_FFMPEG
-
-#include "tinymedia/tmedia_codec.h"
-
-#include "tsk_buffer.h"
-
-#include <libavcodec/avcodec.h>
-
-TDAV_BEGIN_DECLS
-
-typedef struct tdav_codec_theora_s
-{
- TMEDIA_DECLARE_CODEC_VIDEO;
-
- struct{
- uint8_t* ptr;
- tsk_size_t size;
- } rtp;
-
- // Encoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
- void* buffer;
-
- uint64_t conf_last;
- int conf_count;
- } encoder;
-
- // decoder
- struct{
- AVCodec* codec;
- AVCodecContext* context;
- AVFrame* picture;
-
- tsk_bool_t opened;
- uint8_t conf_ident[3];
- tsk_buffer_t* conf_pkt;
-
- void* accumulator;
- uint8_t ebit;
- tsk_size_t accumulator_pos;
- uint16_t last_seq;
- } decoder;
-}
-tdav_codec_theora_t;
-
-TINYDAV_GEXTERN const tmedia_codec_plugin_def_t *tdav_codec_theora_plugin_def_t;
-
-TDAV_END_DECLS
-
-#endif /* HAVE_FFMPEG */
-
-#endif /* TINYDAV_CODEC_THEORA_H */ \ No newline at end of file
OpenPOWER on IntegriCloud