Lines 82-87
Link Here
|
82 |
/* Force image to be read in RGB instead of BGR. This option allow |
82 |
/* Force image to be read in RGB instead of BGR. This option allow |
83 |
* programs that expect RGB data (e.g. gqcam) to work with this driver. */ |
83 |
* programs that expect RGB data (e.g. gqcam) to work with this driver. */ |
84 |
static int force_rgb = 0; |
84 |
static int force_rgb = 0; |
|
|
85 |
static int force_yuv = 0; |
85 |
static int gamma = 3; |
86 |
static int gamma = 3; |
86 |
static int OffRed = 0; |
87 |
static int OffRed = 0; |
87 |
static int OffBlue = 0; |
88 |
static int OffBlue = 0; |
Lines 108-113
Link Here
|
108 |
module_param(autoexpo, int, 0644); |
109 |
module_param(autoexpo, int, 0644); |
109 |
module_param(debug, int, 0644); |
110 |
module_param(debug, int, 0644); |
110 |
module_param(force_rgb, int, 0644); |
111 |
module_param(force_rgb, int, 0644); |
|
|
112 |
module_param(force_yuv, int, 0644); |
111 |
module_param(gamma, int, 0644); |
113 |
module_param(gamma, int, 0644); |
112 |
module_param(OffRed, int, 0644); |
114 |
module_param(OffRed, int, 0644); |
113 |
module_param(OffBlue, int, 0644); |
115 |
module_param(OffBlue, int, 0644); |
Lines 133-138
Link Here
|
133 |
MODULE_PARM_DESC(debug, |
135 |
MODULE_PARM_DESC(debug, |
134 |
"Debug level: 0=none, 1=init/detection, 2=warning, 3=config/control, 4=function call, 5=max"); |
136 |
"Debug level: 0=none, 1=init/detection, 2=warning, 3=config/control, 4=function call, 5=max"); |
135 |
MODULE_PARM_DESC(force_rgb, "Read RGB instead of BGR"); |
137 |
MODULE_PARM_DESC(force_rgb, "Read RGB instead of BGR"); |
|
|
138 |
MODULE_PARM_DESC(force_yuv, "Force YUV decoding in VC0323"); |
136 |
MODULE_PARM_DESC(gamma, "gamma setting range 0 to 7 3-> gamma=1"); |
139 |
MODULE_PARM_DESC(gamma, "gamma setting range 0 to 7 3-> gamma=1"); |
137 |
MODULE_PARM_DESC(OffRed, "OffRed setting range -128 to 128"); |
140 |
MODULE_PARM_DESC(OffRed, "OffRed setting range -128 to 128"); |
138 |
MODULE_PARM_DESC(OffBlue, "OffBlue setting range -128 to 128"); |
141 |
MODULE_PARM_DESC(OffBlue, "OffBlue setting range -128 to 128"); |
Lines 190-195
Link Here
|
190 |
{S561, "S561"}, |
193 |
{S561, "S561"}, |
191 |
{PGBRG,"GBRG"}, |
194 |
{PGBRG,"GBRG"}, |
192 |
{YUY2, "YUYV"}, |
195 |
{YUY2, "YUYV"}, |
|
|
196 |
{YUY3, "YUYV"}, |
193 |
{PJPG, "JPEG"}, |
197 |
{PJPG, "JPEG"}, |
194 |
{-1, NULL} |
198 |
{-1, NULL} |
195 |
}; |
199 |
}; |
Lines 2917-2923
Link Here
|
2917 |
break; |
2921 |
break; |
2918 |
case BRIDGE_VC0323: |
2922 |
case BRIDGE_VC0323: |
2919 |
spca50x->epadr = 2; |
2923 |
spca50x->epadr = 2; |
2920 |
spca50x->cameratype = JPGV; |
2924 |
spca50x->cameratype = force_yuv ? YUY3 : JPGV; |
2921 |
info("USB GSPCA camera found.(VC0323) "); |
2925 |
info("USB GSPCA camera found.(VC0323) "); |
2922 |
memcpy(&spca50x->funct, &fvc0321, |
2926 |
memcpy(&spca50x->funct, &fvc0321, |
2923 |
sizeof (struct cam_operation)); |
2927 |
sizeof (struct cam_operation)); |