|
|
|
@ -234,23 +234,18 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
AVCodec ff_dpx_encoder = { |
|
|
|
|
.name = "dpx", |
|
|
|
|
.type = AVMEDIA_TYPE_VIDEO, |
|
|
|
|
.id = AV_CODEC_ID_DPX, |
|
|
|
|
.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 AVPixelFormat[]){ |
|
|
|
|
AV_PIX_FMT_RGB24, |
|
|
|
|
AV_PIX_FMT_RGBA, |
|
|
|
|
AV_PIX_FMT_RGB48LE, |
|
|
|
|
AV_PIX_FMT_RGB48BE, |
|
|
|
|
AV_PIX_FMT_RGBA64LE, |
|
|
|
|
AV_PIX_FMT_RGBA64BE, |
|
|
|
|
AV_PIX_FMT_GBRP10LE, |
|
|
|
|
AV_PIX_FMT_GBRP10BE, |
|
|
|
|
AV_PIX_FMT_GBRP12LE, |
|
|
|
|
AV_PIX_FMT_GBRP12BE, |
|
|
|
|
.init = encode_init, |
|
|
|
|
.encode2 = encode_frame, |
|
|
|
|
.pix_fmts = (const enum AVPixelFormat[]){ |
|
|
|
|
AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA, |
|
|
|
|
AV_PIX_FMT_RGB48LE, AV_PIX_FMT_RGB48BE, |
|
|
|
|
AV_PIX_FMT_RGBA64LE, AV_PIX_FMT_RGBA64BE, |
|
|
|
|
AV_PIX_FMT_GBRP10LE, AV_PIX_FMT_GBRP10BE, |
|
|
|
|
AV_PIX_FMT_GBRP12LE, AV_PIX_FMT_GBRP12BE, |
|
|
|
|
AV_PIX_FMT_NONE}, |
|
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("DPX image"), |
|
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("DPX image"), |
|
|
|
|
}; |
|
|
|
|