#include "avcodec.h"
#include "bytestream.h"
#include <assert.h>
Go to the source code of this file.
Defines | |
#define | PUTNIBBLE(val) |
Functions | |
static void | dvd_encode_rle (uint8_t **pq, const uint8_t *bitmap, int linesize, int w, int h, const int cmap[256]) |
static int | encode_dvd_subtitles (uint8_t *outbuf, int outbuf_size, const AVSubtitle *h) |
static int | dvdsub_encode (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
Variables | |
AVCodec | ff_dvdsub_encoder |
#define PUTNIBBLE | ( | val | ) |
Value:
do {\ if (ncnt++ & 1)\ *q++ = bitbuf | ((val) & 0x0f);\ else\ bitbuf = (val) << 4;\ } while(0)
Definition at line 28 of file dvdsubenc.c.
Referenced by dvd_encode_rle().
static int dvdsub_encode | ( | AVCodecContext * | avctx, | |
unsigned char * | buf, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
Definition at line 207 of file dvdsubenc.c.
static int encode_dvd_subtitles | ( | uint8_t * | outbuf, | |
int | outbuf_size, | |||
const AVSubtitle * | h | |||
) | [static] |
Initial value:
{ .name = "dvdsub", .type = AVMEDIA_TYPE_SUBTITLE, .id = CODEC_ID_DVD_SUBTITLE, .encode = dvdsub_encode, .long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"), }
Definition at line 218 of file dvdsubenc.c.