libavcodec/dvdsubenc.c File Reference

#include "avcodec.h"
#include "bytestream.h"
#include <assert.h>

Go to the source code of this file.


#define PUTNIBBLE(val)


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)


AVCodec ff_dvdsub_encoder

Define Documentation

#define PUTNIBBLE ( val   ) 


do {\
    if (ncnt++ & 1)\
        *q++ = bitbuf | ((val) & 0x0f);\
        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:

    .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.

Generated on Fri Oct 26 02:47:56 2012 for FFmpeg by  doxygen 1.5.8