Documentation ¶
Overview ¶
Package avdevice deals with the input and output devices provided by the libavdevice library The libavdevice library provides the same interface as libavformat. Namely, an input device is considered like a demuxer, and an output device like a muxer, and the interface and generic device options are the same provided by libavformat
Index ¶
- func AvdeviceAppToDevControlMessage(s *AvFormatContext, m AvAppToDevMessageType, da int, d uintptr) int
- func AvdeviceCapabilitiesCreate(c **AvDeviceCapabilitiesQuery, s *AvFormatContext, d **Dictionary) int
- func AvdeviceCapabilitiesFree(c **AvDeviceCapabilitiesQuery, s *AvFormatContext)
- func AvdeviceConfiguration() string
- func AvdeviceDevToAppControlMessage(fcxt *AvFormatContext, m AvDevToAppMessageType, da int, d uintptr) int
- func AvdeviceFreeListDevices(d **AvDeviceInfoList)
- func AvdeviceLicense() string
- func AvdeviceListDevices(s *AvFormatContext, d **AvDeviceInfoList) int
- func AvdeviceRegisterAll()
- func AvdeviceVersion() uint
- type AvAppToDevMessageType
- type AvDevToAppMessageType
- type AvDeviceCapabilitiesQuery
- type AvDeviceInfo
- type AvDeviceInfoList
- type AvDeviceRect
- type AvFormatContext
- type Dictionary
- type InputFormat
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvdeviceAppToDevControlMessage ¶
func AvdeviceAppToDevControlMessage(s *AvFormatContext, m AvAppToDevMessageType, da int, d uintptr) int
Send control message from application to device.
func AvdeviceCapabilitiesCreate ¶
func AvdeviceCapabilitiesCreate(c **AvDeviceCapabilitiesQuery, s *AvFormatContext, d **Dictionary) int
Initialize capabilities probing API based on AvOption API.
func AvdeviceCapabilitiesFree ¶
func AvdeviceCapabilitiesFree(c **AvDeviceCapabilitiesQuery, s *AvFormatContext)
Free resources created by avdevice_capabilities_create()
func AvdeviceConfiguration ¶
func AvdeviceConfiguration() string
Return the libavdevice build-time configuration.
func AvdeviceDevToAppControlMessage ¶
func AvdeviceDevToAppControlMessage(fcxt *AvFormatContext, m AvDevToAppMessageType, da int, d uintptr) int
Send control message from device to application.
func AvdeviceFreeListDevices ¶
func AvdeviceFreeListDevices(d **AvDeviceInfoList)
Convenient function to free result of avdeviceListDevices().
func AvdeviceListDevices ¶
func AvdeviceListDevices(s *AvFormatContext, d **AvDeviceInfoList) int
List devices.
func AvdeviceRegisterAll ¶
func AvdeviceRegisterAll()
Initialize libavdevice and register all the input and output devices.
Types ¶
type AvAppToDevMessageType ¶
type AvAppToDevMessageType C.enum_AVAppToDevMessageType
type AvDevToAppMessageType ¶
type AvDevToAppMessageType C.enum_AVDevToAppMessageType
type AvDeviceCapabilitiesQuery ¶
type AvDeviceCapabilitiesQuery C.struct_AVDeviceCapabilitiesQuery
type AvDeviceInfo ¶
type AvDeviceInfo C.struct_AVDeviceInfo
type AvDeviceInfoList ¶
type AvDeviceInfoList C.struct_AVDeviceInfoList
type AvDeviceRect ¶
type AvDeviceRect C.struct_AVDeviceRect
type AvFormatContext ¶
type AvFormatContext C.struct_AVFormatContext
type Dictionary ¶
type Dictionary C.struct_AVDictionary
type InputFormat ¶
type InputFormat C.struct_AVInputFormat
func (*InputFormat) AvInputAudioDeviceNext ¶
func (d *InputFormat) AvInputAudioDeviceNext() *InputFormat
Audio input devices iterator.
func (*InputFormat) AvInputVideoDeviceNext ¶
func (d *InputFormat) AvInputVideoDeviceNext() *InputFormat
Video input devices iterator.
type OutputFormat ¶
type OutputFormat C.struct_AVOutputFormat
func (*OutputFormat) AvOutputAudioDeviceNext ¶
func (d *OutputFormat) AvOutputAudioDeviceNext() *OutputFormat
Audio output devices iterator.
func (*OutputFormat) AvOutputVideoDeviceNext ¶
func (d *OutputFormat) AvOutputVideoDeviceNext() *OutputFormat
Video output devices iterator.