libavfilter/avcodec.h File Reference

libavcodec/libavfilter gluing utilities More...

#include "libavcodec/avcodec.h"
#include "avfilter.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.
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.
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.
attribute_deprecated int avfilter_fill_frame_from_audio_buffer_ref (AVFrame *frame, const AVFilterBufferRef *samplesref)
 Fill an AVFrame with the information stored in samplesref.
attribute_deprecated int avfilter_fill_frame_from_video_buffer_ref (AVFrame *frame, const AVFilterBufferRef *picref)
 Fill an AVFrame with the information stored in picref.
attribute_deprecated int avfilter_fill_frame_from_buffer_ref (AVFrame *frame, const AVFilterBufferRef *ref)
 Fill an AVFrame with information stored in ref.
int av_buffersrc_add_frame (AVFilterContext *buffer_src, const AVFrame *frame, int flags)
 Add frame data to buffer_src.


Detailed Description

libavcodec/libavfilter gluing utilities

This should be included in an application ONLY if the installed libavfilter has been compiled with libavcodec support, otherwise symbols defined below will not be available.

Definition in file avcodec.h.


Function Documentation

int av_buffersrc_add_frame ( AVFilterContext buffer_src,
const AVFrame frame,
int  flags 
)

Add frame data to buffer_src.

Parameters:
buffer_src pointer to a buffer source context
frame a frame, or NULL to mark EOF
flags a combination of AV_BUFFERSRC_FLAG_*
Returns:
>= 0 in case of success, a negative AVERROR code in case of failure

Definition at line 78 of file buffersrc.c.

Referenced by av_buffersrc_write_frame(), decode_video(), and main().

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 108 of file avcodec.c.

Referenced by avfilter_fill_frame_from_audio_buffer_ref(), avfilter_fill_frame_from_buffer_ref(), avfilter_fill_frame_from_video_buffer_ref(), reap_filters(), and video_thread().

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().

attribute_deprecated int avfilter_fill_frame_from_audio_buffer_ref ( AVFrame frame,
const AVFilterBufferRef samplesref 
)

Fill an AVFrame with the information stored in samplesref.

Parameters:
frame an already allocated AVFrame
samplesref an audio buffer reference
Returns:
0 in case of success, a negative AVERROR code in case of failure
Deprecated:
Use avfilter_copy_buf_props() instead.

Definition at line 160 of file avcodec.c.

attribute_deprecated int avfilter_fill_frame_from_buffer_ref ( AVFrame frame,
const AVFilterBufferRef ref 
)

Fill an AVFrame with information stored in ref.

Parameters:
frame an already allocated AVFrame
ref a video or audio buffer reference
Returns:
0 in case of success, a negative AVERROR code in case of failure
Deprecated:
Use avfilter_copy_buf_props() instead.

Definition at line 172 of file avcodec.c.

attribute_deprecated int avfilter_fill_frame_from_video_buffer_ref ( AVFrame frame,
const AVFilterBufferRef picref 
)

Fill an AVFrame with the information stored in picref.

Parameters:
frame an already allocated AVFrame
picref a video buffer reference
Returns:
0 in case of success, a negative AVERROR code in case of failure
Deprecated:
Use avfilter_copy_buf_props() instead.

Definition at line 166 of file avcodec.c.

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:
perms permissions to assign to the new buffer reference

Definition at line 81 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:
perms permissions to assign to the new buffer reference

Definition at line 94 of file avcodec.c.

Referenced by av_buffersrc_add_frame(), and frame_to_buf().

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:
perms permissions to assign to the new buffer reference

Definition at line 68 of file avcodec.c.

Referenced by avfilter_get_buffer_ref_from_frame().


Generated on Fri Oct 26 02:50:04 2012 for FFmpeg by  doxygen 1.5.8