Only used by decoders (encoders have ff_encode_alloc_frame()). Also clean up the other headers a bit while removing now redundant internal.h inclusions.
Showing the changes to libavcodec/decode.h (1 of 203 files). Show all
Unified · Split
| @@ -112,6 +112,13 @@ int ff_decode_preinit(AVCodecContext *avctx); · 111 unmodified lines | |||
| 112 | */ | 112 | */ |
| 113 | int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt); | 113 | int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt); |
| 114 | 114 | ||
| 115 | /** | ||
| 116 | * Get a buffer for a frame. This is a wrapper around | ||
| 117 | * AVCodecContext.get_buffer() and should be used instead calling get_buffer() | ||
| 118 | * directly. | ||
| 119 | */ | ||
| 120 | int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags); | ||
| 121 | |||
| 115 | #define FF_REGET_BUFFER_FLAG_READONLY 1 ///< the returned buffer does not need to be writable | 122 | #define FF_REGET_BUFFER_FLAG_READONLY 1 ///< the returned buffer does not need to be writable |
| 116 | /** | 123 | /** |
| 117 | * Identical in function to ff_get_buffer(), except it reuses the existing buffer | 124 | * Identical in function to ff_get_buffer(), except it reuses the existing buffer |