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
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsyncstruct VIDEORECSTREAM;
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsynctypedef struct VIDEORECSTREAM *PVIDEORECSTREAM;
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsync
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsyncint VideoRecContextCreate(PVIDEORECCONTEXT *ppCtx, uint32_t cScreens);
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsyncint VideoRecStrmInit(PVIDEORECCONTEXT pCtx, uint32_t uScreen, const char *pszFile,
c31f30607ddcca383fd7cf1493b10196007e6e64vboxsync uint32_t uWidth, uint32_t uHeight, uint32_t uRate, uint32_t uFps,
c31f30607ddcca383fd7cf1493b10196007e6e64vboxsync uint32_t uMaxTime, uint32_t uMaxFileSize, const char *pszOptions);
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsyncvoid VideoRecContextClose(PVIDEORECCONTEXT pCtx);
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsyncbool VideoRecIsEnabled(PVIDEORECCONTEXT pCtx);
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsyncint VideoRecCopyToIntBuf(PVIDEORECCONTEXT pCtx, uint32_t uScreen,
320cea12eb9eb0c91fb57c3bba37a1471bfa9ba5vboxsync uint32_t x, uint32_t y, uint32_t uPixelFormat, uint32_t uBitsPerPixel,
24e27201b1438d88569467f104a0e3cb1df190edvboxsync uint32_t uBytesPerLine, uint32_t uGuestWidth, uint32_t uGuestHeight,
8d5a5b284c0856c6e51bdb6e1ccb5ddf3f94721bvboxsync uint8_t *pu8BufferAddress, uint64_t u64TimeStamp);
3496c5935690387cb2db5bc728235cedd02907a3vboxsyncbool VideoRecIsReady(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t u64TimeStamp);
c31f30607ddcca383fd7cf1493b10196007e6e64vboxsyncbool VideoRecIsFull(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t u64TimeStamp);
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync#endif /* !____H_VIDEOREC */
3be3bcfd48fd654a7562ab95b3949182cc2e4ba5vboxsync