From 57dd8811c9d8ab4ae3bfb4fc486f1231b55cfe69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Thu, 18 Oct 2018 15:10:11 +0200 Subject: [PATCH] Delete dead code in webrtc_libyuv.cc Delete functions ConvertNV12ToRGB565 and ConvertRGB24ToARGB. Not used, and not declared in corresponding header file. Left-over from https://codereview.webrtc.org/2021843002. Bug: None Change-Id: I3f95adf52ac8ecdce1089ab79cfac7e1414fe80a Reviewed-on: https://webrtc-review.googlesource.com/c/106920 Reviewed-by: Magnus Jedvert Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#25282} --- common_video/libyuv/webrtc_libyuv.cc | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/common_video/libyuv/webrtc_libyuv.cc b/common_video/libyuv/webrtc_libyuv.cc index 6bdfabd5e9..6e3fb3ed35 100644 --- a/common_video/libyuv/webrtc_libyuv.cc +++ b/common_video/libyuv/webrtc_libyuv.cc @@ -124,29 +124,6 @@ int ExtractBuffer(const VideoFrame& input_frame, size_t size, uint8_t* buffer) { buffer); } -int ConvertNV12ToRGB565(const uint8_t* src_frame, - uint8_t* dst_frame, - int width, - int height) { - int abs_height = (height < 0) ? -height : height; - const uint8_t* yplane = src_frame; - const uint8_t* uvInterlaced = src_frame + (width * abs_height); - - return libyuv::NV12ToRGB565(yplane, width, uvInterlaced, (width + 1) >> 1, - dst_frame, width, width, height); -} - -int ConvertRGB24ToARGB(const uint8_t* src_frame, - uint8_t* dst_frame, - int width, - int height, - int dst_stride) { - if (dst_stride == 0) - dst_stride = width; - return libyuv::RGB24ToARGB(src_frame, width, dst_frame, dst_stride, width, - height); -} - int ConvertVideoType(VideoType video_type) { switch (video_type) { case VideoType::kUnknown: