Debian Codegraph @

xbmc/video/tags/VideoTagExtractionHelper.h

raw
1 /*
2 * Copyright (C) 2023 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include <string>
12
13 class CFileItem;
14
15 namespace VIDEO
16 {
17 namespace TAGS
18 {
19 class CVideoTagExtractionHelper
20 {
21 public:
22 /*!
23 \brief Check whether tag extraction is supported for the given item. This is no
24 check whether the video denoted by the item actually contains any tags. There is also a Kodi
25 setting for enabling video tag support that is taken into consideration by the implementation of
26 this function.
27 \param item [in] the item denoting a video file.
28 \return True if tag support is enabled and extraction is supported for the given file type.
29 */
30 static bool IsExtractionSupportedFor(const CFileItem& item);
31
32 /*!
33 \brief Try to extract embedded art of given type from the given item denoting a video file.
34 \param item [in] the item.
35 \param artType The type of the art to extract (e.g. "fanart").
36 \return The image URL of the embedded art if extraction was successful, false otherwise.
37 */
38 static std::string ExtractEmbeddedArtFor(const CFileItem& item, const std::string& artType);
39 };
40 } // namespace TAGS
41 } // namespace VIDEO