blob: 171ae35d79d7f1c2f9a5159a9f5211decaa9111f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/*
*
* $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
* Copyright (C) 2006 Sebastian Trueg <trueg@k3b.org>
*
* This file is part of the K3b project.
* Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* See the file "COPYING" for the exact licensing terms.
*/
#ifndef _K3B_VIDEODVD_RIPPING_JOB_H_
#define _K3B_VIDEODVD_RIPPING_JOB_H_
#include <k3bjob.h>
#include <k3bvideodvd.h>
#include <k3bvideodvdtitletranscodingjob.h>
#include <tqvaluevector.h>
class K3bVideoDVDTitleDetectClippingJob;
/**
* For details on the options see K3bVideoDVDTitleTranscodingJob
*/
class K3bVideoDVDRippingJob : public K3bJob
{
Q_OBJECT
public:
K3bVideoDVDRippingJob( K3bJobHandler* hdl, TQObject* parent );
~K3bVideoDVDRippingJob();
class TitleRipInfo {
public:
TitleRipInfo();
TitleRipInfo( int title,
int audioStream = 0,
const TQString& fn = TQString(),
int width = 0, // 0 -> no resize
int height = 0, // 0 -> no resize
int videoBitrate = 0, // 0 -> use default from job settings
int clipTop = 0,
int clipLeft = 0,
int clipBottom = 0,
int clipRight = 0 );
int title;
int audioStream;
TQString filename;
int width;
int height;
int videoBitrate;
int clipTop;
int clipLeft;
int clipBottom;
int clipRight;
};
TQString jobDescription() const;
TQString jobDetails() const;
public slots:
void start();
void cancel();
void setVideoDVD( const K3bVideoDVD::VideoDVD& dvd ) { m_dvd = dvd; }
void setTitles( const TQValueVector<TitleRipInfo>& titles ) { m_titleRipInfos = titles; }
void setVideoCodec( K3bVideoDVDTitleTranscodingJob::VideoCodec codec );
void setVideoBitrate( int bitrate );
void setTwoPassEncoding( bool b );
void setAudioCodec( K3bVideoDVDTitleTranscodingJob::AudioCodec codec );
void setAudioBitrate( int bitrate );
void setAudioVBR( bool vbr );
void setResampleAudioTo44100( bool b );
void setLowPriority( bool b );
void setAutoClipping( bool b );
private slots:
void slotTranscodingJobFinished( bool );
void slotDetectClippingJobFinished( bool );
void slotTranscodingProgress( int );
void slotDetectClippingProgress( int );
private:
void startTranscoding( int ripInfoIndex );
void startDetectClipping( int ripInfoIndex );
void initProgressInfo();
K3bVideoDVD::VideoDVD m_dvd;
TQValueVector<TitleRipInfo> m_titleRipInfos;
K3bVideoDVDTitleTranscodingJob* m_transcodingJob;
K3bVideoDVDTitleDetectClippingJob* m_detectClippingJob;
class Private;
Private* d;
};
#endif
|