dpxenc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  DPXContext

Macros

#define write16(p, value)
#define write32(p, value)
#define HEADER_SIZE   1664 /* DPX Generic header */

Typedefs

typedef struct DPXContext DPXContext

Functions

static av_cold int encode_init (AVCodecContext *avctx)
static void encode_rgb48_10bit (AVCodecContext *avctx, const AVPicture *pic, uint8_t *dst)
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)

Variables

AVCodec ff_dpx_encoder

Macro Definition Documentation

#define HEADER_SIZE   1664 /* DPX Generic header */
#define write16 (   p,
  value 
)
Value:
do { \
if (s->big_endian) AV_WB16(p, value); \
else AV_WL16(p, value); \
} while(0)

Definition at line 64 of file dpxenc.c.

Referenced by encode_frame().

#define write32 (   p,
  value 
)
Value:
do { \
if (s->big_endian) AV_WB32(p, value); \
else AV_WL32(p, value); \
} while(0)

Definition at line 70 of file dpxenc.c.

Referenced by encode_frame(), and encode_rgb48_10bit().

Typedef Documentation

typedef struct DPXContext DPXContext

Function Documentation

static int encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void data 
)
static

Definition at line 102 of file dpxenc.c.

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 33 of file dpxenc.c.

static void encode_rgb48_10bit ( AVCodecContext avctx,
const AVPicture pic,
uint8_t *  dst 
)
static

Definition at line 76 of file dpxenc.c.

Referenced by encode_frame().

Variable Documentation

AVCodec ff_dpx_encoder
Initial value:
{
.name = "dpx",
.id = CODEC_ID_DPX,
.priv_data_size = sizeof(DPXContext),
.encode = encode_frame,
.pix_fmts = (const enum PixelFormat[]){
.long_name = NULL_IF_CONFIG_SMALL("DPX image"),
}

Definition at line 164 of file dpxenc.c.