From ce9d05645355e8c562ee0a01238f14cdf87b643a Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Tue, 10 Sep 2024 15:59:32 +0800 Subject: [PATCH] :fire: Remove data_to_yuv420() --- .../recipes-apps/autostart/src/transmission_protocol.c | 7 ------- .../recipes-apps/autostart/src/transmission_protocol.h | 1 - 2 files changed, 8 deletions(-) diff --git a/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.c b/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.c index a6a48c2..c73432b 100644 --- a/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.c +++ b/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.c @@ -282,13 +282,6 @@ void fd_to_data_frames(int fd, data_frame_t *data_frames, n_frame_t n_frame) { memset(data_frames[i].data + size, 0, TP_FRAME_DATA_LEN_MAX - size); } -ssize_t data_to_yuv420(int16_t *y, int16_t **u, int16_t **v, size_t yuv_len) { - size_t v_len = yuv_len / (4 + 1 + 1); - *u = y + v_len * 4; - *v = *u + v_len; - return v_len; -}; - /** * dequantize: * output = input diff --git a/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.h b/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.h index 0669c65..802915b 100644 --- a/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.h +++ b/project-spec/meta-user/recipes-apps/autostart/src/transmission_protocol.h @@ -104,7 +104,6 @@ size_t data_frame_to_data_len(data_frame_t *, n_frame_t); void data_frames_to_data(data_frame_t *, n_frame_t, uint8_t *); void data_to_data_frames(uint8_t *, size_t, data_frame_t *); void fd_to_data_frames(int, data_frame_t *, n_frame_t); -ssize_t data_to_yuv420(int16_t *, int16_t **, int16_t **, size_t); void entropy_to_gmm(int16_t *, gmm_t *, size_t); __END_DECLS