WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
238071
VideoFrame does not need to inherit from MediaSample
https://bugs.webkit.org/show_bug.cgi?id=238071
Summary
VideoFrame does not need to inherit from MediaSample
youenn fablet
Reported
2022-03-18 05:24:07 PDT
VideoFrame does not need to inherit from MediaSample
Attachments
Patch
(28.06 KB, patch)
2022-03-18 05:34 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(28.14 KB, patch)
2022-03-22 09:40 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Updated patch
(28.55 KB, patch)
2022-03-23 00:39 PDT
,
youenn fablet
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
GStreamer fix
(30.18 KB, patch)
2022-03-23 01:11 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
GStreamer fix
(30.19 KB, patch)
2022-03-23 03:11 PDT
,
youenn fablet
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
GStreamer fix
(30.88 KB, patch)
2022-03-23 03:28 PDT
,
youenn fablet
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
GStreamer fix
(31.57 KB, patch)
2022-03-23 03:59 PDT
,
youenn fablet
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
GStreamer fix
(31.57 KB, patch)
2022-03-23 05:19 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2022-03-18 05:34:02 PDT
Created
attachment 455089
[details]
Patch
youenn fablet
Comment 2
2022-03-22 09:40:07 PDT
Created
attachment 455384
[details]
Patch
Eric Carlson
Comment 3
2022-03-22 09:52:53 PDT
Comment on
attachment 455384
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=455384&action=review
r=me once the bots are happy
> Source/WebCore/platform/VideoFrame.cpp:69 > +#if PLATFORM(COCOA) && USE(AVFOUNDATION) > RefPtr<VideoFrameCV> VideoFrame::asVideoFrameCV() > { > + if (isCV()) > + return downcast<VideoFrameCV>(this); > + > auto buffer = pixelBuffer(); > if (!buffer) > return nullptr; > - > return VideoFrameCV::create(presentationTime(), isMirrored(), rotation(), buffer); > } > +#endif // PLATFORM(COCOA) && USE(AVFOUNDATION) > + > +#if !PLATFORM(COCOA) > +RefPtr<JSC::Uint8ClampedArray> VideoFrame::getRGBAImageData() const > +{ > + return nullptr; > +} > #endif
Can these move to VideoFrame.mm?
> Source/WebCore/platform/VideoFrame.mm:46 > + const OSType imageFormat = kCVPixelFormatType_32RGBA; > + RetainPtr<CFNumberRef> imageFormatNumber = adoptCF(CFNumberCreate(nullptr, kCFNumberIntType, &imageFormat)); > + > + RetainPtr<CFMutableDictionaryRef> conformerOptions = adoptCF(CFDictionaryCreateMutable(0, 1, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks)); > + CFDictionarySetValue(conformerOptions.get(), kCVPixelBufferPixelFormatTypeKey, imageFormatNumber.get()); > + PixelBufferConformerCV pixelBufferConformer(conformerOptions.get());
I think this be simplified to something like: auto pixelBufferConformer(@{ (__bridge NSString *)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_32RGBA) });
youenn fablet
Comment 4
2022-03-23 00:39:55 PDT
Created
attachment 455471
[details]
Updated patch
youenn fablet
Comment 5
2022-03-23 01:11:41 PDT
Created
attachment 455473
[details]
GStreamer fix
youenn fablet
Comment 6
2022-03-23 03:11:51 PDT
Created
attachment 455480
[details]
GStreamer fix
youenn fablet
Comment 7
2022-03-23 03:28:25 PDT
Created
attachment 455482
[details]
GStreamer fix
youenn fablet
Comment 8
2022-03-23 03:59:44 PDT
Created
attachment 455487
[details]
GStreamer fix
youenn fablet
Comment 9
2022-03-23 05:19:27 PDT
Created
attachment 455491
[details]
GStreamer fix
EWS
Comment 10
2022-03-23 06:55:51 PDT
Committed
r291744
(
248776@main
): <
https://commits.webkit.org/248776@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 455491
[details]
.
Radar WebKit Bug Importer
Comment 11
2022-03-23 09:48:20 PDT
<
rdar://problem/90705308
>
Jon Lee
Comment 12
2022-03-24 10:03:29 PDT
It looks like this fixed the timeout in fast/mediastream/captureStream/canvas3d.html
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug