Blender V2.61 - r43446
Classes | Typedefs | Functions

screendump.c File Reference

#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_image.h"
#include "BKE_report.h"
#include "BKE_writeavi.h"
#include "BIF_gl.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_types.h"
#include "WM_api.h"
#include "PIL_time.h"
#include "ED_screen_types.h"
#include "screen_intern.h"

Go to the source code of this file.

Classes

struct  ScreenshotData
struct  ScreenshotJob

Typedefs

typedef struct ScreenshotData ScreenshotData
typedef struct ScreenshotJob ScreenshotJob

Functions

static unsigned int * screenshot (bContext *C, int *dumpsx, int *dumpsy)
static int screenshot_data_create (bContext *C, wmOperator *op)
static void screenshot_data_free (wmOperator *op)
static void screenshot_crop (ImBuf *ibuf, rcti crop)
static int screenshot_exec (bContext *C, wmOperator *op)
static int screenshot_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static int screenshot_cancel (bContext *UNUSED(C), wmOperator *op)
void SCREEN_OT_screenshot (wmOperatorType *ot)
static void screenshot_freejob (void *sjv)
static void screenshot_updatejob (void *sjv)
static void screenshot_startjob (void *sjv, short *stop, short *do_update, float *UNUSED(progress))
static int screencast_exec (bContext *C, wmOperator *op)
void SCREEN_OT_screencast (wmOperatorType *ot)

Detailed Description

Definition in file screendump.c.


Typedef Documentation

typedef struct ScreenshotJob ScreenshotJob

Function Documentation

void SCREEN_OT_screencast ( wmOperatorType ot)
void SCREEN_OT_screenshot ( wmOperatorType ot)
static int screencast_exec ( bContext C,
wmOperator op 
) [static]
static unsigned int* screenshot ( bContext C,
int *  dumpsx,
int *  dumpsy 
) [static]

Definition at line 75 of file screendump.c.

References CTX_wm_window(), MEM_mallocN(), NULL, wmWindow::sizex, and wmWindow::sizey.

Referenced by screenshot_data_create().

static int screenshot_cancel ( bContext UNUSEDC,
wmOperator op 
) [static]

Definition at line 213 of file screendump.c.

References OPERATOR_CANCELLED, and screenshot_data_free().

Referenced by SCREEN_OT_screenshot().

static void screenshot_crop ( ImBuf ibuf,
rcti  crop 
) [static]

Definition at line 140 of file screendump.c.

References ImBuf::rect, ImBuf::x, rcti::xmax, rcti::xmin, ImBuf::y, rcti::ymax, and rcti::ymin.

Referenced by screenshot_exec().

static int screenshot_data_create ( bContext C,
wmOperator op 
) [static]
static void screenshot_data_free ( wmOperator op) [static]

Definition at line 128 of file screendump.c.

References wmOperator::customdata, ScreenshotData::dumprect, MEM_freeN(), and NULL.

Referenced by screenshot_cancel(), and screenshot_exec().

static int screenshot_exec ( bContext C,
wmOperator op 
) [static]
static void screenshot_freejob ( void *  sjv) [static]

Definition at line 248 of file screendump.c.

References ScreenshotJob::dumprect, and MEM_freeN().

Referenced by screencast_exec().

static int screenshot_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static void screenshot_startjob ( void *  sjv,
short *  stop,
short *  do_update,
float *  UNUSEDprogress 
) [static]
static void screenshot_updatejob ( void *  sjv) [static]