|
|
@@ -207,7 +207,7 @@ int ff_qsv_print_warning(void *log_ctx, mfxStatus err, |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static enum AVPixelFormat qsv_map_fourcc(uint32_t fourcc) |
|
|
|
|
|
|
|
|
enum AVPixelFormat ff_qsv_map_fourcc(uint32_t fourcc) |
|
|
{ |
|
|
{ |
|
|
switch (fourcc) { |
|
|
switch (fourcc) { |
|
|
case MFX_FOURCC_NV12: return AV_PIX_FMT_NV12; |
|
|
case MFX_FOURCC_NV12: return AV_PIX_FMT_NV12; |
|
|
@@ -518,7 +518,7 @@ static mfxStatus qsv_frame_alloc(mfxHDL pthis, mfxFrameAllocRequest *req, |
|
|
frames_hwctx = frames_ctx->hwctx; |
|
|
frames_hwctx = frames_ctx->hwctx; |
|
|
|
|
|
|
|
|
frames_ctx->format = AV_PIX_FMT_QSV; |
|
|
frames_ctx->format = AV_PIX_FMT_QSV; |
|
|
frames_ctx->sw_format = qsv_map_fourcc(i->FourCC); |
|
|
|
|
|
|
|
|
frames_ctx->sw_format = ff_qsv_map_fourcc(i->FourCC); |
|
|
frames_ctx->width = i->Width; |
|
|
frames_ctx->width = i->Width; |
|
|
frames_ctx->height = i->Height; |
|
|
frames_ctx->height = i->Height; |
|
|
frames_ctx->initial_pool_size = req->NumFrameSuggested; |
|
|
frames_ctx->initial_pool_size = req->NumFrameSuggested; |
|
|
|