summaryrefslogtreecommitdiffstats
path: root/dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h')
-rw-r--r--dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h b/dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h
index 1bcdd3eaf9..07c433ddd7 100644
--- a/dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h
+++ b/dom/media/platforms/ffmpeg/FFmpegVideoEncoder.h
@@ -75,6 +75,19 @@ class FFmpegVideoEncoder<LIBAV_VER> final : public MediaDataEncoder {
Result<already_AddRefed<MediaByteBuffer>, nsresult> GetExtraData(
AVPacket* aPacket);
void ForceEnablingFFmpegDebugLogs();
+ struct SVCSettings {
+ nsTArray<uint8_t> mTemporalLayerIds;
+ // A key-value pair for av_opt_set.
+ std::pair<nsCString, nsCString> mSettingKeyValue;
+ };
+ Maybe<SVCSettings> GetSVCSettings();
+ struct H264Settings {
+ int mProfile;
+ int mLevel;
+ // A list of key-value pairs for av_opt_set.
+ nsTArray<std::pair<nsCString, nsCString>> mSettingKeyValuePairs;
+ };
+ H264Settings GetH264Settings(const H264Specific& aH264Specific);
// This refers to a static FFmpegLibWrapper, so raw pointer is adequate.
const FFmpegLibWrapper* mLib;