libavfilter/video.c File Reference

#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Functions

static char * ff_get_ref_perms_string (char *buf, size_t buf_size, int perms)
static void ff_dlog_ref (void *ctx, AVFilterBufferRef *ref, int end)
AVFilterBufferRefff_null_get_video_buffer (AVFilterLink *link, int perms, int w, int h)
AVFilterBufferRefff_default_get_video_buffer (AVFilterLink *link, int perms, int w, int h)
AVFilterBufferRefavfilter_get_video_buffer_ref_from_arrays (uint8_t *const data[4], const int linesize[4], int perms, int w, int h, enum PixelFormat format)
 Create a buffer reference wrapped around an already allocated image buffer.
AVFilterBufferRefavfilter_get_video_buffer (AVFilterLink *link, int perms, int w, int h)
 Request a picture buffer with a specific set of permissions.
void ff_null_start_frame (AVFilterLink *link, AVFilterBufferRef *picref)
static void default_start_frame (AVFilterLink *inlink, AVFilterBufferRef *picref)
void avfilter_start_frame (AVFilterLink *link, AVFilterBufferRef *picref)
 Notify the next filter of the start of a frame.
void ff_null_end_frame (AVFilterLink *link)
static void default_end_frame (AVFilterLink *inlink)
void avfilter_end_frame (AVFilterLink *link)
 Notify the next filter that the current frame has finished.
void ff_null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)
static void default_draw_slice (AVFilterLink *inlink, int y, int h, int slice_dir)
void avfilter_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)
 Send a slice to the next filter.
AVFilterBufferRefavfilter_default_get_video_buffer (AVFilterLink *link, int perms, int w, int h)
 default handler for get_video_buffer() for video inputs
void avfilter_default_start_frame (AVFilterLink *inlink, AVFilterBufferRef *picref)
 default handler for start_frame() for video inputs
void avfilter_default_end_frame (AVFilterLink *inlink)
 default handler for end_frame() for video inputs
void avfilter_default_draw_slice (AVFilterLink *inlink, int y, int h, int slice_dir)
 default handler for draw_slice() for video inputs
AVFilterBufferRefavfilter_null_get_video_buffer (AVFilterLink *link, int perms, int w, int h)
 get_video_buffer() handler for filters which simply pass video along
void avfilter_null_start_frame (AVFilterLink *link, AVFilterBufferRef *picref)
 start_frame() handler for filters which simply pass video along
void avfilter_null_end_frame (AVFilterLink *link)
 end_frame() handler for filters which simply pass video along
void avfilter_null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)
 draw_slice() handler for filters which simply pass video along


Function Documentation

void avfilter_default_draw_slice ( AVFilterLink inlink,
int  y,
int  h,
int  slice_dir 
)

default handler for draw_slice() for video inputs

Definition at line 369 of file video.c.

void avfilter_default_end_frame ( AVFilterLink inlink  ) 

default handler for end_frame() for video inputs

Definition at line 365 of file video.c.

Referenced by end_frame().

AVFilterBufferRef* avfilter_default_get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)

default handler for get_video_buffer() for video inputs

Definition at line 357 of file video.c.

Referenced by get_video_buffer().

void avfilter_default_start_frame ( AVFilterLink inlink,
AVFilterBufferRef picref 
)

default handler for start_frame() for video inputs

Definition at line 361 of file video.c.

void avfilter_draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
)

Send a slice to the next filter.

Slices have to be provided in sequential order, either in top-bottom or bottom-top order. If slices are provided in non-sequential order the behavior of the function is undefined.

Parameters:
link the output link over which the frame is being sent
y offset in pixels from the top of the image for this slice
h height of this slice in pixels
slice_dir the assumed direction for sending slices, from the top slice to the bottom slice if the value is 1, from the bottom slice to the top slice if the value is -1, for other values the behavior of the function is undefined.

Definition at line 315 of file video.c.

Referenced by color_request_frame(), default_draw_slice(), draw_send_bar_slice(), draw_slice(), end_frame(), end_last_frame(), ff_null_draw_slice(), request_frame(), return_frame(), and vf_next_put_image().

void avfilter_end_frame ( AVFilterLink link  ) 

Notify the next filter that the current frame has finished.

Parameters:
link the output link the frame was sent over

Definition at line 282 of file video.c.

Referenced by color_request_frame(), default_end_frame(), end_frame(), end_last_frame(), ff_null_end_frame(), request_frame(), return_frame(), and vf_next_put_image().

AVFilterBufferRef* avfilter_get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)

Request a picture buffer with a specific set of permissions.

Parameters:
link the output link to the filter from which the buffer will be requested
perms the required access permissions
w the minimum width of the buffer to allocate
h the minimum height of the buffer to allocate
Returns:
A reference to the buffer. This must be unreferenced with avfilter_unref_buffer when you are finished with it.

Definition at line 170 of file video.c.

Referenced by avfilter_start_frame(), color_request_frame(), copy_buffer_ref(), default_start_frame(), end_frame(), ff_null_get_video_buffer(), get_video_buffer(), request_frame(), return_frame(), source_request_frame(), and start_frame().

AVFilterBufferRef* avfilter_get_video_buffer_ref_from_arrays ( uint8_t *const   data[4],
const int  linesize[4],
int  perms,
int  w,
int  h,
enum PixelFormat  format 
)

Create a buffer reference wrapped around an already allocated image buffer.

Parameters:
data pointers to the planes of the image to reference
linesize linesizes for the planes of the image to reference
perms the required access permissions
w the width of the image specified by the data and linesize arrays
h the height of the image specified by the data and linesize arrays
format the pixel format of the image specified by the data and linesize arrays

Definition at line 126 of file video.c.

Referenced by avfilter_get_video_buffer_ref_from_frame(), decode_video(), and ff_default_get_video_buffer().

void avfilter_null_draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
)

draw_slice() handler for filters which simply pass video along

Definition at line 385 of file video.c.

void avfilter_null_end_frame ( AVFilterLink link  ) 

end_frame() handler for filters which simply pass video along

Definition at line 381 of file video.c.

AVFilterBufferRef* avfilter_null_get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)

get_video_buffer() handler for filters which simply pass video along

Definition at line 373 of file video.c.

void avfilter_null_start_frame ( AVFilterLink link,
AVFilterBufferRef picref 
)

start_frame() handler for filters which simply pass video along

Definition at line 377 of file video.c.

void avfilter_start_frame ( AVFilterLink link,
AVFilterBufferRef picref 
)

Notify the next filter of the start of a frame.

Parameters:
link the output link the frame will be sent over
picref A reference to the frame about to be sent. The data for this frame need only be valid once draw_slice() is called for that portion. The receiving filter will free this reference when it no longer needs it.

Definition at line 213 of file video.c.

Referenced by color_request_frame(), default_start_frame(), end_frame(), ff_null_start_frame(), ff_null_start_frame_keep_ref(), request_frame(), return_frame(), source_request_frame(), start_frame(), and vf_next_put_image().

static void default_draw_slice ( AVFilterLink inlink,
int  y,
int  h,
int  slice_dir 
) [static]

Definition at line 304 of file video.c.

Referenced by avfilter_default_draw_slice(), and avfilter_draw_slice().

static void default_end_frame ( AVFilterLink inlink  )  [static]

Definition at line 263 of file video.c.

Referenced by avfilter_default_end_frame(), and avfilter_end_frame().

static void default_start_frame ( AVFilterLink inlink,
AVFilterBufferRef picref 
) [static]

Definition at line 197 of file video.c.

Referenced by avfilter_default_start_frame(), and avfilter_start_frame().

AVFilterBufferRef* ff_default_get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)

static void ff_dlog_ref ( void *  ctx,
AVFilterBufferRef ref,
int  end 
) [static]

Definition at line 41 of file video.c.

Referenced by avfilter_get_video_buffer(), and avfilter_start_frame().

static char* ff_get_ref_perms_string ( char *  buf,
size_t  buf_size,
int  perms 
) [static]

Definition at line 29 of file video.c.

Referenced by avfilter_get_video_buffer(), and ff_dlog_ref().

void ff_null_draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
)

Definition at line 299 of file video.c.

Referenced by avfilter_null_draw_slice().

void ff_null_end_frame ( AVFilterLink link  ) 

Definition at line 258 of file video.c.

Referenced by avfilter_null_end_frame().

AVFilterBufferRef* ff_null_get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
)

Definition at line 69 of file video.c.

Referenced by avfilter_null_get_video_buffer().

void ff_null_start_frame ( AVFilterLink link,
AVFilterBufferRef picref 
)

Definition at line 192 of file video.c.

Referenced by avfilter_null_start_frame().


Generated on Fri Oct 26 02:48:01 2012 for FFmpeg by  doxygen 1.5.8