Efficient Hardware Architecture Design of K-Means Clustering Algorithm for AV1 Palette Mode Coding
The palette mode is a specialized coding tool for coding screen content video in Alliance for Open Media Video 1 (AV1), and K-means clustering is a necessary step in the palette mode. However, the high computational complexity and the strong data dependency in K-means clustering impede real-time processing. To address these issues, we propose an efficient hardware architecture design for the K-means clustering algorithm. Firstly, we propose a fully pipelined hardware architecture with two data-interleaving optimization methods, including K-interleaving and block-interleaving. Then, we propose a novel method for reusing original pixel data, which is motivated by the fact that the input original pixels are the same for different coding blocks. Finally, we propose a parallelized architecture that features three “K-means Engine” modules, with reusing of the “Euclidean distance calculate” module to minimize area. Experimental results show that the proposed hardware architecture can process all K-means clustering for pixels in a superblock in 10246 cycles under 650MHz working frequency, which can achieve 4K@30fps real-time processing. To the best of our knowledge, our work is the first attempt to design a K-means clustering hardware accelerator for palette mode in AV1.
Authors
- Siwei Ma (ORCID: https://orcid.org/0000-0002-2731-5403)
- Wen Ji
- Haibing Yin (ORCID: https://orcid.org/0000-0002-3025-0938)
- Xiaofeng Huang (ORCID: https://orcid.org/0000-0002-8479-6960)
- Jiaqing Lin
- Fengguang Liu (ORCID: https://orcid.org/0009-0006-5897-4141)
Institutions
- Zhejiang University of Science and Technology (CN)
- Chinese Academy of Sciences (CN)
- Peking University (CN)
- Institute of Computing Technology (CN)
- Zhejiang Science and Technology Information Institute (CN)
- Hangzhou Dianzi University (CN)
Publication Details
- Journal
- IEEE Transactions on Circuits & Systems II Express Briefs
- Published
- 2025-06-17
- DOI
- https://doi.org/10.1109/tcsii.2025.3580435
- Citations
- 2
- Primary Topic
- Video Coding and Compression Technologies
- Type
- article
- Field-Weighted Citation Impact
- 2.97
Funders
- Key Research and Development Program of Jiangxi Province
- National Key Research and Development Program of China