| Package | Description |
|---|---|
| org.bytedeco.javacpp |
| Modifier and Type | Method and Description |
|---|---|
static swresample.SwrContext |
swresample.swr_alloc_set_opts(swresample.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 swresample.SwrContext |
swresample.swr_alloc()
Allocate SwrContext.
|
| Modifier and Type | Method and Description |
|---|---|
static swresample.SwrContext |
swresample.swr_alloc_set_opts(swresample.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(swresample.SwrContext s)
Closes the context so that swr_is_initialized() returns 0.
|
static int |
swresample.swr_config_frame(swresample.SwrContext swr,
avutil.AVFrame out,
avutil.AVFrame in)
Configure or reconfigure the SwrContext using the information
provided by the AVFrames.
|
static int |
swresample.swr_convert_frame(swresample.SwrContext swr,
avutil.AVFrame output,
avutil.AVFrame input)
Convert the samples in the input AVFrame and write them to the output AVFrame.
|
static int |
swresample.swr_convert(swresample.SwrContext s,
byte[] out,
int out_count,
byte[] in,
int in_count) |
static int |
swresample.swr_convert(swresample.SwrContext s,
ByteBuffer out,
int out_count,
ByteBuffer in,
int in_count) |
static int |
swresample.swr_convert(swresample.SwrContext s,
BytePointer out,
int out_count,
BytePointer in,
int in_count) |
static int |
swresample.swr_convert(swresample.SwrContext s,
PointerPointer out,
int out_count,
PointerPointer in,
int in_count)
Convert audio.
|
static int |
swresample.swr_drop_output(swresample.SwrContext s,
int count)
Drops the specified number of output samples.
|
static void |
swresample.swr_free(swresample.SwrContext s) |
static long |
swresample.swr_get_delay(swresample.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(swresample.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(swresample.SwrContext s)
Initialize context after user parameters have been set.
|
static int |
swresample.swr_inject_silence(swresample.SwrContext s,
int count)
Injects the specified number of silence samples.
|
static int |
swresample.swr_is_initialized(swresample.SwrContext s)
Check whether an swr context has been initialized or not.
|
static long |
swresample.swr_next_pts(swresample.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(swresample.SwrContext s,
int[] channel_map) |
static int |
swresample.swr_set_channel_mapping(swresample.SwrContext s,
IntBuffer channel_map) |
static int |
swresample.swr_set_channel_mapping(swresample.SwrContext s,
IntPointer channel_map)
Set a customized input channel mapping.
|
static int |
swresample.swr_set_compensation(swresample.SwrContext s,
int sample_delta,
int compensation_distance)
Activate resampling compensation ("soft" compensation).
|
static int |
swresample.swr_set_matrix(swresample.SwrContext s,
double[] matrix,
int stride) |
static int |
swresample.swr_set_matrix(swresample.SwrContext s,
DoubleBuffer matrix,
int stride) |
static int |
swresample.swr_set_matrix(swresample.SwrContext s,
DoublePointer matrix,
int stride)
Set a customized remix matrix.
|
Copyright © 2015. All Rights Reserved.