Struct mlt_sys::mlt_frame_s[][src]

#[repr(C)]
pub struct mlt_frame_s { pub parent: mlt_properties_s, pub get_alpha_mask: Option<unsafe extern "C" fn(self_: mlt_frame) -> *mut u8>, pub convert_image: Option<unsafe extern "C" fn(self_: mlt_frame, image: *mut *mut u8, input: *mut mlt_image_format, output: mlt_image_format) -> c_int>, pub convert_audio: Option<unsafe extern "C" fn(self_: mlt_frame, audio: *mut *mut c_void, input: *mut mlt_audio_format, output: mlt_audio_format) -> c_int>, pub stack_image: mlt_deque, pub stack_audio: mlt_deque, pub stack_service: mlt_deque, pub is_processing: c_int, }

\brief Frame class

The frame is the primary data object that gets passed around to and through services.

\extends mlt_properties \properties \em test_image set if the frame holds a "test card" image \properties \em test_audio set if the frame holds "test card" audio \properties \em _producer holds a reference to the frame's end producer \properties \em _speed the current speed of the producer that generated the frame \properties \em _position the position of the frame \properties \em meta.* holds metadata \properties \em hide set to 1 to hide the video, 2 to mute the audio \properties \em last_track a flag to indicate an end-of-tracks frame \properties \em previous \em frame a reference to the unfiltered preceding frame (no speed factor applied, only available when \em _need_previous_next is set on the producer) \properties \em next \em frame a reference to the unfiltered following frame (no speed factor applied, only available when \em _need_previous_next is set on the producer) \properties \em colorspace the standard for the YUV coefficients \properties \em force_full_luma luma range handling, set to -1 for pass-through, 1 for full range, 0 for scaling \properties \em color_trc the color transfer characteristic (gamma) \properties \em audio_frequency the sample rate of the audio \properties \em audio_channels the number of audio channels \properties \em audio_samples the number of audio samples \properties \em audio_format the mlt_audio_format for the audio on this frame \properties \em format the mlt_image_format of the image on this frame \properties \em width the horizontal resolution of the image \properties \em height the vertical resolution of the image \properties \em aspect_ratio the sample aspect ratio of the image

Fields

< \private A frame extends properties.

Get the alpha channel (callback function). \param self a frame \return the 8-bit alpha channel

Convert the image format (callback function). \param self a frame \param[in,out] image a buffer of image data \param[in,out] input the image format of supplied image data \param output the image format to which to convert \return true if error

Convert the audio format (callback function). \param self a frame \param[in,out] audio a buffer of audio data \param[in,out] input the audio format of supplied data \param output the audio format to which to convert \return true if error

< \private the image processing stack of operations and data

< \private the audio processing stack of operations and data

< \private a general purpose data stack

< \private indicates if a frame is or was processed by the parallel consumer

Trait Implementations

impl Debug for mlt_frame_s
[src]

Formats the value using the given formatter. Read more

impl Copy for mlt_frame_s
[src]

impl Clone for mlt_frame_s
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for mlt_frame_s

impl !Sync for mlt_frame_s