File indexing completed on 2024-05-26 04:32:39
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Dmitrii Utkin <loentar@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only 0005 */ 0006 0007 #include "recorder_format.h" 0008 0009 namespace RecorderFormatInfo 0010 { 0011 0012 QLatin1String fileExtension(RecorderFormat format) 0013 { 0014 switch (format) { 0015 case RecorderFormat::JPEG: 0016 return QLatin1String("jpg"); 0017 case RecorderFormat::PNG: 0018 return QLatin1String("png"); 0019 } 0020 0021 return QLatin1String(""); 0022 } 0023 0024 QLatin1String fileFormat(RecorderFormat format) 0025 { 0026 switch (format) { 0027 case RecorderFormat::JPEG: 0028 return QLatin1String("JPEG"); 0029 case RecorderFormat::PNG: 0030 return QLatin1String("PNG"); 0031 } 0032 0033 return QLatin1String(""); 0034 } 0035 0036 }