avutil

package
v0.0.0-...-ed0502f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package avutil is a utility library to aid portable multimedia programming. It contains safe portable string functions, random number generators, data structures, additional mathematics functions, cryptography and multimedia related functionality. Some generic features and utilities provided by the libavutil library

Index

Constants

View Source
const (
	AVMEDIA_TYPE_UNKNOWN    = C.AVMEDIA_TYPE_UNKNOWN
	AVMEDIA_TYPE_VIDEO      = C.AVMEDIA_TYPE_VIDEO
	AVMEDIA_TYPE_AUDIO      = C.AVMEDIA_TYPE_AUDIO
	AVMEDIA_TYPE_DATA       = C.AVMEDIA_TYPE_DATA
	AVMEDIA_TYPE_SUBTITLE   = C.AVMEDIA_TYPE_SUBTITLE
	AVMEDIA_TYPE_ATTACHMENT = C.AVMEDIA_TYPE_ATTACHMENT
	AVMEDIA_TYPE_NB         = C.AVMEDIA_TYPE_NB
)
View Source
const (
	AV_PIX_FMT_NONE            = PixelFormat(C.AV_PIX_FMT_NONE)
	AV_PIX_FMT_YUV420P         = PixelFormat(C.AV_PIX_FMT_YUV420P)
	AV_PIX_FMT_YUYV422         = PixelFormat(C.AV_PIX_FMT_YUYV422)
	AV_PIX_FMT_RGB24           = PixelFormat(C.AV_PIX_FMT_RGB24)
	AV_PIX_FMT_BGR24           = PixelFormat(C.AV_PIX_FMT_BGR24)
	AV_PIX_FMT_YUV422P         = PixelFormat(C.AV_PIX_FMT_YUV422P)
	AV_PIX_FMT_YUV444P         = PixelFormat(C.AV_PIX_FMT_YUV444P)
	AV_PIX_FMT_YUV410P         = PixelFormat(C.AV_PIX_FMT_YUV410P)
	AV_PIX_FMT_YUV411P         = PixelFormat(C.AV_PIX_FMT_YUV411P)
	AV_PIX_FMT_GRAY8           = PixelFormat(C.AV_PIX_FMT_GRAY8)
	AV_PIX_FMT_MONOWHITE       = PixelFormat(C.AV_PIX_FMT_MONOWHITE)
	AV_PIX_FMT_MONOBLACK       = PixelFormat(C.AV_PIX_FMT_MONOBLACK)
	AV_PIX_FMT_PAL8            = PixelFormat(C.AV_PIX_FMT_PAL8)
	AV_PIX_FMT_YUVJ420P        = PixelFormat(C.AV_PIX_FMT_YUVJ420P)
	AV_PIX_FMT_YUVJ422P        = PixelFormat(C.AV_PIX_FMT_YUVJ422P)
	AV_PIX_FMT_YUVJ444P        = PixelFormat(C.AV_PIX_FMT_YUVJ444P)
	AV_PIX_FMT_XVMC_MPEG2_MC   = PixelFormat(C.AV_PIX_FMT_XVMC_MPEG2_MC)
	AV_PIX_FMT_XVMC_MPEG2_IDCT = PixelFormat(C.AV_PIX_FMT_XVMC_MPEG2_IDCT)
	AV_PIX_FMT_UYVY422         = PixelFormat(C.AV_PIX_FMT_UYVY422)
	AV_PIX_FMT_UYYVYY411       = PixelFormat(C.AV_PIX_FMT_UYYVYY411)
	AV_PIX_FMT_BGR8            = PixelFormat(C.AV_PIX_FMT_BGR8)
	AV_PIX_FMT_BGR4            = PixelFormat(C.AV_PIX_FMT_BGR4)
	AV_PIX_FMT_BGR4_BYTE       = PixelFormat(C.AV_PIX_FMT_BGR4_BYTE)
	AV_PIX_FMT_RGB8            = PixelFormat(C.AV_PIX_FMT_RGB8)
	AV_PIX_FMT_RGB4            = PixelFormat(C.AV_PIX_FMT_RGB4)
	AV_PIX_FMT_RGB4_BYTE       = PixelFormat(C.AV_PIX_FMT_RGB4_BYTE)
	AV_PIX_FMT_NV12            = PixelFormat(C.AV_PIX_FMT_NV12)
	AV_PIX_FMT_NV21            = PixelFormat(C.AV_PIX_FMT_NV21)
	AV_PIX_FMT_ARGB            = PixelFormat(C.AV_PIX_FMT_ARGB)
	AV_PIX_FMT_RGBA            = PixelFormat(C.AV_PIX_FMT_RGBA)
	AV_PIX_FMT_ABGR            = PixelFormat(C.AV_PIX_FMT_ABGR)
	AV_PIX_FMT_BGRA            = PixelFormat(C.AV_PIX_FMT_BGRA)
	AV_PIX_FMT_GRAY16BE        = PixelFormat(C.AV_PIX_FMT_GRAY16BE)
	AV_PIX_FMT_GRAY16LE        = PixelFormat(C.AV_PIX_FMT_GRAY16LE)
	AV_PIX_FMT_YUV440P         = PixelFormat(C.AV_PIX_FMT_YUV440P)
	AV_PIX_FMT_YUVJ440P        = PixelFormat(C.AV_PIX_FMT_YUVJ440P)
	AV_PIX_FMT_YUVA420P        = PixelFormat(C.AV_PIX_FMT_YUVA420P)
	AV_PIX_FMT_VDPAU_H264      = PixelFormat(C.AV_PIX_FMT_VDPAU_H264)
	AV_PIX_FMT_VDPAU_MPEG1     = PixelFormat(C.AV_PIX_FMT_VDPAU_MPEG1)
	AV_PIX_FMT_VDPAU_MPEG2     = PixelFormat(C.AV_PIX_FMT_VDPAU_MPEG2)
	AV_PIX_FMT_VDPAU_WMV3      = PixelFormat(C.AV_PIX_FMT_VDPAU_WMV3)
	AV_PIX_FMT_VDPAU_VC1       = PixelFormat(C.AV_PIX_FMT_VDPAU_VC1)
	AV_PIX_FMT_RGB48BE         = PixelFormat(C.AV_PIX_FMT_RGB48BE)
	AV_PIX_FMT_RGB48LE         = PixelFormat(C.AV_PIX_FMT_RGB48LE)
	AV_PIX_FMT_RGB565BE        = PixelFormat(C.AV_PIX_FMT_RGB565BE)
	AV_PIX_FMT_RGB565LE        = PixelFormat(C.AV_PIX_FMT_RGB565LE)
	AV_PIX_FMT_RGB555BE        = PixelFormat(C.AV_PIX_FMT_RGB555BE)
	AV_PIX_FMT_RGB555LE        = PixelFormat(C.AV_PIX_FMT_RGB555LE)
	AV_PIX_FMT_BGR565BE        = PixelFormat(C.AV_PIX_FMT_BGR565BE)
	AV_PIX_FMT_BGR565LE        = PixelFormat(C.AV_PIX_FMT_BGR565LE)
	AV_PIX_FMT_BGR555BE        = PixelFormat(C.AV_PIX_FMT_BGR555BE)
	AV_PIX_FMT_BGR555LE        = PixelFormat(C.AV_PIX_FMT_BGR555LE)
	AV_PIX_FMT_VAAPI_MOCO      = PixelFormat(C.AV_PIX_FMT_VAAPI_MOCO)
	AV_PIX_FMT_VAAPI_IDCT      = PixelFormat(C.AV_PIX_FMT_VAAPI_IDCT)
	AV_PIX_FMT_VAAPI_VLD       = PixelFormat(C.AV_PIX_FMT_VAAPI_VLD)
	AV_PIX_FMT_VAAPI           = PixelFormat(C.AV_PIX_FMT_VAAPI)
	AV_PIX_FMT_YUV420P16LE     = PixelFormat(C.AV_PIX_FMT_YUV420P16LE)
	AV_PIX_FMT_YUV420P16BE     = PixelFormat(C.AV_PIX_FMT_YUV420P16BE)
	AV_PIX_FMT_YUV422P16LE     = PixelFormat(C.AV_PIX_FMT_YUV422P16LE)
	AV_PIX_FMT_YUV422P16BE     = PixelFormat(C.AV_PIX_FMT_YUV422P16BE)
	AV_PIX_FMT_YUV444P16LE     = PixelFormat(C.AV_PIX_FMT_YUV444P16LE)
	AV_PIX_FMT_YUV444P16BE     = PixelFormat(C.AV_PIX_FMT_YUV444P16BE)
	AV_PIX_FMT_VDPAU_MPEG4     = PixelFormat(C.AV_PIX_FMT_VDPAU_MPEG4)
	AV_PIX_FMT_DXVA2_VLD       = PixelFormat(C.AV_PIX_FMT_DXVA2_VLD)
	AV_PIX_FMT_RGB444LE        = PixelFormat(C.AV_PIX_FMT_RGB444LE)
	AV_PIX_FMT_RGB444BE        = PixelFormat(C.AV_PIX_FMT_RGB444BE)
	AV_PIX_FMT_BGR444LE        = PixelFormat(C.AV_PIX_FMT_BGR444LE)
	AV_PIX_FMT_BGR444BE        = PixelFormat(C.AV_PIX_FMT_BGR444BE)
	AV_PIX_FMT_YA8             = PixelFormat(C.AV_PIX_FMT_YA8)
	AV_PIX_FMT_Y400A           = PixelFormat(C.AV_PIX_FMT_Y400A)
	AV_PIX_FMT_GRAY8A          = PixelFormat(C.AV_PIX_FMT_GRAY8A)
	AV_PIX_FMT_BGR48BE         = PixelFormat(C.AV_PIX_FMT_BGR48BE)
	AV_PIX_FMT_BGR48LE         = PixelFormat(C.AV_PIX_FMT_BGR48LE)
	AV_PIX_FMT_YUV420P9BE      = PixelFormat(C.AV_PIX_FMT_YUV420P9BE)
	AV_PIX_FMT_YUV420P9LE      = PixelFormat(C.AV_PIX_FMT_YUV420P9LE)
	AV_PIX_FMT_YUV420P10BE     = PixelFormat(C.AV_PIX_FMT_YUV420P10BE)
	AV_PIX_FMT_YUV420P10LE     = PixelFormat(C.AV_PIX_FMT_YUV420P10LE)
	AV_PIX_FMT_YUV422P10BE     = PixelFormat(C.AV_PIX_FMT_YUV422P10BE)
	AV_PIX_FMT_YUV422P10LE     = PixelFormat(C.AV_PIX_FMT_YUV422P10LE)
	AV_PIX_FMT_YUV444P9BE      = PixelFormat(C.AV_PIX_FMT_YUV444P9BE)
	AV_PIX_FMT_YUV444P9LE      = PixelFormat(C.AV_PIX_FMT_YUV444P9LE)
	AV_PIX_FMT_YUV444P10BE     = PixelFormat(C.AV_PIX_FMT_YUV444P10BE)
	AV_PIX_FMT_YUV444P10LE     = PixelFormat(C.AV_PIX_FMT_YUV444P10LE)
	AV_PIX_FMT_YUV422P9BE      = PixelFormat(C.AV_PIX_FMT_YUV422P9BE)
	AV_PIX_FMT_YUV422P9LE      = PixelFormat(C.AV_PIX_FMT_YUV422P9LE)
	AV_PIX_FMT_VDA_VLD         = PixelFormat(C.AV_PIX_FMT_VDA_VLD)
	AV_PIX_FMT_GBRP            = PixelFormat(C.AV_PIX_FMT_GBRP)
	AV_PIX_FMT_GBRP9BE         = PixelFormat(C.AV_PIX_FMT_GBRP9BE)
	AV_PIX_FMT_GBRP9LE         = PixelFormat(C.AV_PIX_FMT_GBRP9LE)
	AV_PIX_FMT_GBRP10BE        = PixelFormat(C.AV_PIX_FMT_GBRP10BE)
	AV_PIX_FMT_GBRP10LE        = PixelFormat(C.AV_PIX_FMT_GBRP10LE)
	AV_PIX_FMT_GBRP16BE        = PixelFormat(C.AV_PIX_FMT_GBRP16BE)
	AV_PIX_FMT_GBRP16LE        = PixelFormat(C.AV_PIX_FMT_GBRP16LE)
	AV_PIX_FMT_YUVA422P        = PixelFormat(C.AV_PIX_FMT_YUVA422P)
	AV_PIX_FMT_YUVA444P        = PixelFormat(C.AV_PIX_FMT_YUVA444P)
	AV_PIX_FMT_YUVA420P9BE     = PixelFormat(C.AV_PIX_FMT_YUVA420P9BE)
	AV_PIX_FMT_YUVA420P9LE     = PixelFormat(C.AV_PIX_FMT_YUVA420P9LE)
	AV_PIX_FMT_YUVA422P9BE     = PixelFormat(C.AV_PIX_FMT_YUVA422P9BE)
	AV_PIX_FMT_YUVA422P9LE     = PixelFormat(C.AV_PIX_FMT_YUVA422P9LE)
	AV_PIX_FMT_YUVA444P9BE     = PixelFormat(C.AV_PIX_FMT_YUVA444P9BE)
	AV_PIX_FMT_YUVA444P9LE     = PixelFormat(C.AV_PIX_FMT_YUVA444P9LE)
	AV_PIX_FMT_YUVA420P10BE    = PixelFormat(C.AV_PIX_FMT_YUVA420P10BE)
	AV_PIX_FMT_YUVA420P10LE    = PixelFormat(C.AV_PIX_FMT_YUVA420P10LE)
	AV_PIX_FMT_YUVA422P10BE    = PixelFormat(C.AV_PIX_FMT_YUVA422P10BE)
	AV_PIX_FMT_YUVA422P10LE    = PixelFormat(C.AV_PIX_FMT_YUVA422P10LE)
	AV_PIX_FMT_YUVA444P10BE    = PixelFormat(C.AV_PIX_FMT_YUVA444P10BE)
	AV_PIX_FMT_YUVA444P10LE    = PixelFormat(C.AV_PIX_FMT_YUVA444P10LE)
	AV_PIX_FMT_YUVA420P16BE    = PixelFormat(C.AV_PIX_FMT_YUVA420P16BE)
	AV_PIX_FMT_YUVA420P16LE    = PixelFormat(C.AV_PIX_FMT_YUVA420P16LE)
	AV_PIX_FMT_YUVA422P16BE    = PixelFormat(C.AV_PIX_FMT_YUVA422P16BE)
	AV_PIX_FMT_YUVA422P16LE    = PixelFormat(C.AV_PIX_FMT_YUVA422P16LE)
	AV_PIX_FMT_YUVA444P16BE    = PixelFormat(C.AV_PIX_FMT_YUVA444P16BE)
	AV_PIX_FMT_YUVA444P16LE    = PixelFormat(C.AV_PIX_FMT_YUVA444P16LE)
	AV_PIX_FMT_VDPAU           = PixelFormat(C.AV_PIX_FMT_VDPAU)
	AV_PIX_FMT_XYZ12LE         = PixelFormat(C.AV_PIX_FMT_XYZ12LE)
	AV_PIX_FMT_XYZ12BE         = PixelFormat(C.AV_PIX_FMT_XYZ12BE)
	AV_PIX_FMT_NV16            = PixelFormat(C.AV_PIX_FMT_NV16)
	AV_PIX_FMT_NV20LE          = PixelFormat(C.AV_PIX_FMT_NV20LE)
	AV_PIX_FMT_NV20BE          = PixelFormat(C.AV_PIX_FMT_NV20BE)
	AV_PIX_FMT_RGBA64BE        = PixelFormat(C.AV_PIX_FMT_RGBA64BE)
	AV_PIX_FMT_RGBA64LE        = PixelFormat(C.AV_PIX_FMT_RGBA64LE)
	AV_PIX_FMT_BGRA64BE        = PixelFormat(C.AV_PIX_FMT_BGRA64BE)
	AV_PIX_FMT_BGRA64LE        = PixelFormat(C.AV_PIX_FMT_BGRA64LE)
	AV_PIX_FMT_YVYU422         = PixelFormat(C.AV_PIX_FMT_YVYU422)
	AV_PIX_FMT_VDA             = PixelFormat(C.AV_PIX_FMT_VDA)
	AV_PIX_FMT_YA16BE          = PixelFormat(C.AV_PIX_FMT_YA16BE)
	AV_PIX_FMT_YA16LE          = PixelFormat(C.AV_PIX_FMT_YA16LE)
	AV_PIX_FMT_GBRAP           = PixelFormat(C.AV_PIX_FMT_GBRAP)
	AV_PIX_FMT_GBRAP16BE       = PixelFormat(C.AV_PIX_FMT_GBRAP16BE)
	AV_PIX_FMT_GBRAP16LE       = PixelFormat(C.AV_PIX_FMT_GBRAP16LE)
	AV_PIX_FMT_QSV             = PixelFormat(C.AV_PIX_FMT_QSV)
	AV_PIX_FMT_MMAL            = PixelFormat(C.AV_PIX_FMT_MMAL)
	AV_PIX_FMT_D3D11VA_VLD     = PixelFormat(C.AV_PIX_FMT_D3D11VA_VLD)
	AV_PIX_FMT_CUDA            = PixelFormat(C.AV_PIX_FMT_CUDA)
	AV_PIX_FMT_0RGB            = PixelFormat(C.AV_PIX_FMT_0RGB)
	AV_PIX_FMT_RGB0            = PixelFormat(C.AV_PIX_FMT_RGB0)
	AV_PIX_FMT_0BGR            = PixelFormat(C.AV_PIX_FMT_0BGR)
	AV_PIX_FMT_BGR0            = PixelFormat(C.AV_PIX_FMT_BGR0)
	AV_PIX_FMT_YUV420P12BE     = PixelFormat(C.AV_PIX_FMT_YUV420P12BE)
	AV_PIX_FMT_YUV420P12LE     = PixelFormat(C.AV_PIX_FMT_YUV420P12LE)
	AV_PIX_FMT_YUV420P14BE     = PixelFormat(C.AV_PIX_FMT_YUV420P14BE)
	AV_PIX_FMT_YUV420P14LE     = PixelFormat(C.AV_PIX_FMT_YUV420P14LE)
	AV_PIX_FMT_YUV422P12BE     = PixelFormat(C.AV_PIX_FMT_YUV422P12BE)
	AV_PIX_FMT_YUV422P12LE     = PixelFormat(C.AV_PIX_FMT_YUV422P12LE)
	AV_PIX_FMT_YUV422P14BE     = PixelFormat(C.AV_PIX_FMT_YUV422P14BE)
	AV_PIX_FMT_YUV422P14LE     = PixelFormat(C.AV_PIX_FMT_YUV422P14LE)
	AV_PIX_FMT_YUV444P12BE     = PixelFormat(C.AV_PIX_FMT_YUV444P12BE)
	AV_PIX_FMT_YUV444P12LE     = PixelFormat(C.AV_PIX_FMT_YUV444P12LE)
	AV_PIX_FMT_YUV444P14BE     = PixelFormat(C.AV_PIX_FMT_YUV444P14BE)
	AV_PIX_FMT_YUV444P14LE     = PixelFormat(C.AV_PIX_FMT_YUV444P14LE)
	AV_PIX_FMT_GBRP12BE        = PixelFormat(C.AV_PIX_FMT_GBRP12BE)
	AV_PIX_FMT_GBRP12LE        = PixelFormat(C.AV_PIX_FMT_GBRP12LE)
	AV_PIX_FMT_GBRP14BE        = PixelFormat(C.AV_PIX_FMT_GBRP14BE)
	AV_PIX_FMT_GBRP14LE        = PixelFormat(C.AV_PIX_FMT_GBRP14LE)
	AV_PIX_FMT_YUVJ411P        = PixelFormat(C.AV_PIX_FMT_YUVJ411P)
	AV_PIX_FMT_BAYER_BGGR8     = PixelFormat(C.AV_PIX_FMT_BAYER_BGGR8)
	AV_PIX_FMT_BAYER_RGGB8     = PixelFormat(C.AV_PIX_FMT_BAYER_RGGB8)
	AV_PIX_FMT_BAYER_GBRG8     = PixelFormat(C.AV_PIX_FMT_BAYER_GBRG8)
	AV_PIX_FMT_BAYER_GRBG8     = PixelFormat(C.AV_PIX_FMT_BAYER_GRBG8)
	AV_PIX_FMT_BAYER_BGGR16LE  = PixelFormat(C.AV_PIX_FMT_BAYER_BGGR16LE)
	AV_PIX_FMT_BAYER_BGGR16BE  = PixelFormat(C.AV_PIX_FMT_BAYER_BGGR16BE)
	AV_PIX_FMT_BAYER_RGGB16LE  = PixelFormat(C.AV_PIX_FMT_BAYER_RGGB16LE)
	AV_PIX_FMT_BAYER_RGGB16BE  = PixelFormat(C.AV_PIX_FMT_BAYER_RGGB16BE)
	AV_PIX_FMT_BAYER_GBRG16LE  = PixelFormat(C.AV_PIX_FMT_BAYER_GBRG16LE)
	AV_PIX_FMT_BAYER_GBRG16BE  = PixelFormat(C.AV_PIX_FMT_BAYER_GBRG16BE)
	AV_PIX_FMT_BAYER_GRBG16LE  = PixelFormat(C.AV_PIX_FMT_BAYER_GRBG16LE)
	AV_PIX_FMT_BAYER_GRBG16BE  = PixelFormat(C.AV_PIX_FMT_BAYER_GRBG16BE)
	AV_PIX_FMT_YUV440P10LE     = PixelFormat(C.AV_PIX_FMT_YUV440P10LE)
	AV_PIX_FMT_YUV440P10BE     = PixelFormat(C.AV_PIX_FMT_YUV440P10BE)
	AV_PIX_FMT_YUV440P12LE     = PixelFormat(C.AV_PIX_FMT_YUV440P12LE)
	AV_PIX_FMT_YUV440P12BE     = PixelFormat(C.AV_PIX_FMT_YUV440P12BE)
	AV_PIX_FMT_AYUV64LE        = PixelFormat(C.AV_PIX_FMT_AYUV64LE)
	AV_PIX_FMT_AYUV64BE        = PixelFormat(C.AV_PIX_FMT_AYUV64BE)
	AV_PIX_FMT_VIDEOTOOLBOX    = PixelFormat(C.AV_PIX_FMT_VIDEOTOOLBOX)
	AV_PIX_FMT_P010LE          = PixelFormat(C.AV_PIX_FMT_P010LE)
	AV_PIX_FMT_P010BE          = PixelFormat(C.AV_PIX_FMT_P010BE)
	AV_PIX_FMT_GBRAP12BE       = PixelFormat(C.AV_PIX_FMT_GBRAP12BE)
	AV_PIX_FMT_GBRAP12LE       = PixelFormat(C.AV_PIX_FMT_GBRAP12LE)
	AV_PIX_FMT_GBRAP10BE       = PixelFormat(C.AV_PIX_FMT_GBRAP10BE)
	AV_PIX_FMT_GBRAP10LE       = PixelFormat(C.AV_PIX_FMT_GBRAP10LE)
	AV_PIX_FMT_NB              = PixelFormat(C.AV_PIX_FMT_NB)
)
View Source
const (
	AV_SAMPLE_FMT_NONE = SampleFormat(C.AV_SAMPLE_FMT_NONE)
	AV_SAMPLE_FMT_U8   = SampleFormat(C.AV_SAMPLE_FMT_U8)
	AV_SAMPLE_FMT_S16  = SampleFormat(C.AV_SAMPLE_FMT_S16)
	AV_SAMPLE_FMT_S32  = SampleFormat(C.AV_SAMPLE_FMT_S32)
	AV_SAMPLE_FMT_FLT  = SampleFormat(C.AV_SAMPLE_FMT_FLT)
	AV_SAMPLE_FMT_DBL  = SampleFormat(C.AV_SAMPLE_FMT_DBL)
	AV_SAMPLE_FMT_U8P  = SampleFormat(C.AV_SAMPLE_FMT_U8P)
	AV_SAMPLE_FMT_S16P = SampleFormat(C.AV_SAMPLE_FMT_S16P)
	AV_SAMPLE_FMT_S32P = SampleFormat(C.AV_SAMPLE_FMT_S32P)
	AV_SAMPLE_FMT_FLTP = SampleFormat(C.AV_SAMPLE_FMT_FLTP)
	AV_SAMPLE_FMT_DBLP = SampleFormat(C.AV_SAMPLE_FMT_DBLP)
	AV_SAMPLE_FMT_NB   = SampleFormat(C.AV_SAMPLE_FMT_NB)
)

Variables

This section is empty.

Functions

func AVERROR_BSF_NOT_FOUND

func AVERROR_BSF_NOT_FOUND() int

func AVERROR_BUFFER_TOO_SMALL

func AVERROR_BUFFER_TOO_SMALL() int

func AVERROR_BUG

func AVERROR_BUG() int

func AVERROR_DECODER_NOT_FOUND

func AVERROR_DECODER_NOT_FOUND() int

func AVERROR_DEMUXER_NOT_FOUND

func AVERROR_DEMUXER_NOT_FOUND() int

func AVERROR_EAGAIN

func AVERROR_EAGAIN() int

func AVERROR_ENCODER_NOT_FOUND

func AVERROR_ENCODER_NOT_FOUND() int

func AVERROR_EOF

func AVERROR_EOF() int

func AVERROR_EXIT

func AVERROR_EXIT() int

func AVERROR_EXPERIMENTAL

func AVERROR_EXPERIMENTAL() int

func AVERROR_EXTERNAL

func AVERROR_EXTERNAL() int

func AVERROR_FILTER_NOT_FOUND

func AVERROR_FILTER_NOT_FOUND() int

func AVERROR_HTTP_BAD_REQUEST

func AVERROR_HTTP_BAD_REQUEST() int

func AVERROR_HTTP_FORBIDDEN

func AVERROR_HTTP_FORBIDDEN() int

func AVERROR_HTTP_NOT_FOUND

func AVERROR_HTTP_NOT_FOUND() int

func AVERROR_HTTP_OTHER_4XX

func AVERROR_HTTP_OTHER_4XX() int

func AVERROR_HTTP_SERVER_ERROR

func AVERROR_HTTP_SERVER_ERROR() int

func AVERROR_HTTP_UNAUTHORIZED

func AVERROR_HTTP_UNAUTHORIZED() int

func AVERROR_INPUT_CHANGED

func AVERROR_INPUT_CHANGED() int

func AVERROR_INVALIDDATA

func AVERROR_INVALIDDATA() int

func AVERROR_MUXER_NOT_FOUND

func AVERROR_MUXER_NOT_FOUND() int

func AVERROR_OPTION_NOT_FOUND

func AVERROR_OPTION_NOT_FOUND() int

func AVERROR_OUTPUT_CHANGED

func AVERROR_OUTPUT_CHANGED() int

func AVERROR_PATCHWELCOME

func AVERROR_PATCHWELCOME() int

func AVERROR_PROTOCOL_NOT_FOUND

func AVERROR_PROTOCOL_NOT_FOUND() int

func AVERROR_STREAM_NOT_FOUND

func AVERROR_STREAM_NOT_FOUND() int

func AVERROR_UNKNOWN

func AVERROR_UNKNOWN() int

func AV_ERROR_MAX_STRING_SIZE

func AV_ERROR_MAX_STRING_SIZE() int

func AvError

func AvError(code int) int

AvError is a wrapper for the macro AVERROR().

C-Macro: AVERROR

func Configuration

func Configuration() string

Configuration returns the libavutil build-time configuration.

C-Function: avutil_configuration

func CopyProps

func CopyProps(d, s *Frame) int

CopyProps copies only "metadata" fields from src to dst.

C-Function: av_frame_copy_props

func FrameMoveRef

func FrameMoveRef(d, s *Frame)

FrameMoveRef moves everythnig contained in src to dst and reset src.

C-Function: av_frame_move_ref

func FrameRef

func FrameRef(d, s *Frame) int

FrameRef sets up a new reference to the data described by a given frame.

C-Function: av_frame_ref

func GetPixFmtLoss

func GetPixFmtLoss(dst PixelFormat, src PixelFormat, hasAlpha bool) int

GetPixFmtLoss returns what kind of losses will occur when converting from one specific pixel format to another.

C-Function: av_get_pix_fmt_loss

func IntListLengthForSize

func IntListLengthForSize(e uint, l int, t uint64) uint

IntListLengthForSize computes the length of an integer list.

C-Function: av_int_list_length_for_size

func License

func License() string

License returns the libavutil license.

C-Function: avutil_license

func MACRO_NUM_DATA_POINTERS

func MACRO_NUM_DATA_POINTERS() int

func MediaTypeString

func MediaTypeString(mt MediaType) string

MediaTypeString returns a string describing the media_type enum, NULL if media_type is unknown.

C-Function: av_get_media_type_string

func PictureTypeChar

func PictureTypeChar(pt PictureType) string

PictureTypeChar returns a single letter to describe the given picture type pict_type.

C-Function: av_get_picture_type_char

func Strerror

func Strerror(errnum int) string

Strerror returns a descriptive string of the given return code.

C-Function: av_strerror

func Version

func Version() uint

Version returns the LIBAVUTIL_VERSION_INT constant.

C-Function: avutil_version

func XIfNull

func XIfNull(p, x int)

XIfNull returns x default pointer in case p is NULL.

C-Function: av_x_if_null

Types

type Buffer

type Buffer C.struct_AVBuffer

type BufferPool

type BufferPool C.struct_AVBufferPool

type BufferRef

type BufferRef C.struct_AVBufferRef

type Dictionary

type Dictionary C.struct_AVDictionary

type File

type File C.FILE

func FopenUtf8

func FopenUtf8(p, m string) *File

FopenUtf8 opens a file using a UTF-8 filename.

C-Function: av_fopen_utf8

type Frame

type Frame C.struct_AVFrame

func Clone

func Clone(f *Frame) *Frame

Clone creates a new frame that references the same data as src.

C-Function: av_frame_clone

func NewFrame

func NewFrame() *Frame

NewFrame allocates a Frame and set its fields to default values.

C-Function: av_frame_alloc

func (*Frame) Data

func (f *Frame) Data(i int, len int) []byte

Data returns the frames data.

C-Variable: AVFrame::data

func (*Frame) ExtendedData

func (f *Frame) ExtendedData(i int, len int) []byte

ExtendedData returns the frames extended_data.

C-Variable: AVFrame::data

func (*Frame) Free

func (f *Frame) Free()

Free frees the frame and any dynamically allocated objects in it, e.g.

C-Function: av_frame_free

func (*Frame) IsWritable

func (f *Frame) IsWritable() bool

IsWritable checks if the frame data is writable.

C-Function: av_frame_is_writable

func (*Frame) Linesize

func (f *Frame) Linesize(i int) int

Linesize returns the frames linesize.

C-Variable: AVFrame::linesize

func (*Frame) MakeWritable

func (f *Frame) MakeWritable() ReturnCode

MakeWritable ensures that the frame data is writable, avoiding data copy if possible.

C-Function: av_frame_make_writable

func (*Frame) Metadatap

func (f *Frame) Metadatap() **Dictionary

Metadatap returns metadatap.

C-Function: avpriv_frame_get_metadatap

func (*Frame) NbSamples

func (f *Frame) NbSamples() int

NbSamples returns the number of samples.

C-Variable: AVFrame::nb_frames

func (*Frame) NewBuffer

func (f *Frame) NewBuffer(a int) int

NewBuffer allocates new buffer(s) for audio or video data.

C-Function: av_frame_get_buffer

func (*Frame) NewSideData

func (f *Frame) NewSideData(d FrameSideDataType, s int) *FrameSideData

NewSideData adds a new side data to a frame.

C-Function: av_frame_new_side_data

func (*Frame) PlaneBuffer

func (f *Frame) PlaneBuffer(p int) *BufferRef

PlaneBuffer gets the buffer reference a given data plane is stored in.

C-Function: av_frame_get_plane_buffer

func (*Frame) QpTable

func (f *Frame) QpTable(stride, t *int) int8

QpTable returns the qp table.

C-Function: av_frame_get_qp_table

func (*Frame) SetQpTable

func (f *Frame) SetQpTable(b *BufferRef, s, q int) int

SetQpTable sets the qp table.

C-Function: av_frame_set_qp_table

func (*Frame) SideData

func (f *Frame) SideData(t FrameSideDataType) *FrameSideData

SideData returns the frames sidedata.

C-Function: av_frame_get_side_data

func (*Frame) Unref

func (f *Frame) Unref()

Unref unreferences all the buffers referenced by frame and reset the frame fields.

C-Function: av_frame_unref

type FrameSideData

type FrameSideData C.struct_AVFrameSideData

type FrameSideDataType

type FrameSideDataType C.enum_AVFrameSideDataType

type MediaType

type MediaType C.enum_AVMediaType

type Options

type Options C.struct_AVOptions

type PictureType

type PictureType C.enum_AVPictureType

type PixelFormat

type PixelFormat C.enum_AVPixelFormat

func FindBestPixFmtOfList

func FindBestPixFmtOfList(pixList []PixelFormat, src PixelFormat, hasAlpha bool) (PixelFormat, int)

FindBestPixFmtOfList finds the best pixel format to convert to given a certain source pixel format. It returns the best pixel format and what kind of losses are to be expected.

C-Function: avcodec_find_best_pix_fmt_of_list

func (PixelFormat) ChromaSubSample

func (p PixelFormat) ChromaSubSample() (int, int)

ChromaSubSample grants access log2_chroma_w log2_chroma_h from the pixel format AvPixFmtDescriptor.

C-Function: avcodec_get_chroma_sub_sample

func (PixelFormat) ToCodecTag

func (p PixelFormat) ToCodecTag() uint

ToCodecTag returns a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found.

C-Function: avcodec_get_chroma_sub_sample

type Rational

type Rational C.struct_AVRational

func TimeBaseQ

func TimeBaseQ() Rational

TimeBaseQ returns the fractional representation of the internal time base.

C-Function: av_get_time_base_q

type ReturnCode

type ReturnCode struct {
	// contains filtered or unexported fields
}

ReturnCode is a wrapper for return codes. It implements the error interface but is also capable of giving you the actual return code.

func NewReturnCode

func NewReturnCode(code int) ReturnCode

NewReturnCode creates a new ReturnCode instance

func (ReturnCode) Code

func (r ReturnCode) Code() int

Code returns the original return code. This can be used e.g. if a positive return code resembles the size of something.

This can also be used for comparison against the AVERROR_xxx values.

func (ReturnCode) Error

func (r ReturnCode) Error() string

Error is the implementation of the error interface. It returns a descriptive string of the return code.

Warning: It panics if the returned code is positive (or 0), because those values are no errors. Please use ReturnCode.Ok() to check if it's an error or not.

func (ReturnCode) IsOneOf

func (r ReturnCode) IsOneOf(codes ...int) bool

IsOneOf is a convenience method that checks if the return codes equals one of the given ones.

Usage:

func YourFunction() error {
    code := avxxx.SomeFunction()
    if !code.Ok() && !code.IsOneOf(avutil.AVERROR_EAGAIN, avutil.AVERROR_EOF) {
        return code
    }
}

func (ReturnCode) Ok

func (r ReturnCode) Ok() bool

Ok returns true if the return code does not resemble an error.

type SampleFormat

type SampleFormat C.enum_AVSampleFormat

func (SampleFormat) Alternative

func (s SampleFormat) Alternative(planar bool) SampleFormat

Alternative returns the planar<->packed alternative form of the given sample format, or AV_SAMPLE_FMT_NONE on error.

C-Function: av_get_alt_sample_fmt

func (SampleFormat) BytesPerSample

func (s SampleFormat) BytesPerSample() int

BytesPerSample returns the bytes per sample.

C-Function: av_get_bytes_per_sample

func (SampleFormat) IsPlanar

func (s SampleFormat) IsPlanar() bool

IsPlanar returns true if the format is planar.

C-Function: av_get_bytes_per_sample

func (SampleFormat) Name

func (s SampleFormat) Name() string

Name returns the sample format name.

C-Function: av_get_sample_fmt_name

func (SampleFormat) Packed

func (s SampleFormat) Packed() SampleFormat

Packed returns the packed variant.

C-Function: av_get_packed_sample_fmt

func (SampleFormat) Planar

func (s SampleFormat) Planar() SampleFormat

Planar returns the planar variant.

C-Function: av_get_planar_sample_fmt

type Tree

type Tree C.struct_AVTree

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL