libavformat/crypto.c File Reference

#include "avformat.h"
#include "libavutil/aes.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "url.h"

Go to the source code of this file.

Data Structures

struct  CryptoContext


#define MAX_BUFFER_BLOCKS   150
#define BLOCKSIZE   16
#define OFFSET(x)   offsetof(CryptoContext, x)


static int crypto_open (URLContext *h, const char *uri, int flags)
static int crypto_read (URLContext *h, uint8_t *buf, int size)
static int crypto_close (URLContext *h)


static const AVOption options []
static const AVClass crypto_class
URLProtocol ff_crypto_protocol

Define Documentation

#define BLOCKSIZE   16

Definition at line 30 of file crypto.c.

#define MAX_BUFFER_BLOCKS   150

Definition at line 29 of file crypto.c.

#define OFFSET (  )     offsetof(CryptoContext, x)

Definition at line 47 of file crypto.c.

Function Documentation

static int crypto_close ( URLContext h  )  [static]

Definition at line 154 of file crypto.c.

static int crypto_open ( URLContext h,
const char *  uri,
int  flags 
) [static]

Definition at line 61 of file crypto.c.

static int crypto_read ( URLContext h,
uint8_t *  buf,
int  size 
) [static]

Definition at line 105 of file crypto.c.

Variable Documentation

const AVClass crypto_class [static]

Initial value:

    .class_name     = "crypto",
    .item_name      = av_default_item_name,
    .option         = options,
    .version        = LIBAVUTIL_VERSION_INT,

Definition at line 54 of file crypto.c.

Initial value:

    .name            = "crypto",
    .url_open        = crypto_open,
    .url_read        = crypto_read,
    .url_close       = crypto_close,
    .priv_data_size  = sizeof(CryptoContext),
    .priv_data_class = &crypto_class,
    .flags           = URL_PROTOCOL_FLAG_NESTED_SCHEME,

Definition at line 165 of file crypto.c.

const AVOption options[] [static]

Initial value:

    {"key", "AES decryption key", OFFSET(key), FF_OPT_TYPE_BINARY },
    {"iv",  "AES decryption initialization vector", OFFSET(iv),  FF_OPT_TYPE_BINARY },
    { NULL }

Definition at line 48 of file crypto.c.

Generated on Fri Oct 26 02:38:20 2012 for FFmpeg by  doxygen 1.5.8