diff options
author | Sun, Mingruo <mingruo.sun@intel.com> | 2015-07-27 17:12:25 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2015-07-28 10:07:25 +0800 |
commit | b8cb865f6c4b93533453191718eed41bbdfd63f6 (patch) | |
tree | 36f42129b12b7f7a32f88674ab1039de09604a5e /vaenc | |
parent | a393e323c34b1579f0c2291842c8a558f6f11eb0 (diff) |
vaenc: update for "-entrypoint LP -carc" case
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
Diffstat (limited to 'vaenc')
-rw-r--r-- | vaenc/h264encode.c | 4 | ||||
-rw-r--r-- | vaenc/va_encode.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/vaenc/h264encode.c b/vaenc/h264encode.c index e38fb43..195e966 100644 --- a/vaenc/h264encode.c +++ b/vaenc/h264encode.c @@ -1382,6 +1382,10 @@ static VAStatus h264_get_config(void) for (i = 0; i < VAConfigAttribTypeMax; i++) h264_attrib[i].type = i; + if (va_entrypoint == VAEntrypointEncSliceLP) { + carc = 2; + } + va_status = vaGetConfigAttributes(va_dpy, h264_profile, va_entrypoint, &h264_attrib[0], VAConfigAttribTypeMax); CHECK_VASTATUS_NOEXIT(va_status, "vaGetConfigAttributes"); diff --git a/vaenc/va_encode.c b/vaenc/va_encode.c index 76f529a..33f0aa9 100644 --- a/vaenc/va_encode.c +++ b/vaenc/va_encode.c @@ -740,9 +740,10 @@ static int process_cmdline(int argc, char *argv[]) break; //case ':': case 59: - if (!strncmp(optarg, "LP", 2)) + if (!strncmp(optarg, "LP", 2)) { va_entrypoint = VAEntrypointEncSliceLP; carc = 2; //disable MBBRC for VDENC + } break; case 60: buf_destroy = 0; |