Documentation ¶
Overview ¶
package ffmpeg provides partial bindings for libavcodec and libavformat.
Index ¶
- func AVCodecVersion() (uint16, uint8, uint8)
- func AVFormatVersion() (uint16, uint8, uint8)
- type AVError
- type CodecCtx
- type Filter
- type FilterInput
- type FormatCtx
- type Frame
- func (f Frame) ClearTimestamp()
- func (f Frame) FillRGBA(w, h int) error
- func (f Frame) FillWhite(w, h int) error
- func (f Frame) FillYCbCr(w, h int, ratio image.YCbCrSubsampleRatio) error
- func (f Frame) FillYCbCr420(w, h int) error
- func (f Frame) Free()
- func (f Frame) GoImg() image.Image
- func (f Frame) HasAlpha() bool
- func (f Frame) Scale(t Frame, flags SWSFlag) error
- func (f Frame) SetSize(width int, height int)
- func (f Frame) Size() (width int, height int)
- type MediaType
- type SWSFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AVCodecVersion ¶
AVCodecVersion return the LIBAVCODEC_VERSION constant
func AVFormatVersion ¶
AVFormatVersion returns the LIBAVFORMAT_VERSION constant
Types ¶
type Filter ¶
type Filter uintptr
func MakeFilter ¶
type FilterInput ¶
type FilterInput uintptr
func (FilterInput) Add ¶
func (f FilterInput) Add(frame Frame) error
func (FilterInput) Free ¶
func (f FilterInput) Free()
type FormatCtx ¶
type FormatCtx uintptr
func OpenFormatFile ¶
func (FormatCtx) SetDiscard ¶
func (f FormatCtx) SetDiscard()
type Frame ¶
type Frame uintptr
func (Frame) ClearTimestamp ¶
func (f Frame) ClearTimestamp()
func (Frame) FillYCbCr420 ¶
type MediaType ¶
type MediaType C.enum_AVMediaType
const ( MediaTypeUnkown MediaType = C.AVMEDIA_TYPE_UNKNOWN MediaTypeVideo MediaType = C.AVMEDIA_TYPE_VIDEO MediaTypeAudio MediaType = C.AVMEDIA_TYPE_AUDIO MediaTypeData MediaType = C.AVMEDIA_TYPE_DATA MediaTypeSubtitle MediaType = C.AVMEDIA_TYPE_SUBTITLE MediaTypeAttachment MediaType = C.AVMEDIA_TYPE_ATTACHMENT MediaTypeNb MediaType = C.AVMEDIA_TYPE_NB )
type SWSFlag ¶
type SWSFlag int
const ( SWSFastBilinear SWSFlag = C.SWS_FAST_BILINEAR SWSBilinear SWSFlag = C.SWS_BILINEAR SWSBicubic SWSFlag = C.SWS_BICUBIC SWSX SWSFlag = C.SWS_X SWSPoint SWSFlag = C.SWS_POINT SWSArea SWSFlag = C.SWS_AREA SWSBicublin SWSFlag = C.SWS_BICUBLIN SWSGuass SWSFlag = C.SWS_GAUSS SWSSinc SWSFlag = C.SWS_SINC SWSLanczos SWSFlag = C.SWS_LANCZOS SWSSpline SWSFlag = C.SWS_SPLINE )
Click to show internal directories.
Click to hide internal directories.