Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
bff6d98b
Commit
bff6d98b
authored
Nov 11, 2017
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvenc: support d3d11 surface input
parent
6fcbf39f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
22 deletions
+92
-22
nvenc.c
libavcodec/nvenc.c
+82
-21
nvenc.h
libavcodec/nvenc.h
+10
-1
No files found.
libavcodec/nvenc.c
View file @
bff6d98b
This diff is collapsed.
Click to expand it.
libavcodec/nvenc.h
View file @
bff6d98b
...
...
@@ -27,6 +27,13 @@
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
#if CONFIG_D3D11VA
#define COBJMACROS
#include "libavutil/hwcontext_d3d11va.h"
#else
typedef
void
ID3D11Device
;
#endif
#include "avcodec.h"
#define MAX_REGISTERED_FRAMES 64
...
...
@@ -107,6 +114,7 @@ typedef struct NvencContext
NV_ENC_CONFIG
encode_config
;
CUcontext
cu_context
;
CUcontext
cu_context_internal
;
ID3D11Device
*
d3d11_device
;
int
nb_surfaces
;
NvencSurface
*
surfaces
;
...
...
@@ -119,7 +127,8 @@ typedef struct NvencContext
int
encoder_flushing
;
struct
{
CUdeviceptr
ptr
;
void
*
ptr
;
int
ptr_index
;
NV_ENC_REGISTERED_PTR
regptr
;
int
mapped
;
}
registered_frames
[
MAX_REGISTERED_FRAMES
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment