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)

defect

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: derf, Assigned: derf)

Details

(Whiteboard: [getusermedia][blocking-gum-][qa-])

Attachments

(1 file, 1 obsolete file)

This makes it more obvious that they are actually working and doing something.
Assignee: nobody → tterribe
Status: NEW → ASSIGNED
Attachment #685852 - Flags: review?(ekr)
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+
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.
Addressing comments from review, carrying forward r=jesup.
Attachment #685852 - Attachment is obsolete: true
Attachment #685872 - Flags: review+
Priority: -- → P3
Whiteboard: [getusermedia][blocking-gum-]
: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.
Tim's patch rotates the Cr and Cb (chroma components); it doesn't touch the luma (0x80, or mid-gray roughly).
(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.
Sounds good then. Thanks!
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [getusermedia][blocking-gum-] → [getusermedia][blocking-gum-][qa-]
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.

Attachment

General

Created:
Updated:
Size: