Closed
Bug 815825
Opened 13 years ago
Closed 13 years ago
Fake video streams should have content that changes over time
Categories
(Core :: WebRTC: Audio/Video, defect, P3)
Core
WebRTC: Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: derf, Assigned: derf)
Details
(Whiteboard: [getusermedia][blocking-gum-][qa-])
Attachments
(1 file, 1 obsolete file)
5.85 KB,
patch
|
derf
:
review+
|
Details | Diff | Splinter Review |
This makes it more obvious that they are actually working and doing something.
Assignee | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
Comment on attachment 685852 [details] [diff] [review]
Rotate colors in fake video streams
Review of attachment 685852 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/webrtc/MediaEngineDefault.cpp
@@ +216,5 @@
> + // Update the target color
> + if (mCr <= 16)
> + {
> + if (mCb < 240)
> + {
I think brace style for this file is "if (foo) {" and "} else {"
In any case, please match it
::: content/media/webrtc/MediaEngineDefault.h
@@ +63,5 @@
> SourceMediaStream* mSource;
> layers::PlanarYCbCrImage* mImage;
> static const MediaEngineVideoOptions mOpts;
> + int mCb;
> + int mCr;
uint8_t?
Attachment #685852 -
Flags: review?(ekr) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 685852 [details] [diff] [review]
Rotate colors in fake video streams
Review of attachment 685852 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/webrtc/MediaEngineDefault.cpp
@@ +216,5 @@
> + // Update the target color
> + if (mCr <= 16)
> + {
> + if (mCb < 240)
> + {
I will never get used to the fact that this is different for the function prototype vs. other blocks (when copying local style).
::: content/media/webrtc/MediaEngineDefault.h
@@ +63,5 @@
> SourceMediaStream* mSource;
> layers::PlanarYCbCrImage* mImage;
> static const MediaEngineVideoOptions mOpts;
> + int mCb;
> + int mCr;
I think this should be kept as int, since we actually do arithmetic on it. If we had an array of a million of them, I would agree with you.
Assignee | ||
Comment 4•13 years ago
|
||
Addressing comments from review, carrying forward r=jesup.
Attachment #685852 -
Attachment is obsolete: true
Attachment #685872 -
Flags: review+
Assignee | ||
Comment 5•13 years ago
|
||
Target Milestone: --- → mozilla20
Updated•13 years ago
|
Priority: -- → P3
Whiteboard: [getusermedia][blocking-gum-]
Comment 6•13 years ago
|
||
:derf, would it be possible to avoid black? Not sure if this is covered by your code but the spec says:
The output of a MediaStream object must correspond to the tracks in its input. Muted audio tracks must be replaced with silence. Muted video tracks must be replaced with blackness.
If we use blackness we could run into a race condition.
Comment 7•13 years ago
|
||
Tim's patch rotates the Cr and Cb (chroma components); it doesn't touch the luma (0x80, or mid-gray roughly).
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Randell Jesup [:jesup] from comment #7)
> Tim's patch rotates the Cr and Cb (chroma components); it doesn't touch the
> luma (0x80, or mid-gray roughly).
Right. It will never be black.
Comment 9•13 years ago
|
||
Sounds good then. Thanks!
Comment 10•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Whiteboard: [getusermedia][blocking-gum-] → [getusermedia][blocking-gum-][qa-]
Comment 11•13 years ago
|
||
in-testsuite+ mainly cause existing gum automation will test this flow I believe
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•