当前位置: 首页>>代码示例>>C++>>正文


C++ CreateDecoderParams类代码示例

本文整理汇总了C++中CreateDecoderParams的典型用法代码示例。如果您正苦于以下问题:C++ CreateDecoderParams类的具体用法?C++ CreateDecoderParams怎么用?C++ CreateDecoderParams使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CreateDecoderParams类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: mConfig

GMPVideoDecoderParams::GMPVideoDecoderParams(const CreateDecoderParams& aParams)
  : mConfig(aParams.VideoConfig())
  , mTaskQueue(aParams.mTaskQueue)
  , mImageContainer(aParams.mImageContainer)
  , mLayersBackend(aParams.GetLayersBackend())
  , mCrashHelper(aParams.mCrashHelper)
{
}
开发者ID:fitzgen,项目名称:gecko-dev,代码行数:8,代码来源:GMPVideoDecoder.cpp

示例2: mImageContainer

VPXDecoder::VPXDecoder(const CreateDecoderParams& aParams)
  : mImageContainer(aParams.mImageContainer)
  , mTaskQueue(aParams.mTaskQueue)
  , mInfo(aParams.VideoConfig())
  , mCodec(MimeTypeToCodec(aParams.VideoConfig().mMimeType))
{
  MOZ_COUNT_CTOR(VPXDecoder);
  PodZero(&mVPX);
  PodZero(&mVPXAlpha);
}
开发者ID:Wafflespeanut,项目名称:gecko-dev,代码行数:10,代码来源:VPXDecoder.cpp

示例3: mImageContainer

VPXDecoder::VPXDecoder(const CreateDecoderParams& aParams)
    : mImageContainer(aParams.mImageContainer),
      mImageAllocator(aParams.mKnowsCompositor),
      mTaskQueue(aParams.mTaskQueue),
      mInfo(aParams.VideoConfig()),
      mCodec(MimeTypeToCodec(aParams.VideoConfig().mMimeType)),
      mLowLatency(
          aParams.mOptions.contains(CreateDecoderParams::Option::LowLatency)) {
  MOZ_COUNT_CTOR(VPXDecoder);
  PodZero(&mVPX);
  PodZero(&mVPXAlpha);
}
开发者ID:jld,项目名称:gecko-dev,代码行数:12,代码来源:VPXDecoder.cpp

示例4: mImageContainer

AOMDecoder::AOMDecoder(const CreateDecoderParams& aParams)
  : mImageContainer(aParams.mImageContainer)
  , mTaskQueue(aParams.mTaskQueue)
  , mInfo(aParams.VideoConfig())
{
  PodZero(&mCodec);
}
开发者ID:bgrins,项目名称:gecko-dev,代码行数:7,代码来源:AOMDecoder.cpp

示例5: AppleVTDecoder

already_AddRefed<MediaDataDecoder> AppleDecoderModule::CreateVideoDecoder(
    const CreateDecoderParams& aParams) {
  RefPtr<MediaDataDecoder> decoder =
      new AppleVTDecoder(aParams.VideoConfig(), aParams.mTaskQueue,
                         aParams.mImageContainer, aParams.mOptions);
  return decoder.forget();
}
开发者ID:jasonLaster,项目名称:gecko-dev,代码行数:7,代码来源:AppleDecoderModule.cpp

示例6: mPDM

H264Converter::H264Converter(PlatformDecoderModule* aPDM,
                             const CreateDecoderParams& aParams)
  : mPDM(aPDM)
  , mOriginalConfig(aParams.VideoConfig())
  , mCurrentConfig(aParams.VideoConfig())
  , mLayersBackend(aParams.mLayersBackend)
  , mImageContainer(aParams.mImageContainer)
  , mTaskQueue(aParams.mTaskQueue)
  , mCallback(aParams.mCallback)
  , mDecoder(nullptr)
  , mGMPCrashHelper(aParams.mCrashHelper)
  , mNeedAVCC(aPDM->DecoderNeedsConversion(aParams.mConfig) == PlatformDecoderModule::kNeedAVCC)
  , mLastError(NS_OK)
{
  CreateDecoder(aParams.mDiagnostics);
}
开发者ID:zbraniecki,项目名称:gecko-dev,代码行数:16,代码来源:H264Converter.cpp

示例7: AppleATDecoder

already_AddRefed<MediaDataDecoder>
AppleDecoderModule::CreateAudioDecoder(const CreateDecoderParams& aParams)
{
  RefPtr<MediaDataDecoder> decoder =
    new AppleATDecoder(aParams.AudioConfig(), aParams.mTaskQueue);
  return decoder.forget();
}
开发者ID:fitzgen,项目名称:gecko-dev,代码行数:7,代码来源:AppleDecoderModule.cpp

示例8: GonkMediaDataDecoder

already_AddRefed<MediaDataDecoder>
GonkDecoderModule::CreateAudioDecoder(const CreateDecoderParams& aParams)
{
  RefPtr<MediaDataDecoder> decoder =
  new GonkMediaDataDecoder(new GonkAudioDecoderManager(aParams.AudioConfig()),
                           aParams.mCallback);
  return decoder.forget();
}
开发者ID:brendandahl,项目名称:positron,代码行数:8,代码来源:GonkDecoderModule.cpp

示例9: CreateVideoDecoder

 // Decode thread.
 already_AddRefed<MediaDataDecoder>
 CreateVideoDecoder(const CreateDecoderParams& aParams) override {
   const VideoInfo& config = aParams.VideoConfig();
   BlankVideoDataCreator* creator = new BlankVideoDataCreator(
     config.mDisplay.width, config.mDisplay.height, aParams.mImageContainer);
   RefPtr<MediaDataDecoder> decoder =
     new BlankMediaDataDecoder<BlankVideoDataCreator>(creator, aParams);
   return decoder.forget();
 }
开发者ID:zbraniecki,项目名称:gecko-dev,代码行数:10,代码来源:BlankDecoderModule.cpp

示例10: mConfig

GMPVideoDecoderParams::GMPVideoDecoderParams(const CreateDecoderParams& aParams)
  : mConfig(aParams.VideoConfig())
  , mTaskQueue(aParams.mTaskQueue)
  , mCallback(nullptr)
  , mAdapter(nullptr)
  , mImageContainer(aParams.mImageContainer)
  , mLayersBackend(aParams.mLayersBackend)
  , mCrashHelper(aParams.mCrashHelper)
{}
开发者ID:philbooth,项目名称:gecko-dev,代码行数:9,代码来源:GMPVideoDecoder.cpp

示例11: CreateAudioDecoder

  // Decode thread.
  already_AddRefed<MediaDataDecoder>
  CreateAudioDecoder(const CreateDecoderParams& aParams) override {
    const AudioInfo& config = aParams.AudioConfig();
    BlankAudioDataCreator* creator = new BlankAudioDataCreator(
      config.mChannels, config.mRate);

    RefPtr<MediaDataDecoder> decoder =
      new BlankMediaDataDecoder<BlankAudioDataCreator>(creator, aParams);
    return decoder.forget();
  }
开发者ID:zbraniecki,项目名称:gecko-dev,代码行数:11,代码来源:BlankDecoderModule.cpp

示例12: BlankMediaDataDecoder

 BlankMediaDataDecoder(BlankMediaDataCreator* aCreator,
                       const CreateDecoderParams& aParams)
   : mCreator(aCreator)
   , mCallback(aParams.mCallback)
   , mMaxRefFrames(aParams.mConfig.GetType() == TrackInfo::kVideoTrack &&
                   MP4Decoder::IsH264(aParams.mConfig.mMimeType)
                   ? mp4_demuxer::H264::ComputeMaxRefFrames(aParams.VideoConfig().mExtraData)
                   : 0)
   , mType(aParams.mConfig.GetType())
 {
 }
开发者ID:zbraniecki,项目名称:gecko-dev,代码行数:11,代码来源:BlankDecoderModule.cpp

示例13: mInfo

VorbisDataDecoder::VorbisDataDecoder(const CreateDecoderParams& aParams)
  : mInfo(aParams.AudioConfig())
  , mTaskQueue(aParams.mTaskQueue)
  , mPacketCount(0)
  , mFrames(0)
{
  // Zero these member vars to avoid crashes in Vorbis clear functions when
  // destructor is called before |Init|.
  PodZero(&mVorbisBlock);
  PodZero(&mVorbisDsp);
  PodZero(&mVorbisInfo);
  PodZero(&mVorbisComment);
}
开发者ID:luke-chang,项目名称:gecko-1,代码行数:13,代码来源:VorbisDecoder.cpp

示例14: WMFMediaDataDecoder

already_AddRefed<MediaDataDecoder>
WMFDecoderModule::CreateAudioDecoder(const CreateDecoderParams& aParams)
{
  nsAutoPtr<WMFAudioMFTManager> manager(new WMFAudioMFTManager(aParams.AudioConfig()));

  if (!manager->Init()) {
    return nullptr;
  }

  RefPtr<MediaDataDecoder> decoder =
    new WMFMediaDataDecoder(manager.forget(), aParams.mTaskQueue, aParams.mCallback);
  return decoder.forget();
}
开发者ID:MichaelKohler,项目名称:gecko-dev,代码行数:13,代码来源:WMFDecoderModule.cpp

示例15: mPDM

H264Converter::H264Converter(PlatformDecoderModule* aPDM,
                             const CreateDecoderParams& aParams)
  : mPDM(aPDM)
  , mOriginalConfig(aParams.VideoConfig())
  , mCurrentConfig(aParams.VideoConfig())
  , mKnowsCompositor(aParams.mKnowsCompositor)
  , mImageContainer(aParams.mImageContainer)
  , mTaskQueue(aParams.mTaskQueue)
  , mDecoder(nullptr)
  , mGMPCrashHelper(aParams.mCrashHelper)
  , mLastError(NS_OK)
  , mType(aParams.mType)
  , mOnWaitingForKeyEvent(aParams.mOnWaitingForKeyEvent)
  , mDecoderOptions(aParams.mOptions)
  , mRate(aParams.mRate)
{
  mLastError = CreateDecoder(mOriginalConfig, aParams.mDiagnostics);
  if (mDecoder) {
    MOZ_ASSERT(H264::HasSPS(mOriginalConfig.mExtraData));
    // The video metadata contains out of band SPS/PPS (AVC1) store it.
    mOriginalExtraData = mOriginalConfig.mExtraData;
  }
}
开发者ID:luke-chang,项目名称:gecko-1,代码行数:23,代码来源:H264Converter.cpp


注:本文中的CreateDecoderParams类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。