Skip to content

Commit

Permalink
Добавлена информация об D3D11 copy back 422/444 декодерах.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksoid1978 committed Feb 20, 2024
1 parent 83cd026 commit 01c606b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/filters/transform/MPCVideoDec/MPCVideoDec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3574,6 +3574,19 @@ HRESULT CMPCVideoDecFilter::DecodeInternal(AVPacket *avpkt, REFERENCE_TIME rtSta
if (frames_ctx->sw_format == AV_PIX_FMT_YUV444P || frames_ctx->sw_format == AV_PIX_FMT_YUV444P16) {
codec.Append(L" 444");
}
} else if (m_bUseD3D11cb) {
switch (frames_ctx->sw_format) {
case AV_PIX_FMT_YUYV422:
case AV_PIX_FMT_Y210:
case AV_PIX_FMT_Y212:
codec.Append(L" 422");
break;
case AV_PIX_FMT_VUYX:
case AV_PIX_FMT_XV30:
case AV_PIX_FMT_XV36:
codec.Append(L" 444");
break;
}
}

const int depth = GetLumaBits(m_pAVCtx->sw_pix_fmt);
Expand Down

0 comments on commit 01c606b

Please sign in to comment.