1 | /* $Id: VideoRec.h 52312 2014-08-07 12:54:38Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * Encodes the screen content in VPX format.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012-2013 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef ____H_VIDEOREC
|
---|
19 | #define ____H_VIDEOREC
|
---|
20 |
|
---|
21 | struct VIDEORECCONTEXT;
|
---|
22 | typedef struct VIDEORECCONTEXT *PVIDEORECCONTEXT;
|
---|
23 |
|
---|
24 | struct VIDEORECSTREAM;
|
---|
25 | typedef struct VIDEORECSTREAM *PVIDEORECSTREAM;
|
---|
26 |
|
---|
27 | int VideoRecContextCreate(PVIDEORECCONTEXT *ppCtx, uint32_t cScreens);
|
---|
28 | int VideoRecStrmInit(PVIDEORECCONTEXT pCtx, uint32_t uScreen, const char *pszFile,
|
---|
29 | uint32_t uWidth, uint32_t uHeight, uint32_t uRate, uint32_t uFps,
|
---|
30 | uint32_t uMaxTime, uint32_t uMaxFileSize, const char *pszOptions);
|
---|
31 | void VideoRecContextClose(PVIDEORECCONTEXT pCtx);
|
---|
32 | bool VideoRecIsEnabled(PVIDEORECCONTEXT pCtx);
|
---|
33 | int VideoRecCopyToIntBuf(PVIDEORECCONTEXT pCtx, uint32_t uScreen,
|
---|
34 | uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBitsPerPixel,
|
---|
35 | uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight,
|
---|
36 | uint8_t *pu8BufferAddress, uint64_t u64TimeStamp);
|
---|
37 | bool VideoRecIsReady(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t u64TimeStamp);
|
---|
38 | bool VideoRecIsFull(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t u64TimeStamp);
|
---|
39 |
|
---|
40 | #endif /* !____H_VIDEOREC */
|
---|
41 |
|
---|