aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-03-05 01:05:05 -0300
committerJames Almer <jamrial@gmail.com>2021-03-07 11:21:57 -0300
commitb7e7813e7aaf03b9096d6162499bb6eb1841e0a0 (patch)
tree0a2eef833dddce97a3552203774980b0b53dcc87
parentc063d556a8fa9dd4a019883939043c7825d45a7b (diff)
downloadffmpeg-b7e7813e7aaf03b9096d6162499bb6eb1841e0a0.tar.gz
avcodec/codec: add doxy to AVCodec.decode()
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/codec.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/codec.h b/libavcodec/codec.h
index f96372f77a..0ab618d71c 100644
--- a/libavcodec/codec.h
+++ b/libavcodec/codec.h
@@ -281,6 +281,18 @@ typedef struct AVCodec {
*/
int (*encode2)(struct AVCodecContext *avctx, struct AVPacket *avpkt,
const struct AVFrame *frame, int *got_packet_ptr);
+ /**
+ * Decode picture or subtitle data.
+ *
+ * @param avctx codec context
+ * @param outdata codec type dependent output struct
+ * @param[out] got_frame_ptr decoder sets to 0 or 1 to indicate that a
+ * non-empty frame or subtitle was returned in
+ * outdata.
+ * @param[in] avpkt AVPacket containing the data to be decoded
+ * @return amount of bytes read from the packet on success, negative error
+ * code on failure
+ */
int (*decode)(struct AVCodecContext *avctx, void *outdata,
int *got_frame_ptr, struct AVPacket *avpkt);
int (*close)(struct AVCodecContext *);