#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 |
Defines | |
#define | MAX_BUFFER_BLOCKS 150 |
#define | BLOCKSIZE 16 |
#define | OFFSET(x) offsetof(CryptoContext, x) |
#define | D AV_OPT_FLAG_DECODING_PARAM |
Functions | |
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) |
Variables | |
static const AVOption | options [] |
static const AVClass | crypto_class |
URLProtocol | ff_crypto_protocol |
#define OFFSET | ( | x | ) | offsetof(CryptoContext, x) |
static int crypto_close | ( | URLContext * | h | ) | [static] |
static int crypto_open | ( | URLContext * | h, | |
const char * | uri, | |||
int | flags | |||
) | [static] |
static int crypto_read | ( | URLContext * | h, | |
uint8_t * | buf, | |||
int | size | |||
) | [static] |
const AVClass crypto_class [static] |
Initial value:
{ .class_name = "crypto", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, }
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, }
Initial value:
{ {"key", "AES decryption key", OFFSET(key), AV_OPT_TYPE_BINARY, .flags = D }, {"iv", "AES decryption initialization vector", OFFSET(iv), AV_OPT_TYPE_BINARY, .flags = D }, { NULL } }