[webkit-changes] [WebKit/WebKit] a88de4: [MediaRecorder] MediaRecorderPrivateEncoder should...
Jean-Yves Avenard
noreply at github.com
Mon Dec 16 01:55:38 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a88de4763fdabaf8b2f14f29d1407c068083158c
https://github.com/WebKit/WebKit/commit/a88de4763fdabaf8b2f14f29d1407c068083158c
Author: Jean-Yves Avenard <jya at apple.com>
Date: 2024-12-16 (Mon, 16 Dec 2024)
Changed paths:
M Source/WebCore/platform/PlatformMediaError.cpp
M Source/WebCore/platform/PlatformMediaError.h
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.cpp
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.h
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateWriter.cpp
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateWriter.h
M Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterAVFObjC.h
M Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterAVFObjC.mm
M Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterWebM.cpp
M Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterWebM.h
Log Message:
-----------
[MediaRecorder] MediaRecorderPrivateEncoder should write its frames in batches
https://bugs.webkit.org/show_bug.cgi?id=284513
rdar://141339068
Reviewed by Youenn Fablet.
In preparation for moving the MediaRecorderPrivateWriter back to the GPU process
we promisify the use of the writer and write frames in batches.
The writer will now only be called with all the data used for a new segment,
we no longer need for the encoder to instruct the writer to start a new
segment, it is implied that a new segment is required once the current
batch has been written.
* Source/WebCore/platform/PlatformMediaError.cpp:
(WebCore::convertEnumerationToString):
* Source/WebCore/platform/PlatformMediaError.h:
* Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.cpp:
(WebCore::MediaRecorderPrivateEncoder::partiallyFlushEncodedQueues):
(WebCore::MediaRecorderPrivateEncoder::flushToEndSegment):
(WebCore::MediaRecorderPrivateEncoder::flushAllEncodedQueues):
(WebCore::MediaRecorderPrivateEncoder::interleaveAndEnqueueNextFrame):
(WebCore::MediaRecorderPrivateEncoder::stopRecording):
(WebCore::MediaRecorderPrivateEncoder::flushPendingData):
(WebCore::MediaRecorderPrivateEncoder::muxNextFrame): Deleted.
* Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.h:
* Source/WebCore/platform/mediarecorder/MediaRecorderPrivateWriter.cpp:
(WebCore::MediaRecorderPrivateWriter::writeFrames):
* Source/WebCore/platform/mediarecorder/MediaRecorderPrivateWriter.h:
* Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterAVFObjC.h:
* Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterAVFObjC.mm:
(WebCore::MediaRecorderPrivateWriterAVFObjC::writeFrame):
(WebCore::MediaRecorderPrivateWriterAVFObjC::muxFrame): Deleted.
* Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterWebM.cpp:
(WebCore::MediaRecorderPrivateWriterWebM::writeFrame):
(WebCore::MediaRecorderPrivateWriterWebM::muxFrame): Deleted.
* Source/WebCore/platform/mediarecorder/cocoa/MediaRecorderPrivateWriterWebM.h:
Canonical link: https://commits.webkit.org/287869@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list