Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LAVSplitterSettings.h « includes « common - github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 64de6ea2ee43e762bb55e37a4c584d809edeac62 (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
/*
 *      Copyright (C) 2011 Hendrik Leppkes
 *      http://www.1f0.de
 *
 *  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, or (at your option)
 *  any later version.
 *
 *  This Program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; see the file COPYING.  If not, write to
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 *  http://www.gnu.org/copyleft/gpl.html
 */

#pragma once

#include <Unknwn.h>       // IUnknown and GUID Macros

// GUID: 72b2c5fa-a7a5-4463-9c1b-9f4749c35c79
DEFINE_GUID(IID_ILAVFSettings, 0x72b2c5fa, 0xa7a5, 
0x4463, 0x9c, 0x1b, 0x9f, 0x47, 0x49, 0xc3, 0x5c, 0x79);

[uuid("72b2c5fa-a7a5-4463-9c1b-9f4749c35c79")]
interface ILAVFSettings : public IUnknown
{
  // Retrieve the preferred languages as ISO 639-2 language codes, comma seperated
  // If the result is NULL, no language has been set
  // Memory for the string will be allocated, and has to be free'ed by the caller with CoTaskMemFree
  STDMETHOD(GetPreferredLanguages)(WCHAR **ppLanguages) = 0;

  // Set the preferred languages as ISO 639-2 language codes, comma seperated
  // To reset to no preferred language, pass NULL or the empty string
  STDMETHOD(SetPreferredLanguages)(WCHAR *pLanguages) = 0;
  
  // Retrieve the preferred subtitle languages as ISO 639-2 language codes, comma seperated
  // If the result is NULL, no language has been set
  // If no subtitle language is set, the main language preference is used.
  // Memory for the string will be allocated, and has to be free'ed by the caller with CoTaskMemFree
  STDMETHOD(GetPreferredSubtitleLanguages)(WCHAR **ppLanguages) = 0;

  // Set the preferred subtitle languages as ISO 639-2 language codes, comma seperated
  // To reset to no preferred language, pass NULL or the empty string
  // If no subtitle language is set, the main language preference is used.
  STDMETHOD(SetPreferredSubtitleLanguages)(WCHAR *pLanguages) = 0;

  // Get the current subtitle mode
  // 0 = No Subs; 1 = Forced Subs; 2 = All subs
  STDMETHOD_(DWORD,GetSubtitleMode)() = 0;

  // Set the current subtitle mode
  // 0 = No Subs; 1 = Forced Subs; 2 = All subs
  STDMETHOD(SetSubtitleMode)(DWORD dwMode) = 0;

  // Get the subtitle matching language flag
  // TRUE = Only subtitles with a language in the preferred list will be used; FALSE = All subtitles will be used
  STDMETHOD_(BOOL,GetSubtitleMatchingLanguage)() = 0;

  // Set the subtitle matching language flag
  // TRUE = Only subtitles with a language in the preferred list will be used; FALSE = All subtitles will be used
  STDMETHOD(SetSubtitleMatchingLanguage)(BOOL dwMode) = 0;

  // Get the VC-1 Timestamp Processing mode
  // 0 - No Timestamp Correction, 1 - Always Timestamp Correction, 2 - Auto (Correction for Decoders that need it)
  STDMETHOD_(int,GetVC1TimestampMode)() = 0;
  
  // Set the VC-1 Timestamp Processing mode
  // 0 - No Timestamp Correction, 1 - Always Timestamp Correction, 2 - Auto (Correction for Decoders that need it)
  STDMETHOD(SetVC1TimestampMode)(int iMode) = 0;

  STDMETHOD_(BOOL,IsVC1CorrectionRequired)() = 0;

  // Set whether substreams (AC3 in TrueHD, for example) should be shown as a seperate stream
  STDMETHOD(SetSubstreamsEnabled)(BOOL bSubStreams) = 0;

  // Check whether substreams (AC3 in TrueHD, for example) should be shown as a seperate stream
  STDMETHOD_(BOOL,GetSubstreamsEnabled)() = 0;

  STDMETHOD(SetVideoParsingEnabled)(BOOL bEnabled) = 0;
  STDMETHOD_(BOOL,GetVideoParsingEnabled)() = 0;

  STDMETHOD(SetAudioParsingEnabled)(BOOL bEnabled) = 0;
  STDMETHOD_(BOOL,GetAudioParsingEnabled)() = 0;

  STDMETHOD(SetGeneratePTS)(BOOL bEnabled) = 0;
  STDMETHOD_(BOOL,GetGeneratePTS)() = 0;
};