1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Reduces cost of bookending video data.

This commit is contained in:
Thomas Harte
2020-11-18 17:32:11 -05:00
parent cddd72876f
commit c7ab3d4075
3 changed files with 21 additions and 12 deletions
+1
View File
@@ -94,6 +94,7 @@ enum class InputDataType {
};
/// @returns the number of bytes per sample for data of type @c data_type.
/// Guaranteed to be 1, 2 or 4 for valid data types.
constexpr inline size_t size_for_data_type(InputDataType data_type) {
switch(data_type) {
case InputDataType::Luminance1: