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) { |