71 pkt->
size =
sizeof(*wrapped);
79 .
name =
"wrapped_avframe",
AVCodec ff_wrapped_avframe_encoder
This structure describes decoded (raw) audio or video data.
ptrdiff_t const GLvoid * data
void av_frame_move_ref(AVFrame *dst, AVFrame *src)
Move everything contained in src to dst and reset src.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
#define AV_BUFFER_FLAG_READONLY
Always treat the buffer as read-only, even when it has only one reference.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static int wrapped_avframe_encode(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVBufferRef * buf
A reference to the reference-counted buffer where the packet data is stored.
const char * name
Name of the codec implementation.
AVBufferRef * av_buffer_create(uint8_t *data, int size, void(*free)(void *opaque, uint8_t *data), void *opaque, int flags)
Create an AVBuffer from an existing array.
int flags
A combination of AV_PKT_FLAG values.
reference-counted frame API
common internal API header
Passthrough codec, AVFrames wrapped in AVPacket.
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src.
Libavcodec external API header.
main external API structure.
refcounted data buffer API
common internal api header.
static void wrapped_avframe_release_buffer(void *unused, uint8_t *data)
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
This structure stores compressed data.