ReactOS 0.4.16-dev-250-g3ecd236
v4l.c File Reference
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include "windef.h"
#include "winbase.h"
#include "wtypes.h"
#include "wingdi.h"
#include "winuser.h"
#include "dshow.h"
#include "vfwmsgs.h"
#include "amvideo.h"
#include "wine/debug.h"
#include "wine/library.h"
#include "capture.h"
#include "qcap_main.h"
Include dependency graph for v4l.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 
#define FAIL_WITH_ERR
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (qcap_v4l)
 
Captureqcap_driver_init (IPin *pOut, USHORT card)
 
HRESULT qcap_driver_destroy (Capture *capBox)
 
HRESULT qcap_driver_set_format (Capture *capBox, AM_MEDIA_TYPE *mT)
 
HRESULT qcap_driver_get_format (const Capture *capBox, AM_MEDIA_TYPE **mT)
 
HRESULT qcap_driver_get_prop_range (Capture *capBox, VideoProcAmpProperty Property, LONG *pMin, LONG *pMax, LONG *pSteppingDelta, LONG *pDefault, LONG *pCapsFlags)
 
HRESULT qcap_driver_get_prop (Capture *capBox, VideoProcAmpProperty Property, LONG *lValue, LONG *Flags)
 
HRESULT qcap_driver_set_prop (Capture *capBox, VideoProcAmpProperty Property, LONG lValue, LONG Flags)
 
HRESULT qcap_driver_run (Capture *capBox, FILTER_STATE *state)
 
HRESULT qcap_driver_pause (Capture *capBox, FILTER_STATE *state)
 
HRESULT qcap_driver_stop (Capture *capBox, FILTER_STATE *state)
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 28 of file v4l.c.

◆ FAIL_WITH_ERR

#define FAIL_WITH_ERR
Value:
ERR("v4l absent: shouldn't be called\n"); \
return E_NOTIMPL
#define ERR(fmt,...)
Definition: precomp.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

Definition at line 925 of file v4l.c.

Function Documentation

◆ qcap_driver_destroy()

HRESULT qcap_driver_destroy ( Capture capBox)

Definition at line 929 of file v4l.c.

930{
932}
#define FAIL_WITH_ERR
Definition: v4l.c:925

Referenced by unknown_inner_Release().

◆ qcap_driver_get_format()

HRESULT qcap_driver_get_format ( const Capture capBox,
AM_MEDIA_TYPE **  mT 
)

Definition at line 939 of file v4l.c.

940{
942}

Referenced by AMStreamConfig_GetFormat(), VfwPin_EnumMediaTypes(), and VfwPin_GetMediaType().

◆ qcap_driver_get_prop()

HRESULT qcap_driver_get_prop ( Capture capBox,
VideoProcAmpProperty  Property,
LONG lValue,
LONG Flags 
)

Definition at line 951 of file v4l.c.

953{
955}

Referenced by AMVideoProcAmp_Get().

◆ qcap_driver_get_prop_range()

HRESULT qcap_driver_get_prop_range ( Capture capBox,
VideoProcAmpProperty  Property,
LONG pMin,
LONG pMax,
LONG pSteppingDelta,
LONG pDefault,
LONG pCapsFlags 
)

Definition at line 944 of file v4l.c.

947{
949}

Referenced by AMVideoProcAmp_GetRange().

◆ qcap_driver_init()

Capture * qcap_driver_init ( IPin pOut,
USHORT  card 
)

Definition at line 916 of file v4l.c.

917{
918 const char msg[] =
919 "The v4l headers were not available at compile time,\n"
920 "so video capture support is not available.\n";
921 MESSAGE(msg);
922 return NULL;
923}
#define msg(x)
Definition: auth_time.c:54
#define NULL
Definition: types.h:112
#define MESSAGE
Definition: options.h:86

Referenced by PPB_Load().

◆ qcap_driver_pause()

HRESULT qcap_driver_pause ( Capture capBox,
FILTER_STATE *  state 
)

Definition at line 968 of file v4l.c.

969{
971}

Referenced by VfwCapture_Pause().

◆ qcap_driver_run()

HRESULT qcap_driver_run ( Capture capBox,
FILTER_STATE *  state 
)

Definition at line 963 of file v4l.c.

964{
966}

Referenced by VfwCapture_Run().

◆ qcap_driver_set_format()

HRESULT qcap_driver_set_format ( Capture capBox,
AM_MEDIA_TYPE mT 
)

Definition at line 934 of file v4l.c.

935{
937}

Referenced by AMStreamConfig_SetFormat().

◆ qcap_driver_set_prop()

HRESULT qcap_driver_set_prop ( Capture capBox,
VideoProcAmpProperty  Property,
LONG  lValue,
LONG  Flags 
)

Definition at line 957 of file v4l.c.

959{
961}

Referenced by AMVideoProcAmp_Set().

◆ qcap_driver_stop()

HRESULT qcap_driver_stop ( Capture capBox,
FILTER_STATE *  state 
)

Definition at line 973 of file v4l.c.

974{
976}

Referenced by unknown_inner_Release(), and VfwCapture_Stop().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( qcap_v4l  )