History

avcodec/internal: Move ff_get_buffer() to decode.h

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.

Andreas Rheinhardt committed 4 years ago

Commit 66b691f1 parent e2c24e6203 files · +202 −229Browse files

Showing the changes to libavcodec/decode.h (1 of 203 files). Show all

Unified · Split

libavcodec/decode.h+7−0
@@ -112,6 +112,13 @@ int ff_decode_preinit(AVCodecContext *avctx); · 111 unmodified lines
112 */112 */
113int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt);113int 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 */
120int 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 writable122#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 buffer124 * Identical in function to ff_get_buffer(), except it reuses the existing buffer

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t