FFmpeg  2.1.1
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)
 
#define write32(p, value)
 
#define HEADER_SIZE   1664 /* DPX Generic header */
 

Functions

static av_cold int encode_init (AVCodecContext *avctx)
 
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 
)
Value:
do { \
if (s->big_endian) AV_WB16(p, value); \
else AV_WL16(p, value); \
} while(0)
const char * s
Definition: avisynth_c.h:668
if((e=av_dict_get(options,"", NULL, AV_DICT_IGNORE_SUFFIX)))
Definition: avfilter.c:965
#define AV_WL16(p, darg)
Definition: intreadwrite.h:250
double value
Definition: eval.c:83
#define AV_WB16(p, darg)
Definition: intreadwrite.h:237

Definition at line 76 of file dpxenc.c.

Referenced by encode_frame(), and encode_gbrp12().

#define write32 (   p,
  value 
)
Value:
do { \
if (s->big_endian) AV_WB32(p, value); \
else AV_WL32(p, value); \
} while(0)
const char * s
Definition: avisynth_c.h:668
#define AV_WL32(p, darg)
Definition: intreadwrite.h:282
if((e=av_dict_get(options,"", NULL, AV_DICT_IGNORE_SUFFIX)))
Definition: avfilter.c:965
#define AV_WB32(p, darg)
Definition: intreadwrite.h:265
double value
Definition: eval.c:83

Definition at line 82 of file dpxenc.c.

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

#define HEADER_SIZE   1664 /* DPX Generic header */

Referenced by encode_frame().

Function Documentation

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 35 of file dpxenc.c.

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

Definition at line 88 of file dpxenc.c.

Referenced by encode_frame().

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

Definition at line 113 of file dpxenc.c.

Referenced by encode_frame().

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

Definition at line 139 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 166 of file dpxenc.c.

Variable Documentation

AVCodec ff_dpx_encoder
Initial value:
= {
.name = "dpx",
.long_name = NULL_IF_CONFIG_SMALL("DPX (Digital Picture Exchange) image"),
.priv_data_size = sizeof(DPXContext),
.encode2 = encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: avcodec.h:4536
static av_cold int encode_init(AVCodecContext *avctx)
Definition: dpxenc.c:35
Pixel format.
Definition: avcodec.h:4533
Y , 8bpp.
Definition: avcodec.h:4542
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: avcodec.h:4685
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: avcodec.h:4579
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: avcodec.h:4564
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:151
AVPixelFormat
Pixel format.
Definition: pixfmt.h:66
planar GBR 4:4:4 36bpp, little-endian
Definition: avcodec.h:4709
int AC3_NAME() encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
planar GBR 4:4:4 36bpp, big-endian
Definition: avcodec.h:4708
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: avcodec.h:4684
planar GBR 4:4:4 30bpp, big-endian
Definition: avcodec.h:4643
Y , 16bpp, little-endian.
Definition: avcodec.h:4568
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: avcodec.h:4563
planar GBR 4:4:4 30bpp, little-endian
Definition: avcodec.h:4644
Y , 16bpp, big-endian.
Definition: avcodec.h:4567
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
Definition: avcodec.h:4580

Definition at line 244 of file dpxenc.c.