File indexing completed on 2025-01-19 04:22:52
0001 /* 0002 SPDX-FileCopyrightText: 2010 Dirk Vanden Boer <dirk.vdb@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef HISTOGRAM_H 0008 #define HISTOGRAM_H 0009 0010 #include <string.h> 0011 0012 namespace ffmpegthumbnailer 0013 { 0014 0015 template <typename T> 0016 struct Histogram { 0017 T r[256]; 0018 T g[256]; 0019 T b[256]; 0020 0021 Histogram() { 0022 memset(r, 0, 255 * sizeof(T)); 0023 memset(g, 0, 255 * sizeof(T)); 0024 memset(b, 0, 255 * sizeof(T)); 0025 } 0026 }; 0027 0028 } 0029 0030 #endif