Go to the source code of this file.
◆ WIN32_API_ERROR
      
        
          | #define WIN32_API_ERROR | 
          ( | 
            | 
          str | ) | 
             av_log(s1, AV_LOG_ERROR, str " (error %li)\n", GetLastError()) | 
        
      
 
 
◆ REGION_WND_BORDER
      
        
          | #define REGION_WND_BORDER   3 | 
        
      
 
 
◆ CURSOR_ERROR
      
        
          | #define CURSOR_ERROR | 
          ( | 
            | 
          str | ) | 
           | 
        
      
 
Value:
        WIN32_API_ERROR(str);             \
        gdigrab->cursor_error_printed = 1;      \
    }
 
 
 
◆ OFFSET
      
        
          | #define OFFSET | 
          ( | 
            | 
          x | ) | 
             offsetof(struct gdigrab, x) | 
        
      
 
 
◆ DEC
◆ gdigrab_region_wnd_proc()
  
  
      
        
          | static LRESULT CALLBACK gdigrab_region_wnd_proc  | 
          ( | 
          HWND  | 
          hwnd,  | 
         
        
           | 
           | 
          UINT  | 
          msg,  | 
         
        
           | 
           | 
          WPARAM  | 
          wparam,  | 
         
        
           | 
           | 
          LPARAM  | 
          lparam  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Callback to handle Windows messages for the region outline window. 
In particular, this handles painting the frame rectangle.
- Parameters
 - 
  
    | hwnd | The region outline window handle.  | 
    | msg | The Windows message.  | 
    | wparam | First Windows message parameter.  | 
    | lparam | Second Windows message parameter.  | 
  
   
- Returns
 - 0 success, !0 failure 
 
Definition at line 89 of file gdigrab.c.
Referenced by gdigrab_region_wnd_init().
 
 
◆ gdigrab_region_wnd_init()
Initialize the region outline window. 
- Parameters
 - 
  
    | s1 | The format context.  | 
    | gdigrab | gdigrab context.  | 
  
   
- Returns
 - 0 success, !0 failure 
 
Definition at line 124 of file gdigrab.c.
Referenced by gdigrab_read_header().
 
 
◆ gdigrab_region_wnd_destroy()
Cleanup/free the region outline window. 
- Parameters
 - 
  
    | s1 | The format context.  | 
    | gdigrab | gdigrab context.  | 
  
   
Definition at line 190 of file gdigrab.c.
Referenced by gdigrab_read_close().
 
 
◆ gdigrab_region_wnd_update()
Process the Windows message queue. 
This is important to prevent Windows from thinking the window has become unresponsive. As well, things like WM_PAINT (to actually draw the window contents) are handled from the message queue context.
- Parameters
 - 
  
    | s1 | The format context.  | 
    | gdigrab | gdigrab context.  | 
  
   
Definition at line 208 of file gdigrab.c.
Referenced by gdigrab_read_packet().
 
 
◆ gdigrab_read_header()
Initializes the gdi grab device demuxer (public device demuxer API). 
- Parameters
 - 
  
    | s1 | Context from avformat core  | 
  
   
- Returns
 - AVERROR_IO error, 0 success 
 
Definition at line 225 of file gdigrab.c.
 
 
◆ paint_mouse_pointer()
Paints a mouse pointer in a Win32 image. 
- Parameters
 - 
  
    | s1 | Context of the log information  | 
    | s | Current grad structure  | 
  
   
Definition at line 470 of file gdigrab.c.
Referenced by gdigrab_read_packet().
 
 
◆ gdigrab_read_packet()
Grabs a frame from gdi (public device demuxer API). 
- Parameters
 - 
  
    | s1 | Context from avformat core  | 
    | pkt | Packet holding the grabbed frame  | 
  
   
- Returns
 - frame size in bytes 
 
Definition at line 558 of file gdigrab.c.
 
 
◆ gdigrab_read_close()
Closes gdi frame grabber (public device demuxer API). 
- Parameters
 - 
  
    | s1 | Context from avformat core  | 
  
   
- Returns
 - 0 success, !0 failure 
 
Definition at line 642 of file gdigrab.c.
 
 
◆ options
◆ gdigrab_class
Initial value:= {
    .class_name = "GDIgrab indev",
}
 
Definition at line 673 of file gdigrab.c.
 
 
◆ ff_gdigrab_demuxer
Initial value:= {
    .p.name         = "gdigrab",
    .priv_data_size = 
sizeof(
struct gdigrab),
 
}
 
gdi grabber device demuxer declaration 
Definition at line 682 of file gdigrab.c.