mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atom

type Atom struct {
	mock.Mock
}

Atom is an autogenerated mock type for the Atom type

func (*Atom) Children

func (_m *Atom) Children() []mp4io.Atom

Children provides a mock function with given fields:

func (*Atom) Len

func (_m *Atom) Len() int

Len provides a mock function with given fields:

func (*Atom) Marshal

func (_m *Atom) Marshal(_a0 []byte) int

Marshal provides a mock function with given fields: _a0

func (*Atom) Pos

func (_m *Atom) Pos() (int, int)

Pos provides a mock function with given fields:

func (*Atom) Tag

func (_m *Atom) Tag() mp4io.Tag

Tag provides a mock function with given fields:

func (*Atom) Unmarshal

func (_m *Atom) Unmarshal(_a0 []byte, _a1 int) (int, error)

Unmarshal provides a mock function with given fields: _a0, _a1

type AudioCodecData

type AudioCodecData struct {
	mock.Mock
}

AudioCodecData is an autogenerated mock type for the AudioCodecData type

func (*AudioCodecData) ChannelLayout

func (_m *AudioCodecData) ChannelLayout() av.ChannelLayout

ChannelLayout provides a mock function with given fields:

func (*AudioCodecData) PacketDuration

func (_m *AudioCodecData) PacketDuration(_a0 []byte) (time.Duration, error)

PacketDuration provides a mock function with given fields: _a0

func (*AudioCodecData) SampleFormat

func (_m *AudioCodecData) SampleFormat() av.SampleFormat

SampleFormat provides a mock function with given fields:

func (*AudioCodecData) SampleRate

func (_m *AudioCodecData) SampleRate() int

SampleRate provides a mock function with given fields:

func (*AudioCodecData) Type

func (_m *AudioCodecData) Type() av.CodecType

Type provides a mock function with given fields:

type AudioDecoder

type AudioDecoder struct {
	mock.Mock
}

AudioDecoder is an autogenerated mock type for the AudioDecoder type

func (*AudioDecoder) Close

func (_m *AudioDecoder) Close()

Close provides a mock function with given fields:

func (*AudioDecoder) Decode

func (_m *AudioDecoder) Decode(_a0 []byte) (bool, av.AudioFrame, error)

Decode provides a mock function with given fields: _a0

type AudioEncoder

type AudioEncoder struct {
	mock.Mock
}

AudioEncoder is an autogenerated mock type for the AudioEncoder type

func (*AudioEncoder) Close

func (_m *AudioEncoder) Close()

Close provides a mock function with given fields:

func (*AudioEncoder) CodecData

func (_m *AudioEncoder) CodecData() (av.AudioCodecData, error)

CodecData provides a mock function with given fields:

func (*AudioEncoder) Encode

func (_m *AudioEncoder) Encode(_a0 av.AudioFrame) ([][]byte, error)

Encode provides a mock function with given fields: _a0

func (*AudioEncoder) GetOption

func (_m *AudioEncoder) GetOption(_a0 string, _a1 interface{}) error

GetOption provides a mock function with given fields: _a0, _a1

func (*AudioEncoder) SetBitrate

func (_m *AudioEncoder) SetBitrate(_a0 int) error

SetBitrate provides a mock function with given fields: _a0

func (*AudioEncoder) SetChannelLayout

func (_m *AudioEncoder) SetChannelLayout(_a0 av.ChannelLayout) error

SetChannelLayout provides a mock function with given fields: _a0

func (*AudioEncoder) SetOption

func (_m *AudioEncoder) SetOption(_a0 string, _a1 interface{}) error

SetOption provides a mock function with given fields: _a0, _a1

func (*AudioEncoder) SetSampleFormat

func (_m *AudioEncoder) SetSampleFormat(_a0 av.SampleFormat) error

SetSampleFormat provides a mock function with given fields: _a0

func (*AudioEncoder) SetSampleRate

func (_m *AudioEncoder) SetSampleRate(_a0 int) error

SetSampleRate provides a mock function with given fields: _a0

type AudioResampler

type AudioResampler struct {
	mock.Mock
}

AudioResampler is an autogenerated mock type for the AudioResampler type

func (*AudioResampler) Resample

func (_m *AudioResampler) Resample(_a0 av.AudioFrame) (av.AudioFrame, error)

Resample provides a mock function with given fields: _a0

type CodecData

type CodecData struct {
	mock.Mock
}

CodecData is an autogenerated mock type for the CodecData type

func (*CodecData) Type

func (_m *CodecData) Type() av.CodecType

Type provides a mock function with given fields:

type DemuxCloser

type DemuxCloser struct {
	mock.Mock
}

DemuxCloser is an autogenerated mock type for the DemuxCloser type

func (*DemuxCloser) Close

func (_m *DemuxCloser) Close() error

Close provides a mock function with given fields:

func (*DemuxCloser) ReadPacket

func (_m *DemuxCloser) ReadPacket() (av.Packet, error)

ReadPacket provides a mock function with given fields:

func (*DemuxCloser) Streams

func (_m *DemuxCloser) Streams() ([]av.CodecData, error)

Streams provides a mock function with given fields:

type Demuxer

type Demuxer struct {
	mock.Mock
}

Demuxer is an autogenerated mock type for the Demuxer type

func (*Demuxer) ReadPacket

func (_m *Demuxer) ReadPacket() (av.Packet, error)

ReadPacket provides a mock function with given fields:

func (*Demuxer) Streams

func (_m *Demuxer) Streams() ([]av.CodecData, error)

Streams provides a mock function with given fields:

type Filter

type Filter struct {
	mock.Mock
}

Filter is an autogenerated mock type for the Filter type

func (*Filter) ModifyPacket

func (_m *Filter) ModifyPacket(pkt *av.Packet, streams []av.CodecData, videoidx int, audioidx int) (bool, error)

ModifyPacket provides a mock function with given fields: pkt, streams, videoidx, audioidx

type MuxCloser

type MuxCloser struct {
	mock.Mock
}

MuxCloser is an autogenerated mock type for the MuxCloser type

func (*MuxCloser) Close

func (_m *MuxCloser) Close() error

Close provides a mock function with given fields:

func (*MuxCloser) WriteHeader

func (_m *MuxCloser) WriteHeader(_a0 []av.CodecData) error

WriteHeader provides a mock function with given fields: _a0

func (*MuxCloser) WritePacket

func (_m *MuxCloser) WritePacket(_a0 av.Packet) error

WritePacket provides a mock function with given fields: _a0

func (*MuxCloser) WriteTrailer

func (_m *MuxCloser) WriteTrailer() error

WriteTrailer provides a mock function with given fields:

type Muxer

type Muxer struct {
	mock.Mock
}

Muxer is an autogenerated mock type for the Muxer type

func (*Muxer) WriteHeader

func (_m *Muxer) WriteHeader(_a0 []av.CodecData) error

WriteHeader provides a mock function with given fields: _a0

func (*Muxer) WritePacket

func (_m *Muxer) WritePacket(_a0 av.Packet) error

WritePacket provides a mock function with given fields: _a0

func (*Muxer) WriteTrailer

func (_m *Muxer) WriteTrailer() error

WriteTrailer provides a mock function with given fields:

type PacketReader

type PacketReader struct {
	mock.Mock
}

PacketReader is an autogenerated mock type for the PacketReader type

func (*PacketReader) ReadPacket

func (_m *PacketReader) ReadPacket() (av.Packet, error)

ReadPacket provides a mock function with given fields:

type PacketWriter

type PacketWriter struct {
	mock.Mock
}

PacketWriter is an autogenerated mock type for the PacketWriter type

func (*PacketWriter) WritePacket

func (_m *PacketWriter) WritePacket(_a0 av.Packet) error

WritePacket provides a mock function with given fields: _a0

type VideoCodecData

type VideoCodecData struct {
	mock.Mock
}

VideoCodecData is an autogenerated mock type for the VideoCodecData type

func (*VideoCodecData) Height

func (_m *VideoCodecData) Height() int

Height provides a mock function with given fields:

func (*VideoCodecData) Type

func (_m *VideoCodecData) Type() av.CodecType

Type provides a mock function with given fields:

func (*VideoCodecData) Width

func (_m *VideoCodecData) Width() int

Width provides a mock function with given fields:

Jump to

Keyboard shortcuts

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