Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit a009d9a

Browse files
committed
vpxenc: Use entry point VAEntrypointEncSlice
Use entry point VAEntrypointEncSlice defined in upstream Libva for the hybrid encoder instead of the private entry point VAEntrypointHybridEncSlice. This is done to keep a consistent interface to the application/middleware. Signed-off-by: Sameer Kibey <[email protected]>
1 parent 4cf26c5 commit a009d9a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/media_drv_init.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
MEDIA_DRV_MUTEX mutex_global = PTHREAD_MUTEX_INITIALIZER;
5050

5151
config_attr_list config_attributes_list[MEDIA_GEN_MAX_CONFIG_ATTRIBUTES] = {
52-
{VAProfileVP8Version0_3, (VAEntrypoint) VAEntrypointHybridEncSlice,
52+
{VAProfileVP8Version0_3, (VAEntrypoint) VAEntrypointEncSlice,
5353
VA_RC_CQP, 1}
5454
,
55-
{VAProfileVP8Version0_3, (VAEntrypoint) VAEntrypointHybridEncSlice,
55+
{VAProfileVP8Version0_3, (VAEntrypoint) VAEntrypointEncSlice,
5656
VA_RC_CBR, 1}
5757
,
58-
{VAProfileVP8Version0_3, (VAEntrypoint) VAEntrypointHybridEncSlice,
58+
{VAProfileVP8Version0_3, (VAEntrypoint) VAEntrypointEncSlice,
5959
VA_RC_VBR, 1}
6060
};
6161

@@ -1409,7 +1409,7 @@ media_EndPicture (VADriverContextP ctx, VAContextID context)
14091409
if (obj_context->codec_type == CODEC_ENC)
14101410
{
14111411

1412-
MEDIA_DRV_ASSERT (VAEntrypointHybridEncSlice == obj_config->entrypoint);
1412+
MEDIA_DRV_ASSERT (VAEntrypointEncSlice == obj_config->entrypoint);
14131413

14141414
if (!(obj_context->codec_state.encode.pic_param ||
14151415
obj_context->codec_state.encode.pic_param_ext))
@@ -1818,7 +1818,7 @@ media_RenderPicture (VADriverContextP ctx,
18181818
obj_config = obj_context->obj_config;
18191819
MEDIA_DRV_ASSERT (obj_config);
18201820

1821-
if (VAEntrypointHybridEncSlice == obj_config->entrypoint)
1821+
if (VAEntrypointEncSlice == obj_config->entrypoint)
18221822
{
18231823
vaStatus =
18241824
media_encoder_render_picture (ctx, context, buffers, num_buffers);
@@ -2135,7 +2135,7 @@ media_CreateContext (VADriverContextP ctx, VAConfigID config_id, INT picture_wid
21352135
if (VA_STATUS_SUCCESS == status)
21362136
{
21372137

2138-
if (VAEntrypointHybridEncSlice == obj_config->entrypoint)
2138+
if (VAEntrypointEncSlice == obj_config->entrypoint)
21392139
{ /*encode routin only */
21402140

21412141
obj_context->codec_type = CODEC_ENC;
@@ -2299,7 +2299,7 @@ media_validate_config(VADriverContextP ctx, VAProfile profile,
22992299
/* Validate profile & entrypoint */
23002300
switch (profile) {
23012301
case VAProfileVP8Version0_3:
2302-
if ((entrypoint == VAEntrypointHybridEncSlice) &&
2302+
if ((entrypoint == VAEntrypointEncSlice) &&
23032303
drv_ctx->codec_info->vp8_enc_hybrid_support) {
23042304
va_status = VA_STATUS_SUCCESS;
23052305
} else {
@@ -2484,7 +2484,7 @@ media_QueryConfigEntrypoints (VADriverContextP ctx, VAProfile profile, VAEntrypo
24842484
{
24852485
case VAProfileVP8Version0_3:
24862486
if (drv_ctx->codec_info->vp8_enc_hybrid_support) {
2487-
entrypoint_list[index++] = (VAEntrypoint) VAEntrypointHybridEncSlice;
2487+
entrypoint_list[index++] = (VAEntrypoint) VAEntrypointEncSlice;
24882488
}
24892489
break;
24902490
case VAProfileVP9Profile0:

src/va_private.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#ifndef __VA_PRIVATE_H__
2626
#define __VA_PRIVATE_H__
2727

28-
#define VAEntrypointHybridEncSlice -1
2928
#define VAEncMiscParameterTypePrivate -2
3029
#define VAEncMbDataBufferType -4
3130
#define VAEncMiscParameterTypeVP8HybridFrameUpdate -3

0 commit comments

Comments
 (0)