FFmpeg  2.6.9
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dpxenc.c File Reference
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  DPXContext

Macros

#define write16(p, value)   write16_internal(s->big_endian, p, value)
#define write32(p, value)   write32_internal(s->big_endian, p, value)
#define HEADER_SIZE   1664 /* DPX Generic header */

Functions

static av_cold int encode_init (AVCodecContext *avctx)
static av_always_inline void write16_internal (int big_endian, void *p, int value)
static av_always_inline void write32_internal (int big_endian, void *p, int value)
static void encode_rgb48_10bit (AVCodecContext *avctx, const AVPicture *pic, uint8_t *dst)
static void encode_gbrp10 (AVCodecContext *avctx, const AVPicture *pic, uint8_t *dst)
static void encode_gbrp12 (AVCodecContext *avctx, const AVPicture *pic, uint16_t *dst)
static int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)

Variables

AVCodec ff_dpx_encoder

Macro Definition Documentation

#define write16 (   p,
  value 
)    write16_internal(s->big_endian, p, value)

Definition at line 90 of file dpxenc.c.

Referenced by encode_frame(), and encode_gbrp12().

#define write32 (   p,
  value 
)    write32_internal(s->big_endian, p, value)

Definition at line 91 of file dpxenc.c.

Referenced by encode_frame(), encode_gbrp10(), and encode_rgb48_10bit().

#define HEADER_SIZE   1664 /* DPX Generic header */

Function Documentation

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 36 of file dpxenc.c.

static av_always_inline void write16_internal ( int  big_endian,
void p,
int  value 
)
static

Definition at line 78 of file dpxenc.c.

static av_always_inline void write32_internal ( int  big_endian,
void p,
int  value 
)
static

Definition at line 84 of file dpxenc.c.

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

Definition at line 93 of file dpxenc.c.

Referenced by encode_frame().

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

Definition at line 118 of file dpxenc.c.

Referenced by encode_frame().

static void encode_gbrp12 ( AVCodecContext avctx,
const AVPicture pic,
uint16_t *  dst 
)
static

Definition at line 144 of file dpxenc.c.

Referenced by encode_frame().

static int encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int *  got_packet 
)
static

Definition at line 175 of file dpxenc.c.

Variable Documentation

AVCodec ff_dpx_encoder