public static class AVCodecContext.Get_buffer2_AVCodecContext_AVFrame_int extends FunctionPointer
Video:
If AV_GET_BUFFER_FLAG_REF is set in flags then the frame may be reused
(read and/or written to if it is writable) later by libavcodec.
avcodec_align_dimensions2() should be used to find the required width and
height, as they normally need to be rounded up to the next multiple of 16.
Some decoders do not support linesizes changing between frames.
If frame multithreading is used and thread_safe_callbacks is set,
this callback may be called from a different thread, but not from more
than one at once. Does not need to be reentrant.
,
Audio:
Decoders request a buffer of a particular size by setting
AVFrame.nb_samples prior to calling get_buffer2(). The decoder may,
however, utilize only part of the buffer by setting AVFrame.nb_samples
to a smaller value in the output frame.
As a convenience, av_samples_get_buffer_size() and
av_samples_fill_arrays() in libavutil may be used by custom get_buffer2()
functions to find the required data size and to fill data pointers and
linesize. In AVFrame.linesize, only linesize[0] may be set for audio
since all planes must be the same size.
,
av_samples_get_buffer_size(), av_samples_fill_arrays()
- encoding: unused
- decoding: Set by libavcodec, user can override.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier | Constructor and Description |
---|---|
protected |
Get_buffer2_AVCodecContext_AVFrame_int() |
|
Get_buffer2_AVCodecContext_AVFrame_int(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
call(AVCodecContext s,
AVFrame frame,
int flags) |
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, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public Get_buffer2_AVCodecContext_AVFrame_int(Pointer p)
Pointer.Pointer(Pointer)
.protected Get_buffer2_AVCodecContext_AVFrame_int()
public int call(AVCodecContext s, AVFrame frame, int flags)
Copyright © 2020. All rights reserved.