Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: webrtc/media/base/testutils.cc

Issue 1838353004: cricket::VideoFrame cleanup. New width() and height(). Deleted GetChroma* methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: TODO comments. Formatting tweak. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/testutils.h ('k') | webrtc/media/base/videobroadcaster.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/testutils.cc
diff --git a/webrtc/media/base/testutils.cc b/webrtc/media/base/testutils.cc
index 33d0a9727dddc3b8ed8945802d9c58dd466b3cde..b251066a72c529d30fe9abd1bcecbd3ab40a51cc 100644
--- a/webrtc/media/base/testutils.cc
+++ b/webrtc/media/base/testutils.cc
@@ -306,38 +306,6 @@ void DumpPlanarArgbTestImage(const std::string& prefix,
fs.Write(img, ARGB_SIZE(w, h), NULL, NULL);
}
-bool VideoFrameEqual(const VideoFrame* frame0, const VideoFrame* frame1) {
- const uint8_t* y0 = frame0->GetYPlane();
- const uint8_t* u0 = frame0->GetUPlane();
- const uint8_t* v0 = frame0->GetVPlane();
- const uint8_t* y1 = frame1->GetYPlane();
- const uint8_t* u1 = frame1->GetUPlane();
- const uint8_t* v1 = frame1->GetVPlane();
-
- for (size_t i = 0; i < frame0->GetHeight(); ++i) {
- if (0 != memcmp(y0, y1, frame0->GetWidth())) {
- return false;
- }
- y0 += frame0->GetYPitch();
- y1 += frame1->GetYPitch();
- }
-
- for (size_t i = 0; i < frame0->GetChromaHeight(); ++i) {
- if (0 != memcmp(u0, u1, frame0->GetChromaWidth())) {
- return false;
- }
- if (0 != memcmp(v0, v1, frame0->GetChromaWidth())) {
- return false;
- }
- u0 += frame0->GetUPitch();
- v0 += frame0->GetVPitch();
- u1 += frame1->GetUPitch();
- v1 += frame1->GetVPitch();
- }
-
- return true;
-}
-
cricket::StreamParams CreateSimStreamParams(
const std::string& cname,
const std::vector<uint32_t>& ssrcs) {
« no previous file with comments | « webrtc/media/base/testutils.h ('k') | webrtc/media/base/videobroadcaster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698