|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/delay.h>#include <linux/fs.h>#include <linux/timer.h>#include <linux/sched.h>#include <linux/slab.h>#include <linux/platform_device.h>#include <media/v4l2-mem2mem.h>#include <media/v4l2-device.h>#include <media/v4l2-ioctl.h>#include <media/v4l2-ctrls.h>#include <media/v4l2-event.h>#include <media/videobuf2-vmalloc.h>Go to the source code of this file.
Data Structures | |
| struct | m2mtest_fmt |
| struct | m2mtest_q_data |
| struct | m2mtest_dev |
| struct | m2mtest_ctx |
Macros | |
| #define | MEM2MEM_TEST_MODULE_NAME "mem2mem-testdev" |
| #define | MIN_W 32 |
| #define | MIN_H 32 |
| #define | MAX_W 640 |
| #define | MAX_H 480 |
| #define | DIM_ALIGN_MASK 7 /* 8-byte alignment for line length */ |
| #define | MEM2MEM_CAPTURE (1 << 0) |
| #define | MEM2MEM_OUTPUT (1 << 1) |
| #define | MEM2MEM_NAME "m2m-testdev" |
| #define | MEM2MEM_DEF_NUM_BUFS VIDEO_MAX_FRAME |
| #define | MEM2MEM_VID_MEM_LIMIT (16 * 1024 * 1024) |
| #define | MEM2MEM_DEF_TRANSTIME 1000 |
| #define | MEM2MEM_DEF_TRANSLEN 1 |
| #define | MEM2MEM_COLOR_STEP (0xff >> 4) |
| #define | MEM2MEM_NUM_TILES 8 |
| #define | MEM2MEM_HFLIP (1 << 0) |
| #define | MEM2MEM_VFLIP (1 << 1) |
| #define | dprintk(dev, fmt, arg...) v4l2_dbg(1, 1, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg) |
| #define | NUM_FORMATS ARRAY_SIZE(formats) |
| #define | V4L2_CID_TRANS_TIME_MSEC (V4L2_CID_USER_BASE + 0x1000) |
| #define | V4L2_CID_TRANS_NUM_BUFS (V4L2_CID_USER_BASE + 0x1001) |
Enumerations | |
| enum | { V4L2_M2M_SRC = 0, V4L2_M2M_DST = 1 } |
Functions | |
| MODULE_DESCRIPTION ("Virtual device for mem2mem framework testing") | |
| MODULE_AUTHOR ("Pawel Osciak, <[email protected]>") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_VERSION ("0.1.1") | |
| module_init (m2mtest_init) | |
| module_exit (m2mtest_exit) | |
Definition at line 45 of file mem2mem_testdev.c.
Definition at line 69 of file mem2mem_testdev.c.
| #define MAX_H 480 |
Definition at line 44 of file mem2mem_testdev.c.
| #define MAX_W 640 |
Definition at line 43 of file mem2mem_testdev.c.
| #define MEM2MEM_CAPTURE (1 << 0) |
Definition at line 48 of file mem2mem_testdev.c.
| #define MEM2MEM_COLOR_STEP (0xff >> 4) |
Definition at line 62 of file mem2mem_testdev.c.
| #define MEM2MEM_DEF_NUM_BUFS VIDEO_MAX_FRAME |
Definition at line 54 of file mem2mem_testdev.c.
| #define MEM2MEM_DEF_TRANSLEN 1 |
Definition at line 61 of file mem2mem_testdev.c.
| #define MEM2MEM_DEF_TRANSTIME 1000 |
Definition at line 59 of file mem2mem_testdev.c.
| #define MEM2MEM_HFLIP (1 << 0) |
Definition at line 66 of file mem2mem_testdev.c.
| #define MEM2MEM_NAME "m2m-testdev" |
Definition at line 51 of file mem2mem_testdev.c.
| #define MEM2MEM_NUM_TILES 8 |
Definition at line 63 of file mem2mem_testdev.c.
| #define MEM2MEM_OUTPUT (1 << 1) |
Definition at line 49 of file mem2mem_testdev.c.
| #define MEM2MEM_TEST_MODULE_NAME "mem2mem-testdev" |
Definition at line 34 of file mem2mem_testdev.c.
| #define MEM2MEM_VFLIP (1 << 1) |
Definition at line 67 of file mem2mem_testdev.c.
| #define MEM2MEM_VID_MEM_LIMIT (16 * 1024 * 1024) |
Definition at line 56 of file mem2mem_testdev.c.
| #define MIN_H 32 |
Definition at line 42 of file mem2mem_testdev.c.
| #define MIN_W 32 |
Definition at line 41 of file mem2mem_testdev.c.
| #define NUM_FORMATS ARRAY_SIZE(formats) |
Definition at line 106 of file mem2mem_testdev.c.
| #define V4L2_CID_TRANS_NUM_BUFS (V4L2_CID_USER_BASE + 0x1001) |
Definition at line 122 of file mem2mem_testdev.c.
| #define V4L2_CID_TRANS_TIME_MSEC (V4L2_CID_USER_BASE + 0x1000) |
Definition at line 121 of file mem2mem_testdev.c.
| anonymous enum |
Definition at line 116 of file mem2mem_testdev.c.
| MODULE_AUTHOR | ( | "Pawel | Osciak, |
| < pawel @osciak.com >" | |||
| ) |
| module_exit | ( | m2mtest_exit | ) |
| module_init | ( | m2mtest_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| MODULE_VERSION | ( | "0.1.1" | ) |
1.8.2