libavcodec/dvdsubenc.c File Reference

#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 Documentation

#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().


Function Documentation

static void dvd_encode_rle ( uint8_t **  pq,
const uint8_t *  bitmap,
int  linesize,
int  w,
int  h,
const int  cmap[256] 
) [static]

Definition at line 36 of file dvdsubenc.c.

Referenced by encode_dvd_subtitles().

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]

Definition at line 89 of file dvdsubenc.c.

Referenced by dvdsub_encode().


Variable Documentation

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.


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