You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Removing throw statements from header files (thanks Peter)
This commit is contained in:
@@ -106,7 +106,7 @@ namespace openshot {
|
||||
|
||||
/// Get and Set JSON methods
|
||||
virtual string Json() = 0; ///< Generate JSON string of this object
|
||||
virtual void SetJson(string value) throw(InvalidJSON) = 0; ///< Load JSON string into this object
|
||||
virtual void SetJson(string value) = 0; ///< Load JSON string into this object
|
||||
virtual Json::Value JsonValue() = 0; ///< Generate Json::JsonValue for this object
|
||||
virtual void SetJsonValue(Json::Value root) = 0; ///< Load Json::JsonValue into this object
|
||||
|
||||
|
||||
@@ -126,9 +126,9 @@ namespace openshot {
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile, ReaderClosed); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -108,9 +108,9 @@ namespace openshot {
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile, ReaderClosed); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace openshot
|
||||
/// frame 1, or it throws one of the following exceptions.
|
||||
/// @param path The folder path / location of a chunk (chunks are stored as folders)
|
||||
/// @param chunk_version Choose the video version / quality (THUMBNAIL, PREVIEW, or FINAL)
|
||||
ChunkReader(string path, ChunkVersion chunk_version) throw(InvalidFile, InvalidJSON);
|
||||
ChunkReader(string path, ChunkVersion chunk_version);
|
||||
|
||||
/// Close the reader
|
||||
void Close();
|
||||
@@ -149,7 +149,7 @@ namespace openshot
|
||||
/// @brief Get an openshot::Frame object for a specific frame number of this reader.
|
||||
/// @returns The requested frame (containing the image and audio)
|
||||
/// @param requested_frame The frame number you want to retrieve
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame) throw(ReaderClosed, ChunkNotFound);
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
|
||||
|
||||
/// Determine if reader is open or closed
|
||||
bool IsOpen() { return is_open; };
|
||||
@@ -159,12 +159,12 @@ namespace openshot
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
/// Open the reader. This is required before you can access frames or data from the reader.
|
||||
void Open() throw(InvalidFile);
|
||||
void Open();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace openshot
|
||||
/// @brief Constructor for ChunkWriter. Throws one of the following exceptions.
|
||||
/// @param path The folder path of the chunk file to be created
|
||||
/// @param reader The initial reader to base this chunk file's meta data on (such as fps, height, width, etc...)
|
||||
ChunkWriter(string path, ReaderBase *reader) throw(InvalidFile, InvalidFormat, InvalidCodec, InvalidOptions, OutOfMemory);
|
||||
ChunkWriter(string path, ReaderBase *reader);
|
||||
|
||||
/// Close the writer
|
||||
void Close();
|
||||
@@ -125,7 +125,7 @@ namespace openshot
|
||||
bool IsOpen() { return is_open; };
|
||||
|
||||
/// Open writer
|
||||
void Open() throw(InvalidFile, InvalidCodec);
|
||||
void Open();
|
||||
|
||||
/// @brief Set the chunk size (number of frames to write in each chunk)
|
||||
/// @param new_size The number of frames to write in this chunk file
|
||||
@@ -133,18 +133,18 @@ namespace openshot
|
||||
|
||||
/// @brief Add a frame to the stack waiting to be encoded.
|
||||
/// @param frame The openshot::Frame object that needs to be written to this chunk file.
|
||||
void WriteFrame(std::shared_ptr<Frame> frame) throw(WriterClosed);
|
||||
void WriteFrame(std::shared_ptr<Frame> frame);
|
||||
|
||||
/// @brief Write a block of frames from a reader
|
||||
/// @param start The starting frame number to write (of the reader passed into the constructor)
|
||||
/// @param length The number of frames to write (of the reader passed into the constructor)
|
||||
void WriteFrame(int64_t start, int64_t length) throw(WriterClosed);
|
||||
void WriteFrame(int64_t start, int64_t length);
|
||||
|
||||
/// @brief Write a block of frames from a reader
|
||||
/// @param reader The reader containing the frames you need
|
||||
/// @param start The starting frame number to write
|
||||
/// @param length The number of frames to write
|
||||
void WriteFrame(ReaderBase* reader, int64_t start, int64_t length) throw(WriterClosed);
|
||||
void WriteFrame(ReaderBase* reader, int64_t start, int64_t length);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace openshot {
|
||||
std::shared_ptr<Frame> GetOrCreateFrame(int64_t number);
|
||||
|
||||
/// Adjust the audio and image of a time mapped frame
|
||||
std::shared_ptr<Frame> get_time_mapped_frame(std::shared_ptr<Frame> frame, int64_t frame_number) throw(ReaderClosed);
|
||||
std::shared_ptr<Frame> get_time_mapped_frame(std::shared_ptr<Frame> frame, int64_t frame_number);
|
||||
|
||||
/// Init default settings for a clip
|
||||
void init_settings();
|
||||
@@ -172,7 +172,7 @@ namespace openshot {
|
||||
void AddEffect(EffectBase* effect);
|
||||
|
||||
/// Close the internal reader
|
||||
void Close() throw(ReaderClosed);
|
||||
void Close();
|
||||
|
||||
/// Return the list of effects on the timeline
|
||||
list<EffectBase*> Effects() { return effects; };
|
||||
@@ -181,25 +181,25 @@ namespace openshot {
|
||||
///
|
||||
/// @returns The requested frame (containing the image)
|
||||
/// @param requested_frame The frame number that is requested
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame) throw(ReaderClosed);
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
|
||||
|
||||
/// Open the internal reader
|
||||
void Open() throw(InvalidFile, ReaderClosed);
|
||||
void Open();
|
||||
|
||||
/// @brief Set the current reader
|
||||
/// @param new_reader The reader to be used by this clip
|
||||
void Reader(ReaderBase* new_reader);
|
||||
|
||||
/// Get the current reader
|
||||
ReaderBase* Reader() throw(ReaderClosed);
|
||||
ReaderBase* Reader();
|
||||
|
||||
/// Override End() method
|
||||
float End() throw(ReaderClosed); ///< Get end position (in seconds) of clip (trim end of video), which can be affected by the time curve.
|
||||
float End(); ///< Get end position (in seconds) of clip (trim end of video), which can be affected by the time curve.
|
||||
void End(float value) { end = value; } ///< Set end position (in seconds) of clip (trim end of video)
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ namespace openshot {
|
||||
|
||||
/// Get and Set JSON methods
|
||||
virtual string Json() = 0; ///< Generate JSON string of this object
|
||||
virtual void SetJson(string value) throw(InvalidJSON) = 0; ///< Load JSON string into this object
|
||||
virtual void SetJson(string value) = 0; ///< Load JSON string into this object
|
||||
virtual Json::Value JsonValue() = 0; ///< Generate Json::JsonValue for this object
|
||||
virtual void SetJsonValue(Json::Value root) = 0; ///< Load Json::JsonValue into this object
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace openshot {
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
};
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace openshot {
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
};
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace openshot
|
||||
|
||||
/// Constructor for DecklinkReader. This automatically opens the device and loads
|
||||
/// the first second of video, or it throws one of the following exceptions.
|
||||
DecklinkReader(int device, int video_mode, int pixel_format, int channels, int sample_depth) throw(DecklinkError);
|
||||
DecklinkReader(int device, int video_mode, int pixel_format, int channels, int sample_depth);
|
||||
~DecklinkReader(); /// Destructor
|
||||
|
||||
/// Close the device and video stream
|
||||
@@ -107,7 +107,7 @@ namespace openshot
|
||||
///
|
||||
/// @returns The requested frame (containing the image)
|
||||
/// @param requested_frame The frame number that is requested.
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame) throw(ReaderClosed);
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
|
||||
unsigned long GetCurrentFrameNumber();
|
||||
|
||||
/// Determine if reader is open or closed
|
||||
@@ -118,12 +118,12 @@ namespace openshot
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
/// Open device and video stream - which is called by the constructor automatically
|
||||
void Open() throw(DecklinkError);
|
||||
void Open();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -90,19 +90,19 @@ namespace openshot
|
||||
|
||||
/// Constructor for DecklinkWriter. This automatically opens the device or it
|
||||
/// throws one of the following exceptions.
|
||||
DecklinkWriter(int device, int video_mode, int pixel_format, int channels, int sample_depth) throw(DecklinkError);
|
||||
DecklinkWriter(int device, int video_mode, int pixel_format, int channels, int sample_depth);
|
||||
|
||||
/// Close the device and video stream
|
||||
void Close();
|
||||
|
||||
/// This method is required for all derived classes of WriterBase. Write a Frame to the video file.
|
||||
void WriteFrame(std::shared_ptr<Frame> frame) throw(WriterClosed);
|
||||
void WriteFrame(std::shared_ptr<Frame> frame);
|
||||
|
||||
/// This method is required for all derived classes of WriterBase. Write a block of frames from a reader.
|
||||
void WriteFrame(ReaderBase* reader, int start, int length) throw(WriterClosed);
|
||||
void WriteFrame(ReaderBase* reader, int start, int length);
|
||||
|
||||
/// Open device and video stream - which is called by the constructor automatically
|
||||
void Open() throw(DecklinkError);
|
||||
void Open();
|
||||
|
||||
/// Determine if writer is open or closed
|
||||
bool IsOpen() { return is_open; };
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace openshot
|
||||
///
|
||||
/// @returns The requested frame (containing the image)
|
||||
/// @param requested_frame The frame number that is requested.
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame) throw(ReaderClosed);
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
|
||||
|
||||
/// Determine if reader is open or closed
|
||||
bool IsOpen() { return is_open; };
|
||||
@@ -85,12 +85,12 @@ namespace openshot
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
/// Open File - which is called by the constructor automatically
|
||||
void Open() throw(InvalidFile);
|
||||
void Open();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace openshot
|
||||
|
||||
/// Get and Set JSON methods
|
||||
virtual string Json() = 0; ///< Generate JSON string of this object
|
||||
virtual void SetJson(string value) throw(InvalidJSON) = 0; ///< Load JSON string into this object
|
||||
virtual void SetJson(string value) = 0; ///< Load JSON string into this object
|
||||
virtual Json::Value JsonValue() = 0; ///< Generate Json::JsonValue for this object
|
||||
virtual void SetJsonValue(Json::Value root) = 0; ///< Load Json::JsonValue into this object
|
||||
Json::Value JsonInfo(); ///< Generate JSON object of meta data / info
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace openshot
|
||||
void RemoveAVPacket(AVPacket*);
|
||||
|
||||
/// Seek to a specific Frame. This is not always frame accurate, it's more of an estimation on many codecs.
|
||||
void Seek(int64_t requested_frame) throw(TooManySeeks);
|
||||
void Seek(int64_t requested_frame);
|
||||
|
||||
/// Update PTS Offset (if any)
|
||||
void UpdatePTSOffset(bool is_video);
|
||||
@@ -227,12 +227,12 @@ namespace openshot
|
||||
|
||||
/// Constructor for FFmpegReader. This automatically opens the media file and loads
|
||||
/// frame 1, or it throws one of the following exceptions.
|
||||
FFmpegReader(string path) throw(InvalidFile, NoStreamsFound, InvalidCodec);
|
||||
FFmpegReader(string path);
|
||||
|
||||
/// Constructor for FFmpegReader. This only opens the media file to inspect it's properties
|
||||
/// if inspect_reader=true. When not inspecting the media file, it's much faster, and useful
|
||||
/// when you are inflating the object using JSON after instantiating it.
|
||||
FFmpegReader(string path, bool inspect_reader) throw(InvalidFile, NoStreamsFound, InvalidCodec);
|
||||
FFmpegReader(string path, bool inspect_reader);
|
||||
|
||||
/// Destructor
|
||||
~FFmpegReader();
|
||||
@@ -247,7 +247,7 @@ namespace openshot
|
||||
///
|
||||
/// @returns The requested frame of video
|
||||
/// @param requested_frame The frame number that is requested.
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame) throw(OutOfBoundsFrame, ReaderClosed, TooManySeeks);
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
|
||||
|
||||
/// Determine if reader is open or closed
|
||||
bool IsOpen() { return is_open; };
|
||||
@@ -257,12 +257,12 @@ namespace openshot
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
/// Open File - which is called by the constructor automatically
|
||||
void Open() throw(InvalidFile, NoStreamsFound, InvalidCodec);
|
||||
void Open();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -241,13 +241,13 @@ namespace openshot
|
||||
bool write_video_packet(std::shared_ptr<Frame> frame, AVFrame* frame_final);
|
||||
|
||||
/// write all queued frames
|
||||
void write_queued_frames() throw (ErrorEncodingVideo);
|
||||
void write_queued_frames();
|
||||
|
||||
public:
|
||||
|
||||
/// @brief Constructor for FFmpegWriter. Throws one of the following exceptions.
|
||||
/// @param path The file path of the video file you want to open and read
|
||||
FFmpegWriter(string path) throw(InvalidFile, InvalidFormat, InvalidCodec, InvalidOptions, OutOfMemory);
|
||||
FFmpegWriter(string path);
|
||||
|
||||
/// Close the writer
|
||||
void Close();
|
||||
@@ -259,7 +259,7 @@ namespace openshot
|
||||
bool IsOpen() { return is_open; };
|
||||
|
||||
/// Open writer
|
||||
void Open() throw(InvalidFile, InvalidFormat, InvalidCodec, InvalidOptions, OutOfMemory, InvalidChannels, InvalidSampleRate);
|
||||
void Open();
|
||||
|
||||
/// Output the ffmpeg info about this format, streams, and codecs (i.e. dump format)
|
||||
void OutputStreamInfo();
|
||||
@@ -283,8 +283,7 @@ namespace openshot
|
||||
/// @param channels The number of audio channels needed in this file
|
||||
/// @param channel_layout The 'layout' of audio channels (i.e. mono, stereo, surround, etc...)
|
||||
/// @param bit_rate The audio bit rate used during encoding
|
||||
void SetAudioOptions(bool has_audio, string codec, int sample_rate, int channels, ChannelLayout channel_layout, int bit_rate)
|
||||
throw(InvalidFile, InvalidFormat, InvalidCodec, InvalidOptions, OutOfMemory, InvalidChannels);
|
||||
void SetAudioOptions(bool has_audio, string codec, int sample_rate, int channels, ChannelLayout channel_layout, int bit_rate);
|
||||
|
||||
/// @brief Set the cache size
|
||||
/// @param new_size The number of frames to queue before writing to the file
|
||||
@@ -300,15 +299,14 @@ namespace openshot
|
||||
/// @param interlaced Does this video need to be interlaced?
|
||||
/// @param top_field_first Which frame should be used as the top field?
|
||||
/// @param bit_rate The video bit rate used during encoding
|
||||
void SetVideoOptions(bool has_video, string codec, Fraction fps, int width, int height,Fraction pixel_ratio, bool interlaced, bool top_field_first, int bit_rate)
|
||||
throw(InvalidFile, InvalidFormat, InvalidCodec, InvalidOptions, OutOfMemory, InvalidChannels);
|
||||
void SetVideoOptions(bool has_video, string codec, Fraction fps, int width, int height,Fraction pixel_ratio, bool interlaced, bool top_field_first, int bit_rate);
|
||||
|
||||
/// @brief Set custom options (some codecs accept additional params). This must be called after the
|
||||
/// PrepareStreams() method, otherwise the streams have not been initialized yet.
|
||||
/// @param stream The stream (openshot::StreamType) this option should apply to
|
||||
/// @param name The name of the option you want to set (i.e. qmin, qmax, etc...)
|
||||
/// @param value The new value of this option
|
||||
void SetOption(StreamType stream, string name, string value) throw(NoStreamsFound, InvalidOptions);
|
||||
void SetOption(StreamType stream, string name, string value);
|
||||
|
||||
/// @brief Write the file header (after the options are set). This method is called automatically
|
||||
/// by the Open() method if this method has not yet been called.
|
||||
@@ -316,13 +314,13 @@ namespace openshot
|
||||
|
||||
/// @brief Add a frame to the stack waiting to be encoded.
|
||||
/// @param frame The openshot::Frame object to write to this image
|
||||
void WriteFrame(std::shared_ptr<Frame> frame) throw(ErrorEncodingVideo, WriterClosed);
|
||||
void WriteFrame(std::shared_ptr<Frame> frame);
|
||||
|
||||
/// @brief Write a block of frames from a reader
|
||||
/// @param reader A openshot::ReaderBase object which will provide frames to be written
|
||||
/// @param start The starting frame number of the reader
|
||||
/// @param length The number of frames to write
|
||||
void WriteFrame(ReaderBase* reader, int64_t start, int64_t length) throw(ErrorEncodingVideo, WriterClosed);
|
||||
void WriteFrame(ReaderBase* reader, int64_t start, int64_t length);
|
||||
|
||||
/// @brief Write the file trailer (after all frames are written). This is called automatically
|
||||
/// by the Close() method if this method has not yet been called.
|
||||
|
||||
@@ -285,7 +285,7 @@ namespace openshot
|
||||
/// Thumbnail the frame image with tons of options to the specified path. The image format is determined from the extension (i.e. image.PNG, image.JPEG).
|
||||
/// This method allows for masks, overlays, background color, and much more accurate resizing (including padding and centering)
|
||||
void Thumbnail(string path, int new_width, int new_height, string mask_path, string overlay_path,
|
||||
string background_color, bool ignore_aspect, string format="png", int quality=100) throw(InvalidFile);
|
||||
string background_color, bool ignore_aspect, string format="png", int quality=100);
|
||||
|
||||
/// Play audio samples for this frame
|
||||
void Play();
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace openshot
|
||||
void Close();
|
||||
|
||||
/// Get a frame based on the target frame rate and the new frame number of a frame
|
||||
MappedFrame GetMappedFrame(int64_t TargetFrameNumber) throw(OutOfBoundsFrame);
|
||||
MappedFrame GetMappedFrame(int64_t TargetFrameNumber);
|
||||
|
||||
/// Get the cache object used by this reader
|
||||
CacheMemory* GetCache() { return &final_cache; };
|
||||
@@ -194,7 +194,7 @@ namespace openshot
|
||||
///
|
||||
/// @returns The requested frame of video
|
||||
/// @param requested_frame The frame number that is requested.
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame) throw(ReaderClosed);
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
|
||||
|
||||
/// Determine if reader is open or closed
|
||||
bool IsOpen();
|
||||
@@ -204,18 +204,18 @@ namespace openshot
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
/// Open the internal reader
|
||||
void Open() throw(InvalidFile);
|
||||
void Open();
|
||||
|
||||
/// Print all of the original frames and which new frames they map to
|
||||
void PrintMapping();
|
||||
|
||||
/// Get the current reader
|
||||
ReaderBase* Reader() throw(ReaderClosed);
|
||||
ReaderBase* Reader();
|
||||
|
||||
/// Resample audio and map channels (if needed)
|
||||
void ResampleMappedAudio(std::shared_ptr<Frame> frame, int64_t original_frame_number);
|
||||
|
||||
@@ -75,12 +75,12 @@ namespace openshot
|
||||
|
||||
/// Constructor for ImageReader. This automatically opens the media file and loads
|
||||
/// frame 1, or it throws one of the following exceptions.
|
||||
ImageReader(string path) throw(InvalidFile);
|
||||
ImageReader(string path);
|
||||
|
||||
/// Constructor for ImageReader. This only opens the media file to inspect it's properties
|
||||
/// if inspect_reader=true. When not inspecting the media file, it's much faster, and useful
|
||||
/// when you are inflating the object using JSON after instantiating it.
|
||||
ImageReader(string path, bool inspect_reader) throw(InvalidFile);
|
||||
ImageReader(string path, bool inspect_reader);
|
||||
|
||||
/// Close File
|
||||
void Close();
|
||||
@@ -93,7 +93,7 @@ namespace openshot
|
||||
///
|
||||
/// @returns The requested frame (containing the image)
|
||||
/// @param requested_frame The frame number that is requested.
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame) throw(ReaderClosed);
|
||||
std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
|
||||
|
||||
/// Determine if reader is open or closed
|
||||
bool IsOpen() { return is_open; };
|
||||
@@ -103,12 +103,12 @@ namespace openshot
|
||||
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJsonValue(Json::Value root) throw(InvalidFile); ///< Load Json::JsonValue into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
/// Open File - which is called by the constructor automatically
|
||||
void Open() throw(InvalidFile);
|
||||
void Open();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace openshot
|
||||
|
||||
/// @brief Constructor for ImageWriter. Throws one of the following exceptions.
|
||||
/// @param path The path of the file you want to create
|
||||
ImageWriter(string path) throw(InvalidFile, InvalidFormat, InvalidCodec, InvalidOptions, OutOfMemory);
|
||||
ImageWriter(string path);
|
||||
|
||||
/// @brief Close the writer and encode/output final image to the disk. This is a requirement of ImageMagick,
|
||||
/// which writes all frames of a multi-frame image at one time.
|
||||
@@ -114,7 +114,7 @@ namespace openshot
|
||||
bool IsOpen() { return is_open; };
|
||||
|
||||
/// Open writer
|
||||
void Open() throw(InvalidFile, InvalidCodec);
|
||||
void Open();
|
||||
|
||||
/// @brief Set the cache size (number of frames to queue before writing)
|
||||
/// @param new_size Number of frames to queue before writing
|
||||
@@ -133,13 +133,13 @@ namespace openshot
|
||||
|
||||
/// @brief Add a frame to the stack waiting to be encoded.
|
||||
/// @param frame The openshot::Frame object to write to this image
|
||||
void WriteFrame(std::shared_ptr<Frame> frame) throw(WriterClosed);
|
||||
void WriteFrame(std::shared_ptr<Frame> frame);
|
||||
|
||||
/// @brief Write a block of frames from a reader
|
||||
/// @param reader A openshot::ReaderBase object which will provide frames to be written
|
||||
/// @param start The starting frame number of the reader
|
||||
/// @param length The number of frames to write
|
||||
void WriteFrame(ReaderBase* reader, int64_t start, int64_t length) throw(WriterClosed);
|
||||
void WriteFrame(ReaderBase* reader, int64_t start, int64_t length);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace openshot {
|
||||
void FlipPoints();
|
||||
|
||||
/// Get the index of a point by matching a coordinate
|
||||
int64_t FindIndex(Point p) throw(OutOfBoundsPoint);
|
||||
int64_t FindIndex(Point p);
|
||||
|
||||
/// Get the value at a specific index
|
||||
double GetValue(int64_t index);
|
||||
@@ -132,7 +132,7 @@ namespace openshot {
|
||||
double GetDelta(int64_t index);
|
||||
|
||||
/// Get a point at a specific index
|
||||
Point& GetPoint(int64_t index) throw(OutOfBoundsPoint);
|
||||
Point& GetPoint(int64_t index);
|
||||
|
||||
/// Get current point (or closest point to the right) from the X coordinate (i.e. the frame number)
|
||||
Point GetClosestPoint(Point p);
|
||||
@@ -159,7 +159,7 @@ namespace openshot {
|
||||
/// Get and Set JSON methods
|
||||
string Json(); ///< Generate JSON string of this object
|
||||
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
|
||||
void SetJson(string value) throw(InvalidJSON); ///< Load JSON string into this object
|
||||
void SetJson(string value); ///< Load JSON string into this object
|
||||
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
|
||||
|
||||
/**
|
||||
@@ -171,10 +171,10 @@ namespace openshot {
|
||||
void Process();
|
||||
|
||||
/// Remove a point by matching a coordinate
|
||||
void RemovePoint(Point p) throw(OutOfBoundsPoint);
|
||||
void RemovePoint(Point p);
|
||||
|
||||
/// Remove a point by index
|
||||
void RemovePoint(int64_t index) throw(OutOfBoundsPoint);
|
||||
void RemovePoint(int64_t index);
|
||||
|
||||
/// Scale all points by a percentage (good for evenly lengthening or shortening an openshot::Keyframe)
|
||||
/// 1.0 = same size, 1.05 = 5% increase, etc...
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user