Go to the source code of this file.
Data Structures | |
| struct | DVBSubtitleContext |
Defines | |
| #define | PUTBITS2(val) |
| #define | PUTBITS4(val) |
Typedefs | |
| typedef struct DVBSubtitleContext | DVBSubtitleContext |
Functions | |
| static void | dvb_encode_rle2 (uint8_t **pq, const uint8_t *bitmap, int linesize, int w, int h) |
| static void | dvb_encode_rle4 (uint8_t **pq, const uint8_t *bitmap, int linesize, int w, int h) |
| static int | encode_dvb_subtitles (DVBSubtitleContext *s, uint8_t *outbuf, AVSubtitle *h) |
| static int | dvbsub_encode (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
Variables | |
| AVCodec | ff_dvbsub_encoder |
| #define PUTBITS2 | ( | val | ) |
{\
bitbuf |= (val) << bitcnt;\
bitcnt -= 2;\
if (bitcnt < 0) {\
bitcnt = 6;\
*q++ = bitbuf;\
bitbuf = 0;\
}\
}
Definition at line 30 of file dvbsub.c.
Referenced by dvb_encode_rle2().
| #define PUTBITS4 | ( | val | ) |
{\
bitbuf |= (val) << bitcnt;\
bitcnt -= 4;\
if (bitcnt < 0) {\
bitcnt = 4;\
*q++ = bitbuf;\
bitbuf = 0;\
}\
}
Definition at line 117 of file dvbsub.c.
Referenced by dvb_encode_rle4().
| typedef struct DVBSubtitleContext DVBSubtitleContext |
| static void dvb_encode_rle2 | ( | uint8_t ** | pq, |
| const uint8_t * | bitmap, | ||
| int | linesize, | ||
| int | w, | ||
| int | h | ||
| ) | [static] |
Definition at line 41 of file dvbsub.c.
Referenced by encode_dvb_subtitles().
| static void dvb_encode_rle4 | ( | uint8_t ** | pq, |
| const uint8_t * | bitmap, | ||
| int | linesize, | ||
| int | w, | ||
| int | h | ||
| ) | [static] |
Definition at line 129 of file dvbsub.c.
Referenced by encode_dvb_subtitles().
| static int dvbsub_encode | ( | AVCodecContext * | avctx, |
| unsigned char * | buf, | ||
| int | buf_size, | ||
| void * | data | ||
| ) | [static] |
| static int encode_dvb_subtitles | ( | DVBSubtitleContext * | s, |
| uint8_t * | outbuf, | ||
| AVSubtitle * | h | ||
| ) | [static] |
Definition at line 197 of file dvbsub.c.
Referenced by dvbsub_encode().
{
.name = "dvbsub",
.type = AVMEDIA_TYPE_SUBTITLE,
.id = CODEC_ID_DVB_SUBTITLE,
.priv_data_size = sizeof(DVBSubtitleContext),
.encode = dvbsub_encode,
.long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"),
}