libavdevice/vfwcap.c File Reference
#include "libavformat/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include <windows.h>
#include <vfw.h>
#include "avdevice.h"
Go to the source code of this file.
 | 
 Data Structures | 
| struct   | vfw_ctx | 
 Defines | 
| #define  | HWND_MESSAGE   ((HWND)-3) | 
| #define  | dstruct(pctx, sname, var, type)   av_log(pctx, AV_LOG_DEBUG, #var":\t%"type"\n", sname->var) | 
| #define  | OFFSET(x)   offsetof(struct vfw_ctx, x) | 
| #define  | DEC   AV_OPT_FLAG_DECODING_PARAM | 
 Functions | 
| static enum PixelFormat  | vfw_pixfmt (DWORD biCompression, WORD biBitCount) | 
| static enum AVCodecID  | vfw_codecid (DWORD biCompression) | 
| static void  | dump_captureparms (AVFormatContext *s, CAPTUREPARMS *cparms) | 
| static void  | dump_videohdr (AVFormatContext *s, VIDEOHDR *vhdr) | 
| static void  | dump_bih (AVFormatContext *s, BITMAPINFOHEADER *bih) | 
| static int  | shall_we_drop (AVFormatContext *s) | 
| static LRESULT CALLBACK  | videostream_cb (HWND hwnd, LPVIDEOHDR vdhdr) | 
| static int  | vfw_read_close (AVFormatContext *s) | 
| static int  | vfw_read_header (AVFormatContext *s) | 
| static int  | vfw_read_packet (AVFormatContext *s, AVPacket *pkt) | 
 Variables | 
| static const AVOption  | options [] | 
| static const AVClass  | vfw_class | 
| AVInputFormat  | ff_vfwcap_demuxer | 
Define Documentation
      
        
          | #define DEC   AV_OPT_FLAG_DECODING_PARAM           | 
        
      
 
 
      
        
          | #define dstruct           | 
          ( | 
          pctx,          | 
           | 
           | 
          sname,          | 
           | 
           | 
          var,          | 
           | 
           | 
          type  | 
                     | 
           )  | 
             av_log(pctx, AV_LOG_DEBUG, #var":\t%"type"\n", sname->var) | 
        
      
 
 
      
        
          | #define HWND_MESSAGE   ((HWND)-3)           | 
        
      
 
 
      
        
          | #define OFFSET           | 
          ( | 
          x  | 
                     | 
           )  | 
             offsetof(struct vfw_ctx, x) | 
        
      
 
 
Function Documentation
      
        
          | static void dump_bih            | 
          ( | 
          AVFormatContext *  | 
           s,  | 
        
        
           | 
           | 
          BITMAPINFOHEADER *  | 
           bih |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
 
      
        
          | static void dump_captureparms            | 
          ( | 
          AVFormatContext *  | 
           s,  | 
        
        
           | 
           | 
          CAPTUREPARMS *  | 
           cparms |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
 
      
        
          | static void dump_videohdr            | 
          ( | 
          AVFormatContext *  | 
           s,  | 
        
        
           | 
           | 
          VIDEOHDR *  | 
           vhdr |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
 
      
        
          | static enum AVCodecID vfw_codecid            | 
          ( | 
          DWORD  | 
           biCompression           | 
           )  | 
           [static] | 
        
      
 
 
      
        
          | static enum PixelFormat vfw_pixfmt            | 
          ( | 
          DWORD  | 
           biCompression,  | 
        
        
           | 
           | 
          WORD  | 
           biBitCount |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
 
      
        
          | static LRESULT CALLBACK videostream_cb            | 
          ( | 
          HWND  | 
           hwnd,  | 
        
        
           | 
           | 
          LPVIDEOHDR  | 
           vdhdr |   | 
        
        
           | 
          ) | 
           |  |  [static] | 
        
      
 
 
Variable Documentation
Initial value:
Definition at line 474 of file vfwcap.c.
 
 
Initial value:
 {
    { "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(video_size), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { "framerate", "", OFFSET(framerate), AV_OPT_TYPE_STRING, {.str = "ntsc"}, 0, 0, DEC },
    { NULL },
}
 
Definition at line 461 of file vfwcap.c.
 
 
Initial value:
Definition at line 467 of file vfwcap.c.