VideoRec.h revision 24e27201b1438d88569467f104a0e3cb1df190ed
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync/* $Id$ */
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync/** @file
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * Encodes the screen content in VPX format.
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync */
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync/*
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * Copyright (C) 2012-2013 Oracle Corporation
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync *
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * available from http://www.virtualbox.org. This file is free software;
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * you can redistribute it and/or modify it under the terms of the GNU
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * General Public License (GPL) as published by the Free Software
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync */
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync#ifndef ____H_VIDEOREC
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync#define ____H_VIDEOREC
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsyncstruct VIDEORECCONTEXT;
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsynctypedef struct VIDEORECCONTEXT *PVIDEORECCONTEXT;
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsyncstruct VIDEORECSTREAM;
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsynctypedef struct VIDEORECSTREAM *PVIDEORECSTREAM;
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsyncint VideoRecContextCreate(PVIDEORECCONTEXT *ppCtx, uint32_t cScreens);
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsyncint VideoRecStrmInit(PVIDEORECCONTEXT pCtx, uint32_t uScreen, const char *pszFile,
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync uint32_t uWidth, uint32_t uHeight, uint32_t uRate, uint32_t uFps);
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsyncvoid VideoRecContextClose(PVIDEORECCONTEXT pCtx);
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsyncbool VideoRecIsEnabled(PVIDEORECCONTEXT pCtx);
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsyncint VideoRecCopyToIntBuf(PVIDEORECCONTEXT pCtx, uint32_t uScreen,
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBitsPerPixel,
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight,
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync uint8_t *pu8BufferAddress, uint64_t u64TimeStamp);
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync#endif /* !____H_VIDEOREC */
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync