libswscale: add output support for AV_PIX_FMT_GBRAPF32
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
ba5d0515a6
commit
b4967fc71c
@ -500,6 +500,11 @@ static int swscale(SwsContext *c, const uint8_t *src[],
|
||||
fillPlane16(dst[3], dstStride[3], length, height, lastDstY,
|
||||
1, desc->comp[3].depth,
|
||||
isBE(dstFormat));
|
||||
} else if (is32BPS(dstFormat)) {
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(dstFormat);
|
||||
fillPlane32(dst[3], dstStride[3], length, height, lastDstY,
|
||||
1, desc->comp[3].depth,
|
||||
isBE(dstFormat), desc->flags & AV_PIX_FMT_FLAG_FLOAT);
|
||||
} else
|
||||
fillPlane(dst[3], dstStride[3], length, height, lastDstY, 255);
|
||||
}
|
||||
|
Reference in New Issue
Block a user