Exemple #1
0
 public static D3D11_VIDEO_DECODER_CONFIG ToFFmpegDecoderConfig(this VideoDecoderConfig configuration)
 {
     return(new D3D11_VIDEO_DECODER_CONFIG
     {
         guidConfigBitstreamEncryption = configuration.GuidConfigBitstreamEncryption.ToGUID(),
         Config4GroupedCoefs = (uint)configuration.Config4GroupedCoefs,
         ConfigSpecificIDCT = (uint)configuration.ConfigSpecificIDCT,
         ConfigHostInverseScan = (uint)configuration.ConfigHostInverseScan,
         ConfigResidDiffAccelerator = (uint)configuration.ConfigResidDiffAccelerator,
         ConfigIntraResidUnsigned = (uint)configuration.ConfigIntraResidUnsigned,
         ConfigSpatialResidInterleaved = (uint)configuration.ConfigSpatialResidInterleaved,
         ConfigMinRenderTargetBuffCount = (ushort)configuration.ConfigMinRenderTargetBuffCount,
         ConfigSpatialHost8or9Clipping = (uint)configuration.ConfigSpatialHost8or9Clipping,
         ConfigSpatialResid8 = (uint)configuration.ConfigSpatialResid8,
         ConfigResidDiffHost = (uint)configuration.ConfigResidDiffHost,
         ConfigMBcontrolRasterOrder = (uint)configuration.ConfigMBcontrolRasterOrder,
         ConfigBitstreamRaw = (uint)configuration.ConfigBitstreamRaw,
         guidConfigResidDiffEncryption = configuration.GuidConfigResidDiffEncryption.ToGUID(),
         guidConfigMBcontrolEncryption = configuration.GuidConfigMBcontrolEncryption.ToGUID(),
         ConfigResid8Subtraction = (uint)configuration.ConfigResid8Subtraction,
         ConfigDecoderSpecific = (ushort)configuration.ConfigDecoderSpecific
     });
 }
Exemple #2
0
 public Result GetVideoDecoderConfig(VideoDecoderDescription description, int index, out VideoDecoderConfig config)
 {
     return(GetVideoDecoderConfig(ref description, index, out config));
 }
Exemple #3
0
 public Result CreateVideoDecoder(VideoDecoderDescription description, VideoDecoderConfig config, out ID3D11VideoDecoder decoder)
 {
     return(CreateVideoDecoder(ref description, ref config, out decoder));
 }
Exemple #4
0
 public ID3D11VideoDecoder CreateVideoDecoder(VideoDecoderDescription description, VideoDecoderConfig config)
 {
     CreateVideoDecoder(ref description, ref config, out ID3D11VideoDecoder decoder).CheckError();
     return(decoder);
 }