summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_encode.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-09-18 23:30:47 +0100
committerMark Thompson <sw@jkqxz.net>2018-09-23 14:42:33 +0100
commitbf726c26fde26601a90daacf1b10a9860d21321c (patch)
tree9ed0e2a816515ea53a488410333c86f18e522e1f /libavcodec/vaapi_encode.h
parent8479f99c7dd227d9cb94d262602f1298f71cf33b (diff)
vaapi_encode: Clean up the GOP structure configuration
Choose what types of reference frames will be used based on what types are available, and make the intra-only mode explicit (GOP size one, which must be used for MJPEG).
Diffstat (limited to 'libavcodec/vaapi_encode.h')
-rw-r--r--libavcodec/vaapi_encode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h
index e61e900e8d..5d6fdcf336 100644
--- a/libavcodec/vaapi_encode.h
+++ b/libavcodec/vaapi_encode.h
@@ -224,6 +224,7 @@ typedef struct VAAPIEncodeContext {
int64_t ts_ring[MAX_REORDER_DELAY * 3];
// Frame type decision.
+ int gop_size;
int p_per_i;
int b_per_p;
int force_idr;