Skip to content

Commit

Permalink
vpp: support A2RGB10 output on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaihao authored and Oleg Nabiullin committed Mar 29, 2019
1 parent b5d24b2 commit 6bbc737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5188,6 +5188,8 @@ mfxU64 get_background_color(const mfxVideoParam & videoParam)
case MFX_FOURCC_RGB4:
case MFX_FOURCC_BGR4:
return make_back_color_argb(8, extComp->R, extComp->G, extComp->B);
case MFX_FOURCC_A2RGB10:
return make_back_color_argb(10, extComp->R, extComp->G, extComp->B);
default:
break;
}
Expand Down Expand Up @@ -5218,6 +5220,8 @@ mfxU64 get_background_color(const mfxVideoParam & videoParam)
case MFX_FOURCC_RGBP:
#endif
return make_def_back_color_argb(8);
case MFX_FOURCC_A2RGB10:
return make_def_back_color_argb(10);
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions _studio/shared/src/mfx_vpp_vaapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ mfxStatus VAAPIVideoProcessing::QueryCapabilities(mfxVppCaps& caps)
case MFX_FOURCC_RGBP:
#endif
case MFX_FOURCC_P010:
case MFX_FOURCC_A2RGB10:
caps.mFormatSupport[fourcc] |= MFX_FORMAT_SUPPORT_OUTPUT;
break;
default:
Expand Down

0 comments on commit 6bbc737

Please sign in to comment.