diff options
Diffstat (limited to 'libavcodec/dpxenc.c')
-rw-r--r-- | libavcodec/dpxenc.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index 451b7b976e..8ef057f949 100644 --- a/libavcodec/dpxenc.c +++ b/libavcodec/dpxenc.c @@ -47,31 +47,31 @@ static av_cold int encode_init(AVCodecContext *avctx) s->planar = 0; switch (avctx->pix_fmt) { - case PIX_FMT_RGB24: + case AV_PIX_FMT_RGB24: break; - case PIX_FMT_RGBA: + case AV_PIX_FMT_RGBA: s->descriptor = 51; /* RGBA */ break; - case PIX_FMT_RGB48LE: + case AV_PIX_FMT_RGB48LE: s->big_endian = 0; - case PIX_FMT_RGB48BE: + case AV_PIX_FMT_RGB48BE: s->bits_per_component = avctx->bits_per_raw_sample ? avctx->bits_per_raw_sample : 16; break; - case PIX_FMT_RGBA64LE: + case AV_PIX_FMT_RGBA64LE: s->big_endian = 0; - case PIX_FMT_RGBA64BE: + case AV_PIX_FMT_RGBA64BE: s->descriptor = 51; s->bits_per_component = 16; break; - case PIX_FMT_GBRP10LE: + case AV_PIX_FMT_GBRP10LE: s->big_endian = 0; - case PIX_FMT_GBRP10BE: + case AV_PIX_FMT_GBRP10BE: s->bits_per_component = 10; s->planar = 1; break; - case PIX_FMT_GBRP12LE: + case AV_PIX_FMT_GBRP12LE: s->big_endian = 0; - case PIX_FMT_GBRP12BE: + case AV_PIX_FMT_GBRP12BE: s->bits_per_component = 12; s->planar = 1; break; @@ -246,17 +246,17 @@ AVCodec ff_dpx_encoder = { .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}, + .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"), }; |