Struct rsmpeg::ffi::AVOutputFormat [−][src]
#[repr(C)]pub struct AVOutputFormat {}Show fields
pub name: *const i8, pub long_name: *const i8, pub mime_type: *const i8, pub extensions: *const i8, pub audio_codec: u32, pub video_codec: u32, pub subtitle_codec: u32, pub flags: i32, pub codec_tag: *const *const AVCodecTag, pub priv_class: *const AVClass, pub next: *mut AVOutputFormat, pub priv_data_size: i32, pub write_header: Option<unsafe extern "C" fn(*mut AVFormatContext) -> i32>, pub write_packet: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVPacket) -> i32>, pub write_trailer: Option<unsafe extern "C" fn(*mut AVFormatContext) -> i32>, pub interleave_packet: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVPacket, *mut AVPacket, i32) -> i32>, pub query_codec: Option<unsafe extern "C" fn(u32, i32) -> i32>, pub get_output_timestamp: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut i64, *mut i64)>, pub control_message: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut c_void, u64) -> i32>, pub write_uncoded_frame: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut *mut AVFrame, u32) -> i32>, pub get_device_list: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVDeviceInfoList) -> i32>, pub create_device_capabilities: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVDeviceCapabilitiesQuery) -> i32>, pub free_device_capabilities: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVDeviceCapabilitiesQuery) -> i32>, pub data_codec: u32, pub init: Option<unsafe extern "C" fn(*mut AVFormatContext) -> i32>, pub deinit: Option<unsafe extern "C" fn(*mut AVFormatContext)>, pub check_bitstream: Option<unsafe extern "C" fn(*mut AVFormatContext, *const AVPacket) -> i32>,
Expand description
@addtogroup lavf_encoding @{
Fields
name: *const i8
long_name: *const i8
Expand description
Descriptive name for the format, meant to be more human-readable than name. You should use the NULL_IF_CONFIG_SMALL() macro to define it.
mime_type: *const i8
extensions: *const i8
Expand description
< comma-separated filename extensions
audio_codec: u32
Expand description
< default audio codec
video_codec: u32
Expand description
< default video codec
subtitle_codec: u32
Expand description
< default subtitle codec
flags: i32
Expand description
can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_GLOBALHEADER, AVFMT_NOTIMESTAMPS, AVFMT_VARIABLE_FPS, AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS, AVFMT_ALLOW_FLUSH, AVFMT_TS_NONSTRICT, AVFMT_TS_NEGATIVE
codec_tag: *const *const AVCodecTag
Expand description
List of supported codec_id-codec_tag pairs, ordered by “better choice first”. The arrays are all terminated by AV_CODEC_ID_NONE.
priv_class: *const AVClass
Expand description
< AVClass for the private context
next: *mut AVOutputFormat
priv_data_size: i32
Expand description
size of private data so that it can be allocated in the wrapper
write_header: Option<unsafe extern "C" fn(*mut AVFormatContext) -> i32>
write_packet: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVPacket) -> i32>
Expand description
Write a packet. If AVFMT_ALLOW_FLUSH is set in flags, pkt can be NULL in order to flush data buffered in the muxer. When flushing, return 0 if there still is more data to flush, or 1 if everything was flushed and there is no more buffered data.
write_trailer: Option<unsafe extern "C" fn(*mut AVFormatContext) -> i32>
interleave_packet: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVPacket, *mut AVPacket, i32) -> i32>
Expand description
A format-specific function for interleavement. If unset, packets will be interleaved by dts.
query_codec: Option<unsafe extern "C" fn(u32, i32) -> i32>
Expand description
Test if the given codec can be stored in this container.
@return 1 if the codec is supported, 0 if it is not. A negative number if unknown. MKTAG(‘A’, ‘P’, ‘I’, ‘C’) if the codec is only supported as AV_DISPOSITION_ATTACHED_PIC
get_output_timestamp: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut i64, *mut i64)>
control_message: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut c_void, u64) -> i32>
Expand description
Allows sending messages from application to device.
write_uncoded_frame: Option<unsafe extern "C" fn(*mut AVFormatContext, i32, *mut *mut AVFrame, u32) -> i32>
Expand description
Write an uncoded AVFrame.
See av_write_uncoded_frame() for details.
The library will free *frame afterwards, but the muxer can prevent it by setting the pointer to NULL.
get_device_list: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVDeviceInfoList) -> i32>
Expand description
Returns device list with it properties. @see avdevice_list_devices() for more details.
create_device_capabilities: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVDeviceCapabilitiesQuery) -> i32>
Expand description
Initialize device capabilities submodule. @see avdevice_capabilities_create() for more details.
free_device_capabilities: Option<unsafe extern "C" fn(*mut AVFormatContext, *mut AVDeviceCapabilitiesQuery) -> i32>
Expand description
Free device capabilities submodule. @see avdevice_capabilities_free() for more details.
data_codec: u32
Expand description
< default data codec
init: Option<unsafe extern "C" fn(*mut AVFormatContext) -> i32>
Expand description
Initialize format. May allocate data here, and set any AVFormatContext or AVStream parameters that need to be set before packets are sent. This method must not write output.
Return 0 if streams were fully configured, 1 if not, negative AVERROR on failure
Any allocations made here must be freed in deinit().
deinit: Option<unsafe extern "C" fn(*mut AVFormatContext)>
Expand description
Deinitialize format. If present, this is called whenever the muxer is being destroyed, regardless of whether or not the header has been written.
If a trailer is being written, this is called after write_trailer().
This is called if init() fails as well.
check_bitstream: Option<unsafe extern "C" fn(*mut AVFormatContext, *const AVPacket) -> i32>
Expand description
Set up any necessary bitstream filtering and extract any extra data needed for the global header. Return 0 if more packets from this stream must be checked; 1 if not.
Trait Implementations
impl Clone for AVOutputFormat
[src]
impl Clone for AVOutputFormat
[src]pub fn clone(&self) -> AVOutputFormat
[src]
pub fn clone(&self) -> AVOutputFormat
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AVOutputFormat
[src]
impl Debug for AVOutputFormat
[src]impl Copy for AVOutputFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for AVOutputFormat
impl !Send for AVOutputFormat
impl !Sync for AVOutputFormat
impl Unpin for AVOutputFormat
impl UnwindSafe for AVOutputFormat
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more