#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 |
Defines | |
#define | write16(p, value) |
#define | write32(p, value) |
#define | HEADER_SIZE 1664 |
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 |
#define HEADER_SIZE 1664 |
#define write16 | ( | p, | |||
value | ) |
#define write32 | ( | p, | |||
value | ) |
Value:
Definition at line 92 of file dpxenc.c.
Referenced by encode_frame(), encode_gbrp10(), and encode_rgb48_10bit().
static int encode_frame | ( | AVCodecContext * | avctx, | |
AVPacket * | pkt, | |||
const AVFrame * | frame, | |||
int * | got_packet | |||
) | [static] |
static void encode_gbrp10 | ( | AVCodecContext * | avctx, | |
const AVPicture * | pic, | |||
uint8_t * | dst | |||
) | [static] |
static void encode_gbrp12 | ( | AVCodecContext * | avctx, | |
const AVPicture * | pic, | |||
uint16_t * | dst | |||
) | [static] |
static av_cold int encode_init | ( | AVCodecContext * | avctx | ) | [static] |
static void encode_rgb48_10bit | ( | AVCodecContext * | avctx, | |
const AVPicture * | pic, | |||
uint8_t * | dst | |||
) | [static] |
Initial value:
{ .name = "dpx", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_DPX, .priv_data_size = sizeof(DPXContext), .init = encode_init, .encode2 = encode_frame, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_RGB48LE, PIX_FMT_RGB48BE, PIX_FMT_RGBA64LE, PIX_FMT_RGBA64BE, PIX_FMT_GBRP10LE, PIX_FMT_GBRP10BE, PIX_FMT_GBRP12LE, PIX_FMT_GBRP12BE, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("DPX image"), }