~vanvugt/ubuntu/oneiric/mediatomb/fix-770964-784431

« back to all changes in this revision

Viewing changes to src/transcoding/transcoding.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2009-04-22 21:39:19 UTC
  • mto: (4.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090422213919-52m015y6gcpv1m1g
Tags: upstream-0.12.0~svn2018
ImportĀ upstreamĀ versionĀ 0.12.0~svn2018

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
8
                       Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
9
9
    
10
 
    Copyright (C) 2006-2008 Gena Batyan <bgeradz@mediatomb.cc>,
 
10
    Copyright (C) 2006-2009 Gena Batyan <bgeradz@mediatomb.cc>,
11
11
                            Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
12
                            Leonhard Wimmer <leo@mediatomb.cc>
13
13
    
24
24
    version 2 along with MediaTomb; if not, write to the Free Software
25
25
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
26
26
    
27
 
    $Id: transcoding.h 1698 2008-02-23 20:48:30Z lww $
 
27
    $Id: transcoding.h 2010 2009-01-11 19:10:43Z lww $
28
28
*/
29
29
 
30
30
/// \file transcoding.h
39
39
#include "dictionary.h"
40
40
#include "object_dictionary.h"
41
41
 
42
 
typedef enum transcoding_type_t
 
42
#define SOURCE  (-1)
 
43
#define OFF       0
 
44
 
 
45
typedef enum 
43
46
{
44
47
    TR_None,
45
48
    TR_External,
46
49
    TR_Remote
47
 
};
 
50
} transcoding_type_t;
48
51
 
49
 
typedef enum avi_fourcc_listmode_t
 
52
typedef enum 
50
53
{
51
54
    FCC_None,
52
55
    FCC_Process,
53
56
    FCC_Ignore
54
 
};
 
57
} avi_fourcc_listmode_t;
55
58
 
56
59
/// \brief this class keeps all data associated with one transcoding profile.
57
60
class TranscodingProfile : public zmm::Object
164
167
    /// \brief Provides information on the mode of the list
165
168
    avi_fourcc_listmode_t getAVIFourCCListMode() { return fourcc_mode; }
166
169
 
 
170
    /// \brief Send out the data in chunked encoding
 
171
    void setChunked(bool chunked) { force_chunked = chunked; }
 
172
    bool getChunked() { return force_chunked; }
 
173
 
 
174
    /// \brief Sample frequency handling
 
175
    void setSampleFreq(int freq) { sample_frequency = freq; }
 
176
    int getSampleFreq() { return sample_frequency; }
 
177
 
 
178
    /// \brief Number of channels
 
179
    void setNumChannels(int chans) { number_of_channels = chans; }
 
180
    int getNumChannels() { return number_of_channels; }
 
181
 
 
182
    /// \brief transcode or ignore streams extracted from a DVD image
 
183
    void setOnlyDVD(bool accept) { dvd_only = accept; }
 
184
    bool onlyDVD() { return dvd_only; }
 
185
 
167
186
protected:
168
187
    zmm::String name;
169
188
    zmm::String tm;
172
191
    bool first_resource;
173
192
    bool theora;
174
193
    bool accept_url;
 
194
    bool dvd_only;
175
195
    bool hide_orig_res;
176
196
    bool thumbnail;
 
197
    bool force_chunked;
177
198
    size_t buffer_size;
178
199
    size_t chunk_size;
179
200
    size_t initial_fill_size;
180
201
    transcoding_type_t tr_type;
 
202
    int number_of_channels;
 
203
    int sample_frequency;
181
204
    zmm::Ref<Dictionary> attributes;
182
205
    zmm::Ref<zmm::Array<zmm::StringBase> > fourcc_list;
183
206
    avi_fourcc_listmode_t fourcc_mode;