Libav
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 int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 
static av_cold int encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_dpx_encoder
 

Macro Definition Documentation

§ write16

#define write16 (   p,
  value 
)
Value:
do { \
if (s->big_endian) AV_WB16(p, value); \
else AV_WL16(p, value); \
} while(0)
#define AV_WB16(p, d)
Definition: intreadwrite.h:213
#define AV_WL16(p, d)
Definition: intreadwrite.h:225

Definition at line 68 of file dpxenc.c.

Referenced by encode_frame().

§ write32

#define write32 (   p,
  value 
)
Value:
do { \
if (s->big_endian) AV_WB32(p, value); \
else AV_WL32(p, value); \
} while(0)
#define AV_WB32(p, d)
Definition: intreadwrite.h:239
#define AV_WL32(p, d)
Definition: intreadwrite.h:255

Definition at line 74 of file dpxenc.c.

Referenced by encode_frame(), and encode_rgb48_10bit().

§ HEADER_SIZE

#define HEADER_SIZE   1664 /* DPX Generic header */

Referenced by encode_frame().

Function Documentation

§ encode_init()

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 34 of file dpxenc.c.

§ encode_rgb48_10bit()

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

Definition at line 80 of file dpxenc.c.

Referenced by encode_frame().

§ encode_frame()

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

Definition at line 106 of file dpxenc.c.

§ encode_close()

static av_cold int encode_close ( AVCodecContext avctx)
static

Definition at line 178 of file dpxenc.c.

Variable Documentation

§ ff_dpx_encoder

AVCodec ff_dpx_encoder
Initial value:
= {
.name = "dpx",
.long_name = NULL_IF_CONFIG_SMALL("DPX image"),
.priv_data_size = sizeof(DPXContext),
.encode2 = encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
}
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:67
static av_cold int encode_init(AVCodecContext *avctx)
Definition: dpxenc.c:34
static av_cold int encode_close(AVCodecContext *avctx)
Definition: dpxenc.c:178
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:113
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:96
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:112
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: dpxenc.c:106
AVPixelFormat
Pixel format.
Definition: pixfmt.h:63

Definition at line 184 of file dpxenc.c.