[FFmpeg-devel] [PATCH 1/1] add CUgraphicsRegisterFlags enum

Daniel Oberhoff danieloberhoff at googlemail.com
Thu Apr 26 18:09:14 EEST 2018


> On 26. Apr 2018, at 16:20, Daniel Oberhoff <daniel at danieloberhoff.de> wrote:
> 
> ---
> include/ffnvcodec/dynlink_cuda.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
> 
> diff --git a/include/ffnvcodec/dynlink_cuda.h b/include/ffnvcodec/dynlink_cuda.h
> index 2cc50bb..df1d316 100644
> --- a/include/ffnvcodec/dynlink_cuda.h
> +++ b/include/ffnvcodec/dynlink_cuda.h
> @@ -68,6 +68,14 @@ typedef enum CUlimit_enum {
>     CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT = 4
> } CUlimit;
> 
> +typedef enum CUgraphicsRegisterFlags_enum {
> +    CU_GRAPHICS_REGISTER_FLAGS_NONE           = 0x00,
> +    CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY      = 0x01,
> +    CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD  = 0x02,
> +    CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST   = 0x04,
> +    CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER = 0x08
> +} CUgraphicsRegisterFlags;
> +
> typedef struct CUDA_MEMCPY2D_st {
>     size_t srcXInBytes;
>     size_t srcY;
> --
> 2.14.3 (Apple Git-98)
> 


also need this

---
 include/ffnvcodec/dynlink_cuda.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/ffnvcodec/dynlink_cuda.h b/include/ffnvcodec/dynlink_cuda.h
index df1d316..24c37a7 100644
--- a/include/ffnvcodec/dynlink_cuda.h
+++ b/include/ffnvcodec/dynlink_cuda.h
@@ -107,8 +107,6 @@ typedef enum CUGLDeviceList_enum {
     CU_GL_DEVICE_LIST_NEXT_FRAME = 3,
 } CUGLDeviceList;

-#define CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD 2
-
 typedef CUresult CUDAAPI tcuInit(unsigned int Flags);
 typedef CUresult CUDAAPI tcuDeviceGetCount(int *count);
 typedef CUresult CUDAAPI tcuDeviceGet(CUdevice *device, int ordinal);
--
2.14.3 (Apple Git-98)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180426/d9bd31ed/attachment.sig>


More information about the ffmpeg-devel mailing list