From 66c295b06c64c7014422e8604c6ad6c6a23cbf4a Mon Sep 17 00:00:00 2001 From: Mikko Koivisto Date: Fri, 12 Nov 2021 06:11:00 +0000 Subject: Bring back libyuv's I010 buffer API usage libyuv contains now functions that were previously commented out. Test: Cuttlefish webRTC video streaming with VP9 codec Change-Id: I86edca36c809f80b041addde82e0e1ed7da83701 --- api/video/i010_buffer.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/api/video/i010_buffer.cc b/api/video/i010_buffer.cc index df43d78f2a..7286676ded 100644 --- a/api/video/i010_buffer.cc +++ b/api/video/i010_buffer.cc @@ -66,16 +66,12 @@ rtc::scoped_refptr I010Buffer::Copy( const int width = source.width(); const int height = source.height(); rtc::scoped_refptr buffer = Create(width, height); -#if 0 RTC_CHECK_EQ( 0, libyuv::I010Copy( source.DataY(), source.StrideY(), source.DataU(), source.StrideU(), source.DataV(), source.StrideV(), buffer->MutableDataY(), buffer->StrideY(), buffer->MutableDataU(), buffer->StrideU(), buffer->MutableDataV(), buffer->StrideV(), width, height)); -#else - abort(); -#endif return buffer; } @@ -85,16 +81,12 @@ rtc::scoped_refptr I010Buffer::Copy( const int width = source.width(); const int height = source.height(); rtc::scoped_refptr buffer = Create(width, height); -#if 0 RTC_CHECK_EQ( 0, libyuv::I420ToI010( source.DataY(), source.StrideY(), source.DataU(), source.StrideU(), source.DataV(), source.StrideV(), buffer->MutableDataY(), buffer->StrideY(), buffer->MutableDataU(), buffer->StrideU(), buffer->MutableDataV(), buffer->StrideV(), width, height)); -#else - abort(); -#endif return buffer; } @@ -158,15 +150,11 @@ rtc::scoped_refptr I010Buffer::Rotate( rtc::scoped_refptr I010Buffer::ToI420() { rtc::scoped_refptr i420_buffer = I420Buffer::Create(width(), height()); -#if 0 libyuv::I010ToI420(DataY(), StrideY(), DataU(), StrideU(), DataV(), StrideV(), i420_buffer->MutableDataY(), i420_buffer->StrideY(), i420_buffer->MutableDataU(), i420_buffer->StrideU(), i420_buffer->MutableDataV(), i420_buffer->StrideV(), width(), height()); -#else - abort(); -#endif return i420_buffer; } -- cgit v1.2.3