Commit 9e64ee39 authored by Martin Vignali's avatar Martin Vignali

avcodec/psd : add support for gray float

parent bdd67546
...@@ -369,6 +369,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, ...@@ -369,6 +369,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
avctx->pix_fmt = AV_PIX_FMT_GRAY8; avctx->pix_fmt = AV_PIX_FMT_GRAY8;
} else if (s->channel_depth == 16) { } else if (s->channel_depth == 16) {
avctx->pix_fmt = AV_PIX_FMT_GRAY16BE; avctx->pix_fmt = AV_PIX_FMT_GRAY16BE;
} else if (s->channel_depth == 32) {
avctx->pix_fmt = AV_PIX_FMT_GRAYF32BE;
} else { } else {
avpriv_report_missing_feature(avctx, "channel depth %d for grayscale", s->channel_depth); avpriv_report_missing_feature(avctx, "channel depth %d for grayscale", s->channel_depth);
return AVERROR_PATCHWELCOME; return AVERROR_PATCHWELCOME;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment