Doxygen Source Code Documentation
video_out_null.c File Reference
#include "config.h"#include <stdlib.h>#include <inttypes.h>#include "video_out.h"#include "convert.h"Go to the source code of this file.
Functions | |
| void | null_draw_frame (vo_instance_t *instance, uint8_t *const *buf, void *id) |
| vo_instance_t * | internal_open (int setup(vo_instance_t *, int, int, vo_setup_result_t *)) |
| int | null_setup (vo_instance_t *instance, int width, int height, vo_setup_result_t *result) |
| vo_instance_t * | vo_null_open (void) |
| void | nullslice_start (void *id, uint8_t *const *dest, int flags) |
| void | nullslice_copy (void *id, uint8_t *const *src, unsigned int v_offset) |
| void | nullslice_convert (int width, int height, uint32_t accel, void *arg, convert_init_t *result) |
| int | nullslice_setup (vo_instance_t *instance, int width, int height, vo_setup_result_t *result) |
| vo_instance_t * | vo_nullslice_open (void) |
| int | nullrgb16_setup (vo_instance_t *instance, int width, int height, vo_setup_result_t *result) |
| int | nullrgb32_setup (vo_instance_t *instance, int width, int height, vo_setup_result_t *result) |
| vo_instance_t * | vo_nullrgb16_open (void) |
| vo_instance_t * | vo_nullrgb32_open (void) |
Function Documentation
|
|
Definition at line 37 of file video_out_null.c. References vo_instance_s::close, vo_instance_s::discard, vo_instance_s::draw, malloc, null_draw_frame(), vo_instance_s::set_fbuf, vo_instance_s::setup, vo_instance_s::setup_fbuf, and vo_instance_s::start_fbuf.
00039 {
00040 vo_instance_t * instance;
00041
00042 instance = (vo_instance_t *) malloc (sizeof (vo_instance_t));
00043 if (instance == NULL)
00044 return NULL;
00045
00046 instance->setup = setup;
00047 instance->setup_fbuf = NULL;
00048 instance->set_fbuf = NULL;
00049 instance->start_fbuf = NULL;
00050 instance->draw = null_draw_frame;
00051 instance->discard = NULL;
00052 instance->close = NULL;
00053
00054 return instance;
00055 }
|
|
||||||||||||||||
|
Definition at line 32 of file video_out_null.c. References uint8_t. Referenced by internal_open().
00034 {
00035 }
|
|
||||||||||||||||||||
|
Definition at line 57 of file video_out_null.c. References vo_setup_result_t::convert. Referenced by vo_null_open().
00059 {
00060 result->convert = NULL;
00061 return 0;
00062 }
|
|
||||||||||||||||||||
|
Definition at line 99 of file video_out_null.c. References vo_setup_result_t::convert. Referenced by vo_nullrgb16_open().
00101 {
00102 result->convert = convert_rgb16;
00103 return 0;
00104 }
|
|
||||||||||||||||||||
|
Definition at line 106 of file video_out_null.c. References vo_setup_result_t::convert. Referenced by vo_nullrgb32_open().
00108 {
00109 result->convert = convert_rgb32;
00110 return 0;
00111 }
|
|
||||||||||||||||||||||||
|
Definition at line 78 of file video_out_null.c. References arg, convert_init_s::buf_size, convert_init_s::copy, convert_init_s::id_size, nullslice_copy(), nullslice_start(), convert_init_s::start, and uint32_t. Referenced by nullslice_setup().
00080 {
00081 result->id_size = 0;
00082 result->buf_size[0] = result->buf_size[1] = result->buf_size[2] = 0;
00083 result->start = nullslice_start;
00084 result->copy = nullslice_copy;
00085 }
|
|
||||||||||||||||
|
Definition at line 73 of file video_out_null.c. References uint8_t. Referenced by nullslice_convert().
00075 {
00076 }
|
|
||||||||||||||||||||
|
Definition at line 87 of file video_out_null.c. References vo_setup_result_t::convert, and nullslice_convert(). Referenced by vo_nullslice_open().
00089 {
00090 result->convert = nullslice_convert;
00091 return 0;
00092 }
|
|
||||||||||||||||
|
Definition at line 69 of file video_out_null.c. References flags, and uint8_t. Referenced by nullslice_convert().
00070 {
00071 }
|
|
|
Definition at line 64 of file video_out_null.c. References internal_open(), and null_setup().
00065 {
00066 return internal_open (null_setup);
00067 }
|
|
|
Definition at line 113 of file video_out_null.c. References internal_open(), and nullrgb16_setup().
00114 {
00115 return internal_open (nullrgb16_setup);
00116 }
|
|
|
Definition at line 118 of file video_out_null.c. References internal_open(), and nullrgb32_setup().
00119 {
00120 return internal_open (nullrgb32_setup);
00121 }
|
|
|
Definition at line 94 of file video_out_null.c. References internal_open(), and nullslice_setup().
00095 {
00096 return internal_open (nullslice_setup);
00097 }
|