Package | Description |
---|---|
org.bytedeco.ffmpeg.global |
Modifier and Type | Method and Description |
---|---|
static SwrContext |
swresample.swr_alloc_set_opts(SwrContext s,
long out_ch_layout,
int out_sample_fmt,
int out_sample_rate,
long in_ch_layout,
int in_sample_fmt,
int in_sample_rate,
int log_offset,
Pointer log_ctx)
Allocate SwrContext if needed and set/reset common parameters.
|
static SwrContext |
swresample.swr_alloc()
Allocate SwrContext.
|
Modifier and Type | Method and Description |
---|---|
static SwrContext |
swresample.swr_alloc_set_opts(SwrContext s,
long out_ch_layout,
int out_sample_fmt,
int out_sample_rate,
long in_ch_layout,
int in_sample_fmt,
int in_sample_rate,
int log_offset,
Pointer log_ctx)
Allocate SwrContext if needed and set/reset common parameters.
|
static void |
swresample.swr_close(SwrContext s)
Closes the context so that swr_is_initialized() returns 0.
|
static int |
swresample.swr_config_frame(SwrContext swr,
AVFrame out,
AVFrame in)
Configure or reconfigure the SwrContext using the information
provided by the AVFrames.
|
static int |
swresample.swr_convert_frame(SwrContext swr,
AVFrame output,
AVFrame input)
Convert the samples in the input AVFrame and write them to the output AVFrame.
|
static int |
swresample.swr_convert(SwrContext s,
byte[] out,
int out_count,
byte[] in,
int in_count) |
static int |
swresample.swr_convert(SwrContext s,
ByteBuffer out,
int out_count,
ByteBuffer in,
int in_count) |
static int |
swresample.swr_convert(SwrContext s,
BytePointer out,
int out_count,
BytePointer in,
int in_count) |
static int |
swresample.swr_convert(SwrContext s,
PointerPointer out,
int out_count,
PointerPointer in,
int in_count)
Convert audio.
|
static int |
swresample.swr_drop_output(SwrContext s,
int count)
Drops the specified number of output samples.
|
static void |
swresample.swr_free(SwrContext s) |
static long |
swresample.swr_get_delay(SwrContext s,
long base)
Gets the delay the next input sample will experience relative to the next output sample.
|
static int |
swresample.swr_get_out_samples(SwrContext s,
int in_samples)
Find an upper bound on the number of samples that the next swr_convert
call will output, if called with in_samples of input samples.
|
static int |
swresample.swr_init(SwrContext s)
Initialize context after user parameters have been set.
|
static int |
swresample.swr_inject_silence(SwrContext s,
int count)
Injects the specified number of silence samples.
|
static int |
swresample.swr_is_initialized(SwrContext s)
Check whether an swr context has been initialized or not.
|
static long |
swresample.swr_next_pts(SwrContext s,
long pts)
Convert the next timestamp from input to output
timestamps are in 1/(in_sample_rate * out_sample_rate) units.
|
static int |
swresample.swr_set_channel_mapping(SwrContext s,
int[] channel_map) |
static int |
swresample.swr_set_channel_mapping(SwrContext s,
IntBuffer channel_map) |
static int |
swresample.swr_set_channel_mapping(SwrContext s,
IntPointer channel_map)
Set a customized input channel mapping.
|
static int |
swresample.swr_set_compensation(SwrContext s,
int sample_delta,
int compensation_distance)
Activate resampling compensation ("soft" compensation).
|
static int |
swresample.swr_set_matrix(SwrContext s,
double[] matrix,
int stride) |
static int |
swresample.swr_set_matrix(SwrContext s,
DoubleBuffer matrix,
int stride) |
static int |
swresample.swr_set_matrix(SwrContext s,
DoublePointer matrix,
int stride)
Set a customized remix matrix.
|
Copyright © 2020. All rights reserved.