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 i8long_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 i8extensions: *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 AVOutputFormatpriv_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]

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]

Performs copy-assignment from source. Read more

impl Debug for AVOutputFormat[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Copy for AVOutputFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.