summaryrefslogtreecommitdiffstats
path: root/libhb/handbrake
diff options
context:
space:
mode:
authoragalin89 <[email protected]>2019-09-04 13:17:40 +0100
committerScott <[email protected]>2019-09-22 15:53:59 +0100
commit2c2303312c33f8bf82f6c390c9f36f55c986dd2f (patch)
tree2d56dd35af57584d33b6af7b84ec71b845c775b9 /libhb/handbrake
parentdbe9370283e6915b8613d96972916251d4ff4243 (diff)
qsv: d3d11 enabling
Diffstat (limited to 'libhb/handbrake')
-rw-r--r--libhb/handbrake/qsv_common.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libhb/handbrake/qsv_common.h b/libhb/handbrake/qsv_common.h
index 2277468b0..1f762fa77 100644
--- a/libhb/handbrake/qsv_common.h
+++ b/libhb/handbrake/qsv_common.h
@@ -206,6 +206,8 @@ typedef struct QSVMid {
AVBufferRef *hw_frames_ref;
mfxHDL handle;
+ void *texture;
+
AVFrame *locked_frame;
AVFrame *hw_frame;
mfxFrameSurface1 surf;
@@ -224,10 +226,11 @@ typedef struct QSVFrame {
struct QSVFrame *next;
} QSVFrame;
-#define HB_POOL_SURFACE_SIZE (200)
+#define HB_POOL_SURFACE_SIZE (64)
typedef struct EncQSVFramesContext {
AVBufferRef *hw_frames_ctx;
+ AVBufferRef *hw_frames_ctx2;
//void *logctx;
/* The memory ids for the external frames.
@@ -235,9 +238,13 @@ typedef struct EncQSVFramesContext {
* (i.e. by the encoder/decoder) and another one given to the MFX session
* from the frame allocator. */
AVBufferRef *mids_buf;
+ AVBufferRef *mids_buf2;
QSVMid *mids;
+ QSVMid *mids2;
int nb_mids;
int pool[HB_POOL_SURFACE_SIZE];
+ int pool2[HB_POOL_SURFACE_SIZE];
+ void *input_texture;
} EncQSVFramesContext;
/* Full QSV pipeline helpers */