[3/9] hwcontext_qsv: add support for the P8 format

Message ID 1476214475-20187-3-git-send-email-anton@khirnov.net
State Committed
Commit b115a35ea62b8f479b48d99a601f0e157517301e
Headers show

Commit Message

Anton Khirnov Oct. 11, 2016, 7:34 p.m.
This format is used internally by the QSV encoder to store the encoded
bitstream.
---
 libavutil/hwcontext_qsv.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Luca Barbato Oct. 12, 2016, 4:16 p.m. | #1
On 11/10/2016 21:34, Anton Khirnov wrote:
> This format is used internally by the QSV encoder to store the encoded
> bitstream.
> ---
>  libavutil/hwcontext_qsv.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
> index f2c8086..3679dc0 100644
> --- a/libavutil/hwcontext_qsv.c
> +++ b/libavutil/hwcontext_qsv.c
> @@ -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)
> 

Sure.

Patch

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index f2c8086..3679dc0 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -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)