FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
srtpproto.c File Reference
#include "libavutil/opt.h"
#include "avformat.h"
#include "avio_internal.h"
#include "url.h"
#include "internal.h"
#include "rtpdec.h"
#include "srtp.h"

Go to the source code of this file.

Data Structures

struct  SRTPProtoContext
 

Macros

#define D   AV_OPT_FLAG_DECODING_PARAM
 
#define E   AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static int srtp_close (URLContext *h)
 
static int srtp_open (URLContext *h, const char *uri, int flags)
 
static int srtp_read (URLContext *h, uint8_t *buf, int size)
 
static int srtp_write (URLContext *h, const uint8_t *buf, int size)
 
static int srtp_get_file_handle (URLContext *h)
 
static int srtp_get_multi_file_handle (URLContext *h, int **handles, int *numhandles)
 

Variables

static const AVOption options []
 
static const AVClass srtp_context_class
 
const URLProtocol ff_srtp_protocol
 

Macro Definition Documentation

Definition at line 40 of file srtpproto.c.

Definition at line 41 of file srtpproto.c.

Function Documentation

static int srtp_close ( URLContext h)
static

Definition at line 57 of file srtpproto.c.

Referenced by srtp_open().

static int srtp_open ( URLContext h,
const char *  uri,
int  flags 
)
static

Definition at line 67 of file srtpproto.c.

static int srtp_read ( URLContext h,
uint8_t buf,
int  size 
)
static

Definition at line 97 of file srtpproto.c.

static int srtp_write ( URLContext h,
const uint8_t buf,
int  size 
)
static

Definition at line 110 of file srtpproto.c.

static int srtp_get_file_handle ( URLContext h)
static

Definition at line 122 of file srtpproto.c.

static int srtp_get_multi_file_handle ( URLContext h,
int **  handles,
int numhandles 
)
static

Definition at line 128 of file srtpproto.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "srtp_out_suite", "", 0x42, AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, E },
{ "srtp_out_params", "", 0x42, AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, E },
{ "srtp_in_suite", "", 0x42, AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D },
{ "srtp_in_params", "", 0x42, AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define E
Definition: srtpproto.c:41
#define D
Definition: srtpproto.c:40

Definition at line 42 of file srtpproto.c.

const AVClass srtp_context_class
static
Initial value:
= {
.class_name = "srtp",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:86
av_default_item_name
static const AVOption options[]
Definition: srtpproto.c:42

Definition at line 50 of file srtpproto.c.

const URLProtocol ff_srtp_protocol
Initial value:
= {
.name = "srtp",
.url_open = srtp_open,
.url_read = srtp_read,
.url_write = srtp_write,
.url_close = srtp_close,
.url_get_file_handle = srtp_get_file_handle,
.url_get_multi_file_handle = srtp_get_multi_file_handle,
.priv_data_size = sizeof(SRTPProtoContext),
.priv_data_class = &srtp_context_class,
}
#define URL_PROTOCOL_FLAG_NETWORK
Definition: url.h:34
static int srtp_get_file_handle(URLContext *h)
Definition: srtpproto.c:122
static int srtp_read(URLContext *h, uint8_t *buf, int size)
Definition: srtpproto.c:97
static const AVClass srtp_context_class
Definition: srtpproto.c:50
static int flags
Definition: log.c:57
static int srtp_write(URLContext *h, const uint8_t *buf, int size)
Definition: srtpproto.c:110
static int srtp_open(URLContext *h, const char *uri, int flags)
Definition: srtpproto.c:67
static int srtp_get_multi_file_handle(URLContext *h, int **handles, int *numhandles)
Definition: srtpproto.c:128
static int srtp_close(URLContext *h)
Definition: srtpproto.c:57

Definition at line 135 of file srtpproto.c.