From 93a76ca1b4f7cc2c1ef653fc06d5326c74e85682 Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Thu, 15 Aug 2024 12:48:26 -0700
Subject: [PATCH] yv12extend.c: remove 2 unused functions
- aom_extend_frame_inner_borders; the last (commented out) reference was
removed in:
aeee77c483 Multi-thread recon frame padding
- aom_extend_frame_borders_y; the last (commented out) reference was
removed in:
1c318d528f Remove some commented out code
Bug: aomedia:3416
Change-Id: I433efc796eaabc7154ae7366a54b00e9484e7930
---
aom_scale/aom_scale_rtcd.pl | 4 ----
aom_scale/generic/yv12extend.c | 29 -----------------------------
2 files changed, 33 deletions(-)
diff --git a/aom_scale/aom_scale_rtcd.pl b/aom_scale/aom_scale_rtcd.pl
index 273e3f9cc1..bcdb8984d1 100644
--- a/aom_scale/aom_scale_rtcd.pl
+++ b/aom_scale/aom_scale_rtcd.pl
@@ -39,8 +39,4 @@ ()
add_proto qw/void aom_extend_frame_borders_plane_row/, "const struct yv12_buffer_config *ybf, int plane, int v_start, int v_end";
add_proto qw/void aom_extend_frame_borders/, "struct yv12_buffer_config *ybf, int num_planes";
-
-add_proto qw/void aom_extend_frame_inner_borders/, "struct yv12_buffer_config *ybf, const int num_planes";
-
-add_proto qw/void aom_extend_frame_borders_y/, "struct yv12_buffer_config *ybf";
1;
diff --git a/aom_scale/generic/yv12extend.c b/aom_scale/generic/yv12extend.c
index e40bba320e..be5d854dbc 100644
--- a/aom_scale/generic/yv12extend.c
+++ b/aom_scale/generic/yv12extend.c
@@ -222,35 +222,6 @@ void aom_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf, const int num_planes) {
extend_frame(ybf, ybf->border, num_planes);
}
-void aom_extend_frame_inner_borders_c(YV12_BUFFER_CONFIG *ybf,
- const int num_planes) {
- const int inner_bw = (ybf->border > AOMINNERBORDERINPIXELS)
- ? AOMINNERBORDERINPIXELS
- : ybf->border;
- extend_frame(ybf, inner_bw, num_planes);
-}
-
-void aom_extend_frame_borders_y_c(YV12_BUFFER_CONFIG *ybf) {
- int ext_size = ybf->border;
- assert(ybf->y_height - ybf->y_crop_height < 16);
- assert(ybf->y_width - ybf->y_crop_width < 16);
- assert(ybf->y_height - ybf->y_crop_height >= 0);
- assert(ybf->y_width - ybf->y_crop_width >= 0);
-#if CONFIG_AV1_HIGHBITDEPTH
- if (ybf->flags & YV12_FLAG_HIGHBITDEPTH) {
- extend_plane_high(
- ybf->y_buffer, ybf->y_stride, ybf->y_crop_width, ybf->y_crop_height,
- ext_size, ext_size, ext_size + ybf->y_height - ybf->y_crop_height,
- ext_size + ybf->y_width - ybf->y_crop_width, 0, ybf->y_crop_height);
- return;
- }
-#endif
- extend_plane(
- ybf->y_buffer, ybf->y_stride, ybf->y_crop_width, ybf->y_crop_height,
- ext_size, ext_size, ext_size + ybf->y_height - ybf->y_crop_height,
- ext_size + ybf->y_width - ybf->y_crop_width, 0, ybf->y_crop_height);
-}
-
#if CONFIG_AV1_HIGHBITDEPTH
static void memcpy_short_addr(uint8_t *dst8, const uint8_t *src8, int num) {
uint16_t *dst = CONVERT_TO_SHORTPTR(dst8);