Skip to content

Commit

Permalink
🔥 Remove data_to_yuv420()
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Sep 10, 2024
1 parent f566c3d commit ce9d056
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce9d056

Please sign in to comment.