3
MediaTomb - http://www.mediatomb.cc/
5
dvd_handler.h - this file is part of MediaTomb.
7
Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
10
Copyright (C) 2006-2009 Gena Batyan <bgeradz@mediatomb.cc>,
11
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
Leonhard Wimmer <leo@mediatomb.cc>
14
MediaTomb is free software; you can redistribute it and/or modify
15
it under the terms of the GNU General Public License version 2
16
as published by the Free Software Foundation.
18
MediaTomb is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
23
You should have received a copy of the GNU General Public License
24
version 2 along with MediaTomb; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
27
$Id: dvd_handler.h 2011 2009-01-11 19:14:54Z lww $
30
/// \file dvd_handler.h
31
/// \brief Definition of the DVD class.
33
#ifndef __METADATA_DVD_H__
34
#define __METADATA_DVD_H__
36
#include "metadata_handler.h"
38
#define DVD_AUXDATA_TITLE_COUNT "DVD_TITLES"
39
#define DVD_AUXDATA_CHAPTERS "DVD_CHAPTERS"
40
#define DVD_AUXDATA_AUDIO_TRACKS "DVD_AUDIO_TRACKS"
53
DVD_ChapterRestDuration,
59
DVD_AudioTrackStreamID,
60
DVD_AudioTrackChannels,
61
DVD_AudioTrackSampleFreq,
62
DVD_AudioTrackLanguage,
63
} dvd_aux_key_names_t;
66
/// \brief This class is responsible for parsing DVDs and DVD ISO images
67
class DVDHandler : public MetadataHandler
71
virtual void fillMetadata(zmm::Ref<CdsItem> item);
72
virtual zmm::Ref<IOHandler> serveContent(zmm::Ref<CdsItem> item, int resNum, off_t *data_size);
74
/// \brief Helper function to construct the key names for DVD aux data
75
static zmm::String renderKey(dvd_aux_key_names_t name, int title_idx = 0,
76
int chapter_idx = 0, int audio_track_idx = 0);
79
#endif // __METADATA_DVD_H__