#include <sbGStreamerVideoTranscode.h>
Public Member Functions | |
| NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_SBITRANSCODEVIDEOJOB NS_DECL_SBIJOBPROGRESS NS_DECL_SBIJOBPROGRESSTIME NS_DECL_SBIJOBCANCELABLE NS_DECL_NSITIMERCALLBACK | sbGStreamerVideoTranscoder () |
| virtual nsresult | BuildPipeline () |
| NS_IMETHOD | PlayPipeline () |
| NS_IMETHOD | StopPipeline () |
Public Member Functions inherited from sbGStreamerPipeline | |
| NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_SBIMEDIACOREEVENTTARGET NS_DECL_SBIGSTREAMERPIPELINE | sbGStreamerPipeline () |
| virtual | ~sbGStreamerPipeline () |
| virtual void | HandleMessage (GstMessage *message) |
| virtual PRBool | HandleSynchronousMessage (GstMessage *message) |
| nsresult | InitGStreamer () |
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... | |
| attribute sbITranscodingConfigurator | configurator |
| 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 |
| nsAutoPtr < sbBaseMediacoreEventTarget > | mBaseEventTarget |
Definition at line 57 of file sbGStreamerVideoTranscode.h.
| sbGStreamerVideoTranscoder::sbGStreamerVideoTranscoder | ( | ) |
Definition at line 93 of file sbGStreamerVideoTranscode.cpp.
|
virtual |
Reimplemented from sbGStreamerPipeline.
Definition at line 305 of file sbGStreamerVideoTranscode.cpp.
| NS_IMETHODIMP sbGStreamerVideoTranscoder::PlayPipeline | ( | ) |
Definition at line 336 of file sbGStreamerVideoTranscode.cpp.
| NS_IMETHODIMP sbGStreamerVideoTranscoder::StopPipeline | ( | ) |
Definition at line 353 of file sbGStreamerVideoTranscode.cpp.