Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  H264FmtpParser.h

  Sprache: C
 

/* 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 https://mozilla.org/MPL/2.0/. */


#ifndef DOM_MEDIA_WEBRTC_H264FMTPPARSER_H_
#define DOM_MEDIA_WEBRTC_H264FMTPPARSER_H_

#include "H264.h"
#include "mozilla/Assertions.h"
#include "mozilla/Result.h"
#include "mozilla/ResultVariant.h"
#include "nsStringFwd.h"

namespace mozilla {

enum class H264FmtpParseError { NotPresent, Invalid };

struct H264ProfileLevel {
  H264_PROFILE mProfile;
  H264_LEVEL mLevel;
};

struct H264FmtpParams {
  Result<H264ProfileLevel, H264FmtpParseError> mProfileLevel =
      Err(H264FmtpParseError::NotPresent);
  Result<uint32_t, H264FmtpParseError> mPacketizationMode =
      Err(H264FmtpParseError::NotPresent);
};

#ifdef MOZ_WEBRTC
// Parse profile-level-id and packetization-mode from a video/H264 MIME content
// type. Missing parameters return Err(NotPresent), present but unparseable or
// unsupported values return Err(Invalid).
H264FmtpParams ParseH264Fmtp(const nsACString& aMimeString);

// Whether the given resolution and framerate fit aLevel's H.264 Annex A
// macroblocks-per-frame and macroblocks-per-second caps. False for unknown
// levels.
[[nodiscard]] bool H264LevelFits(H264_LEVEL aLevel, uint32_t aWidth,
                                 uint32_t aHeight, double aFramerate);
#else
inline H264FmtpParams ParseH264Fmtp(const nsACString&) {
  MOZ_ASSERT_UNREACHABLE("ParseH264Fmtp called in non-MOZ_WEBRTC build");
  return {};
}
inline bool H264LevelFits(H264_LEVEL, uint32_t, uint32_t, double) {
  MOZ_ASSERT_UNREACHABLE("H264LevelFits called in non-MOZ_WEBRTC build");
  return false;
}
#endif

}  // namespace mozilla

#endif  // DOM_MEDIA_WEBRTC_H264FMTPPARSER_H_

Messung V0.5 in Prozent
C=85 H=100 G=92

¤ Dauer der Verarbeitung: 0.24 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002