FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
avcodec.c File Reference

libavcodec/libavfilter gluing utilities More...

#include "avcodec.h"
#include "libavutil/avassert.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Functions

int avfilter_copy_frame_props (AVFilterBufferRef *dst, const AVFrame *src)
 Copy the frame properties of src to dst, without copying the actual image data.
 
AVFilterBufferRefavfilter_get_video_buffer_ref_from_frame (const AVFrame *frame, int perms)
 Create and return a picref reference from the data and properties contained in frame.
 
AVFilterBufferRefavfilter_get_audio_buffer_ref_from_frame (const AVFrame *frame, int perms)
 Create and return a picref reference from the data and properties contained in frame.
 
AVFilterBufferRefavfilter_get_buffer_ref_from_frame (enum AVMediaType type, const AVFrame *frame, int perms)
 Create and return a buffer reference from the data and properties contained in frame.
 
int avfilter_copy_buf_props (AVFrame *dst, const AVFilterBufferRef *src)
 Copy the frame properties and data pointers of src to dst, without copying the actual data.
 

Detailed Description

libavcodec/libavfilter gluing utilities

Definition in file avcodec.c.

Function Documentation

int avfilter_copy_frame_props ( AVFilterBufferRef dst,
const AVFrame src 
)

Copy the frame properties of src to dst, without copying the actual image data.

Returns
0 on success, a negative number on error.

Definition at line 30 of file avcodec.c.

Referenced by avfilter_get_audio_buffer_ref_from_frame(), avfilter_get_video_buffer_ref_from_frame(), decode_video(), and video_thread().

AVFilterBufferRef* avfilter_get_video_buffer_ref_from_frame ( const AVFrame frame,
int  perms 
)

Create and return a picref reference from the data and properties contained in frame.

Parameters
permspermissions to assign to the new buffer reference

Definition at line 76 of file avcodec.c.

Referenced by avfilter_get_buffer_ref_from_frame().

AVFilterBufferRef* avfilter_get_audio_buffer_ref_from_frame ( const AVFrame frame,
int  perms 
)

Create and return a picref reference from the data and properties contained in frame.

Parameters
permspermissions to assign to the new buffer reference

Definition at line 92 of file avcodec.c.

Referenced by avfilter_get_buffer_ref_from_frame().

AVFilterBufferRef* avfilter_get_buffer_ref_from_frame ( enum AVMediaType  type,
const AVFrame frame,
int  perms 
)

Create and return a buffer reference from the data and properties contained in frame.

Parameters
permspermissions to assign to the new buffer reference

Definition at line 116 of file avcodec.c.

Referenced by av_buffersrc_add_frame(), and frame_to_buf().

int avfilter_copy_buf_props ( AVFrame dst,
const AVFilterBufferRef src 
)

Copy the frame properties and data pointers of src to dst, without copying the actual data.

Returns
0 on success, a negative number on error.

Definition at line 130 of file avcodec.c.

Referenced by reap_filters(), and video_thread().