public static class avcodec.AVCodecContext.Get_buffer_AVCodecContext_AVFrame extends FunctionPointer
Video:
If pic.reference is set then the frame will be read 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.
If frame multithreading is used and thread_safe_callbacks is set,
it may be called from a different thread, but not from more than one at
once. Does not need to be reentrant.,
release_buffer(), reget_buffer(),
Audio:
Decoders request a buffer of a particular size by setting
AVFrame.nb_samples prior to calling get_buffer(). The decoder may,
however, utilize only part of the buffer by setting AVFrame.nb_samples
to a smaller value in the output frame.
Decoders cannot use the buffer after returning from
avcodec_decode_audio4(), so they will not call release_buffer(), as it
is assumed to be released immediately upon return. In some rare cases,
a decoder may need to call get_buffer() more than once in a single
call to avcodec_decode_audio4(). In that case, when get_buffer() is
called again after it has already been called once, the previously
acquired buffer is assumed to be released at that time and may not be
reused by the decoder.
As a convenience, av_samples_get_buffer_size() and
av_samples_fill_arrays() in libavutil may be used by custom get_buffer()
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| Modifier | Constructor and Description |
|---|---|
protected |
Get_buffer_AVCodecContext_AVFrame()
Deprecated.
|
|
Get_buffer_AVCodecContext_AVFrame(Pointer p)
Deprecated.
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
call(avcodec.AVCodecContext c,
avutil.AVFrame pic)
Deprecated.
|
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, position, put, setNull, sizeof, toString, withDeallocator, zeropublic Get_buffer_AVCodecContext_AVFrame(Pointer p)
Pointer.Pointer(Pointer).protected Get_buffer_AVCodecContext_AVFrame()
@Deprecated public int call(avcodec.AVCodecContext c, avutil.AVFrame pic)
Copyright © 2015. All Rights Reserved.