blob: e7a52fbfa87d31e19dacbe9d4bdaf1a482964457 (
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
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IEncodeInstance.cs" company="HandBrake Project (https://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// Defines the encode portions of the IHandBrakeInstance
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.Interop.Interfaces
{
using System;
using HandBrake.Interop.Interop.EventArgs;
using HandBrake.Interop.Interop.Json.Encode;
using HandBrake.Interop.Interop.Json.State;
public interface IEncodeInstance
{
/// <summary>
/// Fires when an encode has completed.
/// </summary>
event EventHandler<EncodeCompletedEventArgs> EncodeCompleted;
/// <summary>
/// Fires for progress updates when encoding.
/// </summary>
event EventHandler<EncodeProgressEventArgs> EncodeProgress;
bool IsRemoteInstance { get; }
/// <summary>
/// Initializes this instance.
/// </summary>
/// <param name="verbosity">
/// The code for the logging verbosity to use.
/// </param>
/// <param name="noHardware">
/// Turn off Hardware Acceleration
/// </param>
void Initialize(int verbosity, bool noHardware);
/// <summary>
/// Frees any resources associated with this object.
/// </summary>
void Dispose();
/// <summary>
/// Pauses the current encode.
/// </summary>
void PauseEncode();
/// <summary>
/// Resumes a paused encode.
/// </summary>
void ResumeEncode();
/// <summary>
/// Starts an encode with the given job.
/// </summary>
/// <param name="jobToStart">
/// The job to start.
/// </param>
void StartEncode(JsonEncodeObject jobToStart);
/// <summary>
/// Stops the current encode.
/// </summary>
void StopEncode();
/// <summary>
/// Get the current Encode State.
/// </summary>
/// <returns>A JsonState object</returns>
JsonState GetEncodeProgress();
}
}
|