mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
hwcontext_qsv: add support for the P8 format
When using GPU surfaces with QSV, one needs to supply a frame allocator, which will be invoked to pass surface pools to libmfx. For encoding, this allocator gets invoked not only for the pool of input frames, but also for a separate pool of (apparently) reconstructed frames and another pool of MFX_FOURCC_P8, which on Windows needs to return D3DFMT_P8 D3D surfaces. Those are probably used to store the encoded bitstream on the GPU. Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
This commit is contained in:
parent
10065d9324
commit
b115a35ea6
@ -91,6 +91,7 @@ static const struct {
|
||||
} supported_pixel_formats[] = {
|
||||
{ AV_PIX_FMT_NV12, MFX_FOURCC_NV12 },
|
||||
{ AV_PIX_FMT_P010, MFX_FOURCC_P010 },
|
||||
{ AV_PIX_FMT_PAL8, MFX_FOURCC_P8 },
|
||||
};
|
||||
|
||||
static int qsv_device_init(AVHWDeviceContext *ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user