FFmpeg
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 "codec_internal.h"
#include "encode.h"
#include "version.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 AVFrame *pic, uint8_t *dst)
 
static void encode_gbrp10 (AVCodecContext *avctx, const AVFrame *pic, uint8_t *dst)
 
static void encode_gbrp12 (AVCodecContext *avctx, const AVFrame *pic, uint8_t *dst)
 
static int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 

Variables

const FFCodec ff_dpx_encoder
 

Macro Definition Documentation

◆ write16

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

Definition at line 89 of file dpxenc.c.

◆ write32

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

Definition at line 90 of file dpxenc.c.

◆ HEADER_SIZE

#define HEADER_SIZE   1664 /* DPX Generic header */

Function Documentation

◆ encode_init()

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 38 of file dpxenc.c.

◆ write16_internal()

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

Definition at line 77 of file dpxenc.c.

◆ write32_internal()

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

Definition at line 83 of file dpxenc.c.

◆ encode_rgb48_10bit()

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

Definition at line 92 of file dpxenc.c.

Referenced by encode_frame().

◆ encode_gbrp10()

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

Definition at line 118 of file dpxenc.c.

Referenced by encode_frame().

◆ encode_gbrp12()

static void encode_gbrp12 ( AVCodecContext avctx,
const AVFrame pic,
uint8_t *  dst 
)
static

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

Variable Documentation

◆ ff_dpx_encoder

const FFCodec ff_dpx_encoder
AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:71
AV_CODEC_ID_DPX
@ AV_CODEC_ID_DPX
Definition: codec_id.h:180
AV_PIX_FMT_GBRP10BE
@ AV_PIX_FMT_GBRP10BE
planar GBR 4:4:4 30bpp, big-endian
Definition: pixfmt.h:169
AV_PIX_FMT_RGBA64BE
@ AV_PIX_FMT_RGBA64BE
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: pixfmt.h:202
encode_frame
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: dpxenc.c:175
AV_PIX_FMT_GRAY16BE
@ AV_PIX_FMT_GRAY16BE
Y , 16bpp, big-endian.
Definition: pixfmt.h:104
FF_CODEC_ENCODE_CB
#define FF_CODEC_ENCODE_CB(func)
Definition: codec_internal.h:296
AV_PIX_FMT_GBRP12LE
@ AV_PIX_FMT_GBRP12LE
planar GBR 4:4:4 36bpp, little-endian
Definition: pixfmt.h:280
AV_PIX_FMT_GBRP10LE
@ AV_PIX_FMT_GBRP10LE
planar GBR 4:4:4 30bpp, little-endian
Definition: pixfmt.h:170
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:100
AV_PIX_FMT_RGB48LE
@ AV_PIX_FMT_RGB48LE
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:110
AV_PIX_FMT_RGBA64LE
@ AV_PIX_FMT_RGBA64LE
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: pixfmt.h:203
AV_PIX_FMT_GRAY8
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
Definition: pixfmt.h:81
AV_PIX_FMT_ABGR
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:101
DPXContext
Definition: dpxenc.c:30
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
AV_PIX_FMT_RGB24
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:75
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_PIX_FMT_RGB48BE
@ AV_PIX_FMT_RGB48BE
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:109
AV_PIX_FMT_GBRP12BE
@ AV_PIX_FMT_GBRP12BE
planar GBR 4:4:4 36bpp, big-endian
Definition: pixfmt.h:279
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
encode_init
static av_cold int encode_init(AVCodecContext *avctx)
Definition: dpxenc.c:38
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_PIX_FMT_GRAY16LE
@ AV_PIX_FMT_GRAY16LE
Y , 16bpp, little-endian.
Definition: pixfmt.h:105