
public class BitStreamFilter extends RefCounted
| Modifier and Type | Method and Description |
|---|---|
BitStreamFilter |
copyReference()
Create a new BitStreamFilter object that is actually referring to the
exact same underlying native object.
|
boolean |
equals(Object obj)
Compares two values, returning true if the underlying objects in native code are the same object.
|
int |
filter(Buffer output,
int outputOffset,
Buffer input,
int inputOffset,
int inputSize,
Coder coder,
String args,
boolean isKey)
Filter the input buffer into the output buffer.
|
void |
filter(MediaPacket packet,
String args)
Filters a packet in place (i.e.
|
String |
getName()
Get the name of this filter.
|
BitStreamFilterType |
getType()
Get the type of this filter.
|
int |
hashCode()
Get a hashable value for this object.
|
static BitStreamFilter |
make(BitStreamFilterType type)
Create a filter given the type.
|
static BitStreamFilter |
make(String filtername)
Create a filter given the name.
|
String |
toString()
info about this filter object
|
delete, getCurrentRefCountpublic BitStreamFilter copyReference()
copyReference in class RefCountedpublic boolean equals(Object obj)
public int hashCode()
public String toString()
public static BitStreamFilter make(String filtername)
filtername - The name of the filter.BitStreamFilterTypepublic static BitStreamFilter make(BitStreamFilterType type)
type - The type of the filter.BitStreamFilterTypepublic BitStreamFilterType getType()
public String getName()
public int filter(Buffer output, int outputOffset, Buffer input, int inputOffset, int inputSize, Coder coder, String args, boolean isKey)
output - The output buffer to copy filtered bytes to.outputOffset - The offset in output to copy data into.input - The input buffer to filter.inputOffset - The number of bytes into input to start filtering at.inputSize - The number of bytes (from inputOffset) to filter.coder - The Coder context belong to the Stream that this data will eventually get outputted to.args - String arguments for the filter call. See the FFmpeg documentation or source code.isKey - Does this data represent a key packet.InvalidArgument - if any parameters are invalid.FfmpegException - if the filtering fails for any reason.public void filter(MediaPacket packet, String args)
packet - The packet to filter in place.args - Text arguments for the filter.InvalidArgument - if output is null.InvalidArgument - if input is null or not complete.Copyright © 2018 Humble Software. All rights reserved.