summaryrefslogtreecommitdiff
path: root/src/lrtp_profiles.h
blob: a3d6db112a16bb266b1e34c2fcacf7675ca1e5b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set et sw=2 ts=2: */
/***************************************************************************
 *            lrtp_profiles.h
 *
 *  Mon Sep  9 13:29:04 CEST 2013
 *  Copyright 2013 Bent Bisballe Nyeng
 *  deva@aasimon.org
 ****************************************************************************/

/*
 *  This file is part of lrtp.
 *
 * lrtp is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * lrtp 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with lrtp; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */
#ifndef __LRTP_LRTP_PROFILES_H__
#define __LRTP_LRTP_PROFILES_H__

// List of known RTP profiles:
typedef enum {
  PROFILE_RAW    = 0, // Dummy profile, for test
  PROFILE_L16    = 1,
  PROFILE_AMRWB  = 2,
  PROFILE_OPUS   = 3,
  PROFILE_JPEG   = 4,
} lrtp_profile_id_t;

// No more options.
#define OPTION_END 0

// Options relating to all profiles:
/**
 * This option is used to set the custom processFinishedHandler
 * It takes two arguments, the first being a function pointer of the type:
 *  void (*process_finished)(struct lrtp_profile_t *profile,
 *                           const char *frame, size_t framesize,
 *                           void *ptr);
 *
 * the second argument is the value of ptr, passed on to the callback function.
 * See rtp_profile.h for further details.
 */
#define OPTION_SET_PROCESS_FINISHED_HANDLER 1000

// Raw profile options:
#define OPTION_RAW_PKG_SIZE 2000 // Integer argument.
                                 // Number of bytes per rtp packet.
                                 // Default is 100

// AMR-WB profile options:
#define OPTION_AMRWB_FRAME_TYPE_INDEX 3000 // Integer argument.
                                           // Frame type index according to
                                           // Table 1a in "3GPP TS 26.201"
                                           // Default is 8: AMR-WB 23.85 kbit/s

// Opus profile options:
// None

// Jpeg profile options:

#endif/*__LRTP_LRTP_PROFILES_H__*/