@Properties(inherit=avutil.class) public class AVOptionRanges extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AVOptionRanges()
Default native constructor.
|
AVOptionRanges(long size)
Native array allocator.
|
AVOptionRanges(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
nb_components()
Number of componentes.
|
AVOptionRanges |
nb_components(int setter) |
int |
nb_ranges()
Number of ranges per component.
|
AVOptionRanges |
nb_ranges(int setter) |
AVOptionRanges |
position(long position) |
PointerPointer |
range() |
AVOptionRange |
range(int i)
Array of option ranges.
|
AVOptionRanges |
range(int i,
AVOptionRange setter) |
AVOptionRanges |
range(PointerPointer setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public AVOptionRanges()
public AVOptionRanges(long size)
Pointer.position(long)
.public AVOptionRanges(Pointer p)
Pointer.Pointer(Pointer)
.public AVOptionRanges position(long position)
public AVOptionRange range(int i)
int range_index, component_index;
AVOptionRanges *ranges;
AVOptionRange *range[3]; //may require more than 3 in the future.
av_opt_query_ranges(&ranges, obj, key, AV_OPT_MULTI_COMPONENT_RANGE);
for (range_index = 0; range_index < ranges->nb_ranges; range_index++) {
for (component_index = 0; component_index < ranges->nb_components; component_index++)
range[component_index] = ranges->range[ranges->nb_ranges * component_index + range_index];
//do something with range here.
}
av_opt_freep_ranges(&ranges);
public AVOptionRanges range(int i, AVOptionRange setter)
@Cast(value="AVOptionRange**") public PointerPointer range()
public AVOptionRanges range(PointerPointer setter)
public int nb_ranges()
public AVOptionRanges nb_ranges(int setter)
public int nb_components()
public AVOptionRanges nb_components(int setter)
Copyright © 2020. All rights reserved.