|
|
@ -938,16 +938,21 @@ static const AVClass prores_enc_class = { |
|
|
|
.version = LIBAVUTIL_VERSION_INT, |
|
|
|
.version = LIBAVUTIL_VERSION_INT, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const enum AVPixelFormat pix_fmts[] = { |
|
|
|
|
|
|
|
AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV444P10, |
|
|
|
|
|
|
|
AV_PIX_FMT_YUVA444P10, AV_PIX_FMT_NONE |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const AVCodec ff_prores_aw_encoder = { |
|
|
|
const AVCodec ff_prores_aw_encoder = { |
|
|
|
.name = "prores_aw", |
|
|
|
.name = "prores_aw", |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("Apple ProRes"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("Apple ProRes"), |
|
|
|
.type = AVMEDIA_TYPE_VIDEO, |
|
|
|
.type = AVMEDIA_TYPE_VIDEO, |
|
|
|
.id = AV_CODEC_ID_PRORES, |
|
|
|
.id = AV_CODEC_ID_PRORES, |
|
|
|
|
|
|
|
.pix_fmts = pix_fmts, |
|
|
|
.priv_data_size = sizeof(ProresContext), |
|
|
|
.priv_data_size = sizeof(ProresContext), |
|
|
|
.init = prores_encode_init, |
|
|
|
.init = prores_encode_init, |
|
|
|
.close = prores_encode_close, |
|
|
|
.close = prores_encode_close, |
|
|
|
.encode2 = prores_encode_frame, |
|
|
|
.encode2 = prores_encode_frame, |
|
|
|
.pix_fmts = (const enum AVPixelFormat[]){AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV444P10, AV_PIX_FMT_YUVA444P10, AV_PIX_FMT_NONE}, |
|
|
|
|
|
|
|
.capabilities = AV_CODEC_CAP_FRAME_THREADS, |
|
|
|
.capabilities = AV_CODEC_CAP_FRAME_THREADS, |
|
|
|
.priv_class = &prores_enc_class, |
|
|
|
.priv_class = &prores_enc_class, |
|
|
|
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
|
|
|
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
|
|
@ -959,11 +964,11 @@ const AVCodec ff_prores_encoder = { |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("Apple ProRes"), |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("Apple ProRes"), |
|
|
|
.type = AVMEDIA_TYPE_VIDEO, |
|
|
|
.type = AVMEDIA_TYPE_VIDEO, |
|
|
|
.id = AV_CODEC_ID_PRORES, |
|
|
|
.id = AV_CODEC_ID_PRORES, |
|
|
|
|
|
|
|
.pix_fmts = pix_fmts, |
|
|
|
.priv_data_size = sizeof(ProresContext), |
|
|
|
.priv_data_size = sizeof(ProresContext), |
|
|
|
.init = prores_encode_init, |
|
|
|
.init = prores_encode_init, |
|
|
|
.close = prores_encode_close, |
|
|
|
.close = prores_encode_close, |
|
|
|
.encode2 = prores_encode_frame, |
|
|
|
.encode2 = prores_encode_frame, |
|
|
|
.pix_fmts = (const enum AVPixelFormat[]){AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV444P10, AV_PIX_FMT_YUVA444P10, AV_PIX_FMT_NONE}, |
|
|
|
|
|
|
|
.capabilities = AV_CODEC_CAP_FRAME_THREADS, |
|
|
|
.capabilities = AV_CODEC_CAP_FRAME_THREADS, |
|
|
|
.priv_class = &prores_enc_class, |
|
|
|
.priv_class = &prores_enc_class, |
|
|
|
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
|
|
|
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
|
|
|