cx18_vapi
cx18_vapi(cx, CX18_APU_START, 2, CX18_APU_ENCODING_METHOD_MPEG|0xb9, 0);
cx18_vapi(cx, CX18_APU_RESETAI, 0);
cx18_vapi(cx, CX18_APU_STOP, 1, CX18_APU_ENCODING_METHOD_MPEG);
cx18_vapi(cx, CX18_APU_START, 2, CX18_APU_ENCODING_METHOD_MPEG|0xb9, 0);
cx18_vapi(cx, CX18_APU_RESETAI, 0);
cx18_vapi(cx, CX18_APU_STOP, 1, CX18_APU_ENCODING_METHOD_MPEG);
cx18_vapi(cx, CX18_CPU_CAPTURE_PAUSE, 1, s->handle);
cx18_vapi(cx, CX18_CPU_SET_VIDEO_MUTE, 2, s->handle,
cx18_vapi(cx, CX18_CPU_SET_AUDIO_MUTE, 2, h, 1);
cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 2, h, 12);
cx18_vapi(cx, CX18_CPU_SET_AUDIO_MUTE, 2, h, 0);
cx18_vapi(cx, CX18_CPU_CAPTURE_PAUSE, 1, h);
cx18_vapi(cx, CX18_CPU_CAPTURE_RESUME, 1, h);
ret = cx18_vapi(cx, CX18_CPU_SET_FILTER_PARAM, 4,
ret = ret ? ret : cx18_vapi(cx, CX18_CPU_SET_FILTER_PARAM, 4,
ret = ret ? ret : cx18_vapi(cx, CX18_CPU_SET_FILTER_PARAM, 4,
return cx18_vapi(cx, CX18_CPU_SET_VIDEO_IN, 6,
return cx18_vapi(cx, CX18_CPU_SET_VIDEO_RESOLUTION, 3,
return cx18_vapi(cx, CX18_CPU_SET_STREAM_OUTPUT_TYPE, 2,
return cx18_vapi(cx, CX18_CPU_SET_ASPECT_RATIO, 2,
return cx18_vapi(cx, CX18_CPU_SET_GOP_STRUCTURE, 3,
return cx18_vapi(cx, CX18_CPU_SET_AUDIO_PARAMETERS, 2,
return cx18_vapi(cx, CX18_CPU_SET_AUDIO_MUTE, 2,
return cx18_vapi(cx, CX18_CPU_SET_VIDEO_RATE, 5,
return cx18_vapi(cx, CX18_CPU_SET_VIDEO_MUTE, 2,
return cx18_vapi(cx, CX18_CPU_SET_SKIP_INPUT_FRAME, 2,
return cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 4,
return cx18_vapi(cx, CX18_CPU_SET_SPATIAL_FILTER_TYPE, 3,
return cx18_vapi(cx, CX18_CPU_SET_MEDIAN_CORING, 5,
int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...);
cx18_vapi(cx, CX18_CPU_DE_RELEASE_MDL, 1, s->handle);
cx18_vapi(cx, CX18_DESTROY_TASK, 1, s->handle);
cx18_vapi(cx, CX18_CPU_DE_SET_MDL, 5, s->handle,
cx18_vapi(cx, CX18_CPU_SET_CHANNEL_TYPE, 2, s->handle, captype);
cx18_vapi(cx, CX18_CPU_SET_VER_CROP_LINE, 2, s->handle, 0);
cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 3, 1);
cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 8, 0);
cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 3, s->handle, 4, 1);
cx18_vapi(cx, CX18_CPU_SET_MISC_PARAMETERS, 2,
cx18_vapi(cx, CX18_CPU_SET_CAPTURE_LINE_NO, 3,
cx18_vapi(cx, CX18_CPU_SET_VIDEO_MUTE, 2, s->handle,
cx18_vapi(cx, CX18_CPU_SET_VFC_PARAM, 2,
cx18_vapi(cx, CX18_CPU_SET_VFC_PARAM, 2,
cx18_vapi(cx, CX18_CPU_DE_SET_MDL_ACK, 3, s->handle,
if (cx18_vapi(cx, CX18_CPU_CAPTURE_START, 1, s->handle)) {
cx18_vapi(cx, CX18_CPU_CAPTURE_STOP, 2, s->handle, 1);
cx18_vapi(cx, CX18_CPU_CAPTURE_STOP, 1, s->handle);
cx18_vapi(cx, CX18_CPU_DE_RELEASE_MDL, 1, s->handle);
cx18_vapi(cx, CX18_DESTROY_TASK, 1, s->handle);
cx18_vapi(cx, CX18_CPU_CAPTURE_STOP, 2, s->handle, !gop_end);
cx18_vapi(cx, CX18_CPU_CAPTURE_STOP, 1, s->handle);