sbGStreamerVideoTranscoder Class Reference

#include <sbGStreamerVideoTranscode.h>

Inheritance diagram for sbGStreamerVideoTranscoder:
Collaboration diagram for sbGStreamerVideoTranscoder:

Public Member Functions

sbGStreamerVideoTranscoder ()
virtual nsresult BuildPipeline ()
NS_IMETHOD PlayPipeline ()
NS_IMETHOD StopPipeline ()
- Public Member Functions inherited from sbGStreamerPipeline
sbGStreamerPipeline ()
virtual ~sbGStreamerPipeline ()
virtual void HandleMessage (GstMessage *message)
virtual PRBool HandleSynchronousMessage (GstMessage *message)
nsresult InitGStreamer ()
- Public Member Functions inherited from sbGStreamerMessageHandler
virtual ~sbGStreamerMessageHandler ()
- Public Member Functions inherited from sbIGStreamerPipeline
void stopPipeline ()
void pausePipeline ()
void playPipeline ()
- Public Member Functions inherited from sbIMediacoreEventTarget
void addListener (in sbIMediacoreEventListener aListener)
void removeListener (in sbIMediacoreEventListener aListener)
boolean dispatchEvent (in sbIMediacoreEvent aEvent, [optional] in boolean aAsync)
- Public Member Functions inherited from sbITranscodeVideoJob
PRInt32 vote (in sbIMediaItem aMediaItem)
 Vote to be the handler returned for the given url. More...
void transcode ()
 Start the transcoding operation. More...
- Public Member Functions inherited from sbIJobProgress
nsIStringEnumerator getErrorMessages ()
 Enumerate all the errors encountered during the job. More...
void addJobProgressListener (in sbIJobProgressListener aListener)
 Add a listener to be notified when significant job progress has been made. More...
void removeJobProgressListener (in sbIJobProgressListener aListener)
 Remove a previously added listener. More...
- Public Member Functions inherited from sbIJobCancelable
void cancel ()
 Attempt to cancel the job Throws NS_ERROR_FAILURE if canceling fails. More...

Additional Inherited Members

- Public Attributes inherited from sbITranscodeVideoJob
attribute sbIPropertyArray metadata
 An array of metadata properties. More...
attribute nsIInputStream metadataImage
 An input stream for the encoded image. More...
 The configurator that will be used to configurate the transcoder for the specific input URI. More...
attribute AString sourceURI
 The source URI to transcode from. More...
attribute AString destURI
 The destination URI to transcode to. Used only if destStream is set to a non-null value. More...
attribute nsIOutputStream destStream
 A stream to write the output to. Used in preference to destURI if this is set. More...
- Public Attributes inherited from sbIJobProgressTime
readonly attribute unsigned long elapsedTime
 Time elapsed while working on this job, in milliseconds. More...
readonly attribute unsigned long remainingTime
 Estimated time remaining for this job to complete, in milliseconds. May be -1 if the remaining time is indeterminate. More...
- Public Attributes inherited from sbIJobProgress
const unsigned short STATUS_FAILED = 0x00
 Constant indicating that the job has completed with errors. More...
const unsigned short STATUS_SUCCEEDED = 0x10
 Constant indicating that the job has completed. More...
const unsigned short STATUS_RUNNING = 0x20
 Constant indicating that the job is active. More...
readonly attribute unsigned short status
 Current status of the job. More...
readonly attribute boolean blocked
 If true, progress of job is blocked (e.g., due to locked resource). More...
readonly attribute AString statusText
 Localized message describing the status of the job. More...
readonly attribute AString titleText
 Localized message describing the type or purpose of the job. More...
readonly attribute unsigned long progress
 Number of work units completed. More...
readonly attribute unsigned long total
 Total number of work units to be completed May be set to 0 if the job length is indeterminate. More...
readonly attribute unsigned long errorCount
 Number of errors that have been encountered. More...
- Public Attributes inherited from sbIJobCancelable
readonly attribute boolean canCancel
 True if it is possible to cancel the job. More...
- Protected Member Functions inherited from sbGStreamerPipeline
virtual void HandleWarningMessage (GstMessage *message)
virtual void HandleStateChangeMessage (GstMessage *message)
virtual void HandleTagMessage (GstMessage *message)
virtual void HandleBufferingMessage (GstMessage *message)
virtual nsresult OnDestroyPipeline (GstElement *pipeline)
virtual nsresult SetupPipeline ()
virtual nsresult DestroyPipeline ()
void SetPipelineOp (GStreamer::pipelineOp_t aPipelineOp)
GStreamer::pipelineOp_t GetPipelineOp ()
void DispatchMediacoreEvent (unsigned long type, nsIVariant *aData=NULL, sbIMediacoreError *aError=NULL)
GstClockTime GetRunningTime ()
- Protected Attributes inherited from sbGStreamerPipeline
GstElement * mPipeline
nsString mResourceDisplayName
GstClockTime mTimeRunning
PRIntervalTime mTimeStarted
PRMonitor * mMonitor
GStreamer::pipelineOp_t mPipelineOp
< sbBaseMediacoreEventTarget

Detailed Description

Definition at line 57 of file sbGStreamerVideoTranscode.h.

Constructor & Destructor Documentation

sbGStreamerVideoTranscoder::sbGStreamerVideoTranscoder ( )

Definition at line 93 of file sbGStreamerVideoTranscode.cpp.

Member Function Documentation

nsresult sbGStreamerVideoTranscoder::BuildPipeline ( )

Reimplemented from sbGStreamerPipeline.

Definition at line 305 of file sbGStreamerVideoTranscode.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbGStreamerVideoTranscoder::PlayPipeline ( )

Definition at line 336 of file sbGStreamerVideoTranscode.cpp.

NS_IMETHODIMP sbGStreamerVideoTranscoder::StopPipeline ( )

Definition at line 353 of file sbGStreamerVideoTranscode.cpp.

The documentation for this class was generated from the following files: