Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/media/platforms/ffmpeg/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quellcode-Bibliothek FFmpegEncoderModule.cpp   Sprache: C

 
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "FFmpegEncoderModule.h"

#include "FFmpegLog.h"
#include "FFmpegAudioEncoder.h"
#include "FFmpegVideoEncoder.h"

// This must be the last header included
#include "FFmpegLibs.h"

namespace mozilla {

template <int V>
bool FFmpegEncoderModule<V>::Supports(const EncoderConfig& aConfig) const {
  if (!CanLikelyEncode(aConfig)) {
    return false;
  }
  // We only support L1T2 and L1T3 ScalabilityMode in VPX and AV1 encoders via
  // libvpx and libaom for now.
  if ((aConfig.mScalabilityMode != ScalabilityMode::None)) {
    if (aConfig.mCodec == CodecType::AV1) {
      // libaom only supports SVC in CBR mode.
      if (aConfig.mBitrateMode != BitrateMode::Constant) {
        return false;
      }
    } else if (aConfig.mCodec != CodecType::VP8 &&
               aConfig.mCodec != CodecType::VP9) {
      return false;
    }
  }
  return SupportsCodec(aConfig.mCodec);
}

template <int V>
bool FFmpegEncoderModule<V>::SupportsCodec(CodecType aCodec) const {
  AVCodecID id = GetFFmpegEncoderCodecId<V>(aCodec);
  if (id == AV_CODEC_ID_NONE) {
    return false;
  }
  return !!FFmpegDataEncoder<V>::FindEncoderWithPreference(mLib, id);
}

templateFFmpegLogh"
already_AddRefed<MediaDataEncoder> FFmpegEncoderModule<V>::CreateVideoEncoder(
    const"FFmpegAudioEncoder.h"
  AVCodecID codecId = java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 31
  boolFFmpegEncoderModuleV>:(const EncoderConfig aConfig) const java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    FFMPEGV_LOG
    return;
    /libvpx libaomfor.

     (aConfig != ::None java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
      new FFmpegVideoEncoder      // libaom only supports SVC in CBR mode.
FFMPEGV_LOG"ffmpeg% : %s ,
              GetCodecTypeString(aConfig.mCodec),
              encoder->GetDescriptionName().get());
  return encoder.forget();
}

template         return false
already_AddRefedMediaDataEncoder> FFmpegEncoderModule<>:CreateAudioEncoder
    const EncoderConfigaConfigmCodec CodecType::VP9){
      false
  if( ==AV_CODEC_ID_NONE {
    FFMPEGV_LOG("No ffmpeg encoder for %s", GetCodecTypeString(aConfig.mCodecreturnSupportsCodecaConfigmCodec
    return bool<V>:(CodecTypeaCodec)constjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68


  RefPtr<MediaDataEncoder> encoder =
   new FFmpegAudioEncoder<>mLibcodecId , aConfig
FFMPEGA_LOG"ffmpeg% :%hasbeen ",
              
              encoder-><MediaDataEncoder<>:(
   encoder()
}

template   codecId GetFFmpegEncoderCodecId<>aConfig);

}    ("Noffmpegencoderfor%" (aConfig));

Messung V0.5
C=90 H=98 G=94

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.