C# Class MediaPortal.Player.BDPlayer

Inheritance: IPlayer, IBDReaderCallback
Show file Open project: MediaPortal/MediaPortal-1

Protected Properties

Property Type Description
AudioCodec IBaseFilter
CheckAudioRendererFilter bool
GuidFilter System.Guid
VideoChange bool
VideoCodec IBaseFilter
_aspectX int
_aspectY int
_audioRendererFilter IBaseFilter
_audioStreams List
_bMediaTypeChanged bool
_bPopupMenuAvailable bool
_basicAudio IBasicAudio
_basicVideo IBasicVideo2
_currentAudioFormat int
_currentAudioStream int
_currentChapter int
_currentFile string
_currentPos double
_currentPosDS DsLong
_currentTitle int
_currentVideoFormat int
_duration double
_durationDS DsLong
_elapsedTimer System.DateTime
_forceTitle bool
_geometry Geometry.Type
_graphBuilder IGraphBuilder
_height int
_interfaceBDReader IBaseFilter
_ireader IBDReader
_isFullscreen bool
_lastFrameCounter int
_mChangedMediaType DirectShowLib.MediaType
_mediaCtrl IMediaControl
_mediaEvt IMediaEventEx
_mediaSeeking IMediaSeeking
_positionX int
_positionY int
_rotEntry DsROTEntry
_selectedSubtitleStream int
_state PlayState
_subtitleStreamEnabled bool
_subtitleStreams List
_subtitlesEnabled bool
_titleToPlay int
_updateNeeded bool
_updateTimer System.DateTime
_usingFastSeeking bool
_videoHeight int
_videoWidth int
_videoWin IVideoWindow
_vmr9 VMR9Util
_volume int
_volumeBeforeSeeking int
_width int
audioRendererFilter string
chapters double[]
eventBuffer EventBuffer
filterConfig BDFilterConfig
firstinit bool
iSpeed int
menuItems MenuItems
menuState MenuState
settings BDPlayerSettings

Public Methods

Method Description
AudioLanguage ( int iStream ) : string

Implements the AudioLanguage member which interfaces the BDReader filter to get the IAMStreamSelect interface for getting info about a stream

AudioType ( int iStream ) : string

Property to get the type of an audio stream

BDPlayer ( ) : System
BDPlayer ( g_Player mediaType ) : System
CanSeek ( ) : bool
Dispose ( ) : void
OnAction ( GUI action ) : bool
OnBDevent ( BDEvent bdevent ) : int
OnClockChange ( long duration, long position ) : int
OnMediaTypeChanged ( int videoRate, int videoFormat, int audioFormat ) : int
OnOSDUpdate ( OSDTexture osdTexture ) : int
Pause ( ) : void
Play ( string strFile ) : bool
Process ( ) : void
SeekAbsolute ( double dTimeInSecs ) : void
SeekAsolutePercentage ( int iPercentage ) : void
SeekRelative ( double dTime ) : void
SeekRelativePercentage ( int iPercentage ) : void
SetVideoWindow ( ) : void
Stop ( ) : void
SubtitleLanguage ( int iStream ) : string

Property to get the language for a subtitle stream

SubtitleName ( int iStream ) : string

Property to get the name for a subtitle stream

WndProc ( Message &m ) : void

Protected Methods

Method Description
AudioGUIDToString ( System.Guid guid ) : string
CheckVideoResolutionChanges ( ) : void
CloseInterfaces ( ) : void

do cleanup and release DirectShow.

CurrentStreamInfo ( ) : void
DoFFRW ( ) : void
DoGraphRebuild ( ) : void
ExclusiveMode ( bool bOnOff ) : void
GetChapters ( TitleInfo titleInfo ) : double[]

Gets chapters from the given BDTitleInfo object

GetFilterConfiguration ( ) : BDFilterConfig

Gets the filter configuration object from the user configuration

GetFullLanguageName ( string language ) : string
GetInterfaces ( string filename, int titleBD ) : bool
GetTitleInfo ( IBDReader reader, int index ) : TitleInfo

Gets the title info for the specified index

GetTitleInfoCollection ( IBDReader reader ) : List

Gets the title info collection from the given BDReader object.

HandleBDEvent ( ) : void
LoadSettings ( IBDReader reader ) : void

Loads the setting from the user configuration into the IBDReader object.

MatchFilters ( string format ) : string
MovieEnded ( ) : void
OnGraphNotify ( ) : void
OnInitialized ( ) : void
OnProcess ( ) : void
PostProcessAddAudio ( ) : void
PostProcessAddVideo ( ) : void
SelectTitle ( List titles ) : int

Selects the title for playback.

SetSourceDestRectangles ( Rectangle source, Rectangle destination ) : void
SetVC1Override ( ) : void
SetVideoPosition ( Rectangle destination ) : void
StreamTypeAudiotoString ( int stream ) : string
StreamTypetoString ( int stream ) : string
SyncAudioRenderer ( ) : void
UpdateChapters ( ) : void
UpdateFilters ( string selection ) : void

Update graph with proper filters

UpdateMenuItems ( ) : void
UpdateRefreshRate ( int videoRate ) : void
VideoFormattoString ( int videoFormat ) : string
VideoRatetoDouble ( int videoRate ) : double
disableCC ( ) : void
disableISR ( ) : void

Private Methods

Method Description
ExportGuidFilterAndRelease ( string filter, BluRayStreamFormats BDStream ) : void
ParseStreams ( IAMStreamSelect pStrm ) : void
SetVideoDecoder ( ) : void
StreamTypetoInt ( string stream ) : int

Method Details

AudioGUIDToString() protected method

protected AudioGUIDToString ( System.Guid guid ) : string
guid System.Guid
return string

AudioLanguage() public method

Implements the AudioLanguage member which interfaces the BDReader filter to get the IAMStreamSelect interface for getting info about a stream
public AudioLanguage ( int iStream ) : string
iStream int
return string

AudioType() public method

Property to get the type of an audio stream
public AudioType ( int iStream ) : string
iStream int
return string

BDPlayer() public method

public BDPlayer ( ) : System
return System

BDPlayer() public method

public BDPlayer ( g_Player mediaType ) : System
mediaType g_Player
return System

CanSeek() public method

public CanSeek ( ) : bool
return bool

CheckVideoResolutionChanges() protected method

protected CheckVideoResolutionChanges ( ) : void
return void

CloseInterfaces() protected method

do cleanup and release DirectShow.
protected CloseInterfaces ( ) : void
return void

CurrentStreamInfo() protected method

protected CurrentStreamInfo ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

DoFFRW() protected method

protected DoFFRW ( ) : void
return void

DoGraphRebuild() protected method

protected DoGraphRebuild ( ) : void
return void

ExclusiveMode() protected method

protected ExclusiveMode ( bool bOnOff ) : void
bOnOff bool
return void

GetChapters() protected method

Gets chapters from the given BDTitleInfo object
protected GetChapters ( TitleInfo titleInfo ) : double[]
titleInfo TitleInfo BDTitleInfo object
return double[]

GetFilterConfiguration() protected method

Gets the filter configuration object from the user configuration
protected GetFilterConfiguration ( ) : BDFilterConfig
return BDFilterConfig

GetFullLanguageName() protected method

protected GetFullLanguageName ( string language ) : string
language string
return string

GetInterfaces() protected method

protected GetInterfaces ( string filename, int titleBD ) : bool
filename string
titleBD int
return bool

GetTitleInfo() protected method

Gets the title info for the specified index
protected GetTitleInfo ( IBDReader reader, int index ) : TitleInfo
reader IBDReader IBDReader object
index int index of the title
return TitleInfo

GetTitleInfoCollection() protected method

Gets the title info collection from the given BDReader object.
protected GetTitleInfoCollection ( IBDReader reader ) : List
reader IBDReader IBDReader object
return List

HandleBDEvent() protected method

protected HandleBDEvent ( ) : void
return void

LoadSettings() protected method

Loads the setting from the user configuration into the IBDReader object.
protected LoadSettings ( IBDReader reader ) : void
reader IBDReader IBDReader object
return void

MatchFilters() protected method

protected MatchFilters ( string format ) : string
format string
return string

MovieEnded() protected method

protected MovieEnded ( ) : void
return void

OnAction() public method

public OnAction ( GUI action ) : bool
action GUI
return bool

OnBDevent() public method

public OnBDevent ( BDEvent bdevent ) : int
bdevent BDEvent
return int

OnClockChange() public method

public OnClockChange ( long duration, long position ) : int
duration long
position long
return int

OnGraphNotify() protected method

protected OnGraphNotify ( ) : void
return void

OnInitialized() protected method

protected OnInitialized ( ) : void
return void

OnMediaTypeChanged() public method

public OnMediaTypeChanged ( int videoRate, int videoFormat, int audioFormat ) : int
videoRate int
videoFormat int
audioFormat int
return int

OnOSDUpdate() public method

public OnOSDUpdate ( OSDTexture osdTexture ) : int
osdTexture OSDTexture
return int

OnProcess() protected method

protected OnProcess ( ) : void
return void

Pause() public method

public Pause ( ) : void
return void

Play() public method

public Play ( string strFile ) : bool
strFile string
return bool

PostProcessAddAudio() protected method

protected PostProcessAddAudio ( ) : void
return void

PostProcessAddVideo() protected method

protected PostProcessAddVideo ( ) : void
return void

Process() public method

public Process ( ) : void
return void

SeekAbsolute() public method

public SeekAbsolute ( double dTimeInSecs ) : void
dTimeInSecs double
return void

SeekAsolutePercentage() public method

public SeekAsolutePercentage ( int iPercentage ) : void
iPercentage int
return void

SeekRelative() public method

public SeekRelative ( double dTime ) : void
dTime double
return void

SeekRelativePercentage() public method

public SeekRelativePercentage ( int iPercentage ) : void
iPercentage int
return void

SelectTitle() protected method

Selects the title for playback.
protected SelectTitle ( List titles ) : int
titles List a collection of titles to choose from
return int

SetSourceDestRectangles() protected method

protected SetSourceDestRectangles ( Rectangle source, Rectangle destination ) : void
source System.Drawing.Rectangle
destination System.Drawing.Rectangle
return void

SetVC1Override() protected method

protected SetVC1Override ( ) : void
return void

SetVideoPosition() protected method

protected SetVideoPosition ( Rectangle destination ) : void
destination System.Drawing.Rectangle
return void

SetVideoWindow() public method

public SetVideoWindow ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

StreamTypeAudiotoString() protected method

protected StreamTypeAudiotoString ( int stream ) : string
stream int
return string

StreamTypetoString() protected method

protected StreamTypetoString ( int stream ) : string
stream int
return string

SubtitleLanguage() public method

Property to get the language for a subtitle stream
public SubtitleLanguage ( int iStream ) : string
iStream int
return string

SubtitleName() public method

Property to get the name for a subtitle stream
public SubtitleName ( int iStream ) : string
iStream int
return string

SyncAudioRenderer() protected method

protected SyncAudioRenderer ( ) : void
return void

UpdateChapters() protected method

protected UpdateChapters ( ) : void
return void

UpdateFilters() protected method

Update graph with proper filters
protected UpdateFilters ( string selection ) : void
selection string The selection.
return void

UpdateMenuItems() protected method

protected UpdateMenuItems ( ) : void
return void

UpdateRefreshRate() protected method

protected UpdateRefreshRate ( int videoRate ) : void
videoRate int
return void

VideoFormattoString() protected method

protected VideoFormattoString ( int videoFormat ) : string
videoFormat int
return string

VideoRatetoDouble() protected method

protected VideoRatetoDouble ( int videoRate ) : double
videoRate int
return double

WndProc() public method

public WndProc ( Message &m ) : void
m Message
return void

disableCC() protected method

protected disableCC ( ) : void
return void

disableISR() protected method

protected disableISR ( ) : void
return void

Property Details

AudioCodec protected property

protected IBaseFilter AudioCodec
return IBaseFilter

CheckAudioRendererFilter protected property

protected bool CheckAudioRendererFilter
return bool

GuidFilter protected property

protected Guid,System GuidFilter
return System.Guid

VideoChange protected property

protected bool VideoChange
return bool

VideoCodec protected property

protected IBaseFilter VideoCodec
return IBaseFilter

_aspectX protected property

protected int _aspectX
return int

_aspectY protected property

protected int _aspectY
return int

_audioRendererFilter protected property

protected IBaseFilter _audioRendererFilter
return IBaseFilter

_audioStreams protected property

protected List _audioStreams
return List

_bMediaTypeChanged protected property

protected bool _bMediaTypeChanged
return bool

_bPopupMenuAvailable protected property

protected bool _bPopupMenuAvailable
return bool

_basicAudio protected property

audio interface used to control volume.
protected IBasicAudio _basicAudio
return IBasicAudio

_basicVideo protected property

interface to get information and control video.
protected IBasicVideo2 _basicVideo
return IBasicVideo2

_currentAudioFormat protected property

protected int _currentAudioFormat
return int

_currentAudioStream protected property

protected int _currentAudioStream
return int

_currentChapter protected property

protected int _currentChapter
return int

_currentFile protected property

protected string _currentFile
return string

_currentPos protected property

protected double _currentPos
return double

_currentPosDS protected property

protected DsLong _currentPosDS
return DsLong

_currentTitle protected property

protected int _currentTitle
return int

_currentVideoFormat protected property

protected int _currentVideoFormat
return int

_duration protected property

protected double _duration
return double

_durationDS protected property

protected DsLong _durationDS
return DsLong

_elapsedTimer protected property

protected DateTime,System _elapsedTimer
return System.DateTime

_forceTitle protected property

protected bool _forceTitle
return bool

_geometry protected property

protected Geometry.Type _geometry
return Geometry.Type

_graphBuilder protected property

protected IGraphBuilder _graphBuilder
return IGraphBuilder

_height protected property

protected int _height
return int

_interfaceBDReader protected property

protected IBaseFilter _interfaceBDReader
return IBaseFilter

_ireader protected property

protected IBDReader _ireader
return IBDReader

_isFullscreen protected property

protected bool _isFullscreen
return bool

_lastFrameCounter protected property

protected int _lastFrameCounter
return int

_mChangedMediaType protected property

protected MediaType,DirectShowLib _mChangedMediaType
return DirectShowLib.MediaType

_mediaCtrl protected property

control interface.
protected IMediaControl _mediaCtrl
return IMediaControl

_mediaEvt protected property

graph event interface.
protected IMediaEventEx _mediaEvt
return IMediaEventEx

_mediaSeeking protected property

protected IMediaSeeking _mediaSeeking
return IMediaSeeking

_positionX protected property

protected int _positionX
return int

_positionY protected property

protected int _positionY
return int

_rotEntry protected property

protected DsROTEntry _rotEntry
return DsROTEntry

_selectedSubtitleStream protected property

protected int _selectedSubtitleStream
return int

_state protected property

protected PlayState _state
return PlayState

_subtitleStreamEnabled protected property

protected bool _subtitleStreamEnabled
return bool

_subtitleStreams protected property

protected List _subtitleStreams
return List

_subtitlesEnabled protected property

protected bool _subtitlesEnabled
return bool

_titleToPlay protected property

protected int _titleToPlay
return int

_updateNeeded protected property

protected bool _updateNeeded
return bool

_updateTimer protected property

protected DateTime,System _updateTimer
return System.DateTime

_usingFastSeeking protected property

protected bool _usingFastSeeking
return bool

_videoHeight protected property

protected int _videoHeight
return int

_videoWidth protected property

protected int _videoWidth
return int

_videoWin protected property

video preview window interface.
protected IVideoWindow _videoWin
return IVideoWindow

_vmr9 protected property

protected VMR9Util,MediaPortal.Player _vmr9
return VMR9Util

_volume protected property

protected int _volume
return int

_volumeBeforeSeeking protected property

protected int _volumeBeforeSeeking
return int

_width protected property

protected int _width
return int

audioRendererFilter protected property

protected string audioRendererFilter
return string

chapters protected property

protected double[] chapters
return double[]

eventBuffer protected property

protected EventBuffer eventBuffer
return EventBuffer

filterConfig protected property

protected BDFilterConfig filterConfig
return BDFilterConfig

firstinit protected property

protected bool firstinit
return bool

iSpeed protected property

protected int iSpeed
return int

menuItems protected property

protected MenuItems menuItems
return MenuItems

menuState protected property

protected MenuState menuState
return MenuState

settings protected static property

protected static BDPlayerSettings,MediaPortal.Player settings
return BDPlayerSettings