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 <magjed@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25282}
This commit is contained in:
Niels Möller 2018-10-18 15:10:11 +02:00 committed by Commit Bot
parent 9acf1c1f54
commit 57dd8811c9

View File

@ -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: