All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
wrapped_avframe.c File Reference

Simple wrapper to store an AVFrame and forward it as AVPacket. More...

#include "avcodec.h"
#include "internal.h"
#include "libavutil/internal.h"
#include "libavutil/frame.h"
#include "libavutil/buffer.h"
#include "libavutil/pixdesc.h"

Go to the source code of this file.


static void wrapped_avframe_release_buffer (void *unused, uint8_t *data)
static int wrapped_avframe_encode (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)


AVCodec ff_wrapped_avframe_encoder

Detailed Description

Simple wrapper to store an AVFrame and forward it as AVPacket.

Definition in file wrapped_avframe.c.

Function Documentation

static void wrapped_avframe_release_buffer ( void unused,
uint8_t data 

Definition at line 35 of file wrapped_avframe.c.

Referenced by wrapped_avframe_encode().

static int wrapped_avframe_encode ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int *  got_packet 

Definition at line 42 of file wrapped_avframe.c.

Variable Documentation

AVCodec ff_wrapped_avframe_encoder
Initial value:
= {
.name = "wrapped_avframe",
.long_name = NULL_IF_CONFIG_SMALL("AVFrame to AVPacket passthrough"),
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
static int wrapped_avframe_encode(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
Passthrough codec, AVFrames wrapped in AVPacket.
Definition: avcodec.h:553

Definition at line 66 of file wrapped_avframe.c.