#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 void dvd_encode_rle | ( | uint8_t ** | pq, | |
| const uint8_t * | bitmap, | |||
| int | linesize, | |||
| int | w, | |||
| int | h, | |||
| const int | cmap[256] | |||
| ) | [static] |
| 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:
{
"dvdsub",
AVMEDIA_TYPE_SUBTITLE,
CODEC_ID_DVD_SUBTITLE,
0,
NULL,
dvdsub_encode,
.long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"),
}
Definition at line 218 of file dvdsubenc.c.
1.5.8