Linux Kernel
3.7.1
|
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/videodev2.h>
#include <linux/io.h>
#include <linux/pm_runtime.h>
#include <media/videobuf2-core.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h>
#include <media/v4l2-mem2mem.h>
#include <media/v4l2-mediabus.h>
#include <media/videobuf2-dma-contig.h>
#include "gsc-regs.h"
Go to the source code of this file.
Data Structures | |
struct | gsc_fmt |
struct | gsc_input_buf |
struct | gsc_addr |
struct | gsc_ctrls |
struct | gsc_scaler |
struct | gsc_frame |
struct | gsc_m2m_device |
struct | gsc_pix_max |
struct | gsc_pix_min |
struct | gsc_pix_align |
struct | gsc_variant |
struct | gsc_driverdata |
struct | gsc_dev |
struct | gsc_ctx |
Macros | |
#define | CONFIG_VB2_GSC_DMA_CONTIG 1 |
#define | GSC_MODULE_NAME "exynos-gsc" |
#define | GSC_SHUTDOWN_TIMEOUT ((100*HZ)/1000) |
#define | GSC_MAX_DEVS 4 |
#define | GSC_M2M_BUF_NUM 0 |
#define | GSC_MAX_CTRL_NUM 10 |
#define | GSC_SC_ALIGN_4 4 |
#define | GSC_SC_ALIGN_2 2 |
#define | DEFAULT_CSC_EQ 1 |
#define | DEFAULT_CSC_RANGE 1 |
#define | GSC_PARAMS (1 << 0) |
#define | GSC_SRC_FMT (1 << 1) |
#define | GSC_DST_FMT (1 << 2) |
#define | GSC_CTX_M2M (1 << 3) |
#define | GSC_CTX_STOP_REQ (1 << 6) |
#define | fh_to_ctx(__fh) container_of(__fh, struct gsc_ctx, fh) |
#define | is_rgb(x) (!!((x) & 0x1)) |
#define | is_yuv420(x) (!!((x) & 0x2)) |
#define | is_yuv422(x) (!!((x) & 0x4)) |
#define | gsc_m2m_active(dev) test_bit(ST_M2M_RUN, &(dev)->state) |
#define | gsc_m2m_pending(dev) test_bit(ST_M2M_PEND, &(dev)->state) |
#define | gsc_m2m_opened(dev) test_bit(ST_M2M_OPEN, &(dev)->state) |
#define | ctrl_to_ctx(__ctrl) container_of((__ctrl)->handler, struct gsc_ctx, ctrl_handler) |
Enumerations | |
enum | gsc_dev_flags { ST_SUSPEND, ST_M2M_OPEN, ST_M2M_RUN, ST_M2M_PEND, ST_M2M_SUSPENDED, ST_M2M_SUSPENDING } |
enum | gsc_irq { GSC_IRQ_DONE, GSC_IRQ_OVERRUN } |
enum | gsc_datapath { GSC_CAMERA = 0x1, GSC_DMA, GSC_MIXER, GSC_FIMD, GSC_WRITEBACK } |
enum | gsc_color_fmt { GSC_RGB = 0x1, GSC_YUV420 = 0x2, GSC_YUV422 = 0x4, GSC_YUV444 = 0x8 } |
enum | gsc_yuv_fmt { GSC_LSB_Y = 0x10, GSC_LSB_C, GSC_CBCR = 0x20, GSC_CRCB } |
#define CONFIG_VB2_GSC_DMA_CONTIG 1 |
Definition at line 31 of file gsc-core.h.
Definition at line 104 of file gsc-core.h.
#define DEFAULT_CSC_EQ 1 |
Definition at line 40 of file gsc-core.h.
#define DEFAULT_CSC_RANGE 1 |
Definition at line 41 of file gsc-core.h.
#define fh_to_ctx | ( | __fh | ) | container_of(__fh, struct gsc_ctx, fh) |
Definition at line 95 of file gsc-core.h.
#define GSC_CTX_M2M (1 << 3) |
Definition at line 46 of file gsc-core.h.
#define GSC_CTX_STOP_REQ (1 << 6) |
Definition at line 47 of file gsc-core.h.
#define GSC_DST_FMT (1 << 2) |
Definition at line 45 of file gsc-core.h.
#define gsc_m2m_active | ( | dev | ) | test_bit(ST_M2M_RUN, &(dev)->state) |
Definition at line 100 of file gsc-core.h.
#define GSC_M2M_BUF_NUM 0 |
Definition at line 36 of file gsc-core.h.
#define gsc_m2m_opened | ( | dev | ) | test_bit(ST_M2M_OPEN, &(dev)->state) |
Definition at line 102 of file gsc-core.h.
#define gsc_m2m_pending | ( | dev | ) | test_bit(ST_M2M_PEND, &(dev)->state) |
Definition at line 101 of file gsc-core.h.
#define GSC_MAX_CTRL_NUM 10 |
Definition at line 37 of file gsc-core.h.
#define GSC_MAX_DEVS 4 |
Definition at line 35 of file gsc-core.h.
#define GSC_MODULE_NAME "exynos-gsc" |
Definition at line 32 of file gsc-core.h.
#define GSC_PARAMS (1 << 0) |
Definition at line 43 of file gsc-core.h.
#define GSC_SC_ALIGN_2 2 |
Definition at line 39 of file gsc-core.h.
#define GSC_SC_ALIGN_4 4 |
Definition at line 38 of file gsc-core.h.
#define GSC_SHUTDOWN_TIMEOUT ((100*HZ)/1000) |
Definition at line 34 of file gsc-core.h.
#define GSC_SRC_FMT (1 << 1) |
Definition at line 44 of file gsc-core.h.
Definition at line 96 of file gsc-core.h.
Definition at line 97 of file gsc-core.h.
Definition at line 98 of file gsc-core.h.
enum gsc_color_fmt |
Definition at line 81 of file gsc-core.h.
enum gsc_datapath |
enum gsc_datapath - the path of data used for G-Scaler : from camera : from/to DMA : to local path : from FIMD
Definition at line 73 of file gsc-core.h.
enum gsc_dev_flags |
Definition at line 49 of file gsc-core.h.
enum gsc_irq |
Definition at line 61 of file gsc-core.h.
enum gsc_yuv_fmt |
Definition at line 88 of file gsc-core.h.
Definition at line 199 of file gsc-core.c.
Definition at line 191 of file gsc-core.c.
Definition at line 230 of file gsc-core.c.
Definition at line 484 of file gsc-core.c.
int gsc_check_scaler_ratio | ( | struct gsc_variant * | var, |
int | sw, | ||
int | sh, | ||
int | dw, | ||
int | dh, | ||
int | rot, | ||
int | out_path | ||
) |
Definition at line 596 of file gsc-core.c.
void gsc_check_src_scale_info | ( | struct gsc_variant * | var, |
struct gsc_frame * | s_frame, | ||
u32 * | wratio, | ||
u32 | tx, | ||
u32 | ty, | ||
u32 * | hratio | ||
) |
Definition at line 265 of file gsc-core.c.
Definition at line 750 of file gsc-core.c.
Definition at line 780 of file gsc-core.c.
int gsc_enum_fmt_mplane | ( | struct v4l2_fmtdesc * | f | ) |
Definition at line 299 of file gsc-core.c.
Definition at line 494 of file gsc-core.c.
int gsc_g_fmt_mplane | ( | struct gsc_ctx * | ctx, |
struct v4l2_format * | f | ||
) |
Definition at line 455 of file gsc-core.c.
Definition at line 248 of file gsc-core.c.
Definition at line 39 of file gsc-regs.c.
Definition at line 399 of file gsc-regs.c.
Definition at line 51 of file gsc-regs.c.
Definition at line 167 of file gsc-regs.c.
Definition at line 147 of file gsc-regs.c.
Definition at line 125 of file gsc-regs.c.
Definition at line 91 of file gsc-regs.c.
Definition at line 63 of file gsc-regs.c.
Definition at line 112 of file gsc-regs.c.
Definition at line 353 of file gsc-regs.c.
Definition at line 284 of file gsc-regs.c.
Definition at line 264 of file gsc-regs.c.
Definition at line 235 of file gsc-regs.c.
Definition at line 102 of file gsc-regs.c.
Definition at line 77 of file gsc-regs.c.
Definition at line 220 of file gsc-regs.c.
Definition at line 341 of file gsc-regs.c.
Definition at line 366 of file gsc-regs.c.
Definition at line 417 of file gsc-regs.c.
Definition at line 19 of file gsc-regs.c.
int gsc_prepare_addr | ( | struct gsc_ctx * | ctx, |
struct vb2_buffer * | vb, | ||
struct gsc_frame * | frame, | ||
struct gsc_addr * | addr | ||
) |
Definition at line 789 of file gsc-core.c.
Definition at line 220 of file gsc-core.c.
Definition at line 330 of file gsc-core.c.
Definition at line 623 of file gsc-core.c.
Definition at line 507 of file gsc-core.c.
int gsc_try_fmt_mplane | ( | struct gsc_ctx * | ctx, |
struct v4l2_format * | f | ||
) |
Definition at line 378 of file gsc-core.c.
Definition at line 24 of file gsc-regs.c.