Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libva
Commits
777c69c2
Commit
777c69c2
authored
Jul 11, 2010
by
Gwenole Beauchesne
Committed by
Xiang, Haihao
Jul 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move initialization of render_state->interleaved_uv to vaCreateContext().
parent
5438f92b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
i965_drv_video/i965_drv_video.c
i965_drv_video/i965_drv_video.c
+11
-12
No files found.
i965_drv_video/i965_drv_video.c
View file @
777c69c2
...
...
@@ -697,6 +697,7 @@ i965_CreateContext(VADriverContextP ctx,
VAContextID
*
context
)
/* out */
{
struct
i965_driver_data
*
i965
=
i965_driver_data
(
ctx
);
struct
i965_render_state
*
render_state
=
&
i965
->
render_state
;
struct
object_config
*
obj_config
=
CONFIG
(
config_id
);
struct
object_context
*
obj_context
=
NULL
;
VAStatus
vaStatus
=
VA_STATUS_SUCCESS
;
...
...
@@ -718,6 +719,16 @@ i965_CreateContext(VADriverContextP ctx,
return
vaStatus
;
}
switch
(
obj_config
->
profile
)
{
case
VAProfileH264Baseline
:
case
VAProfileH264Main
:
case
VAProfileH264High
:
render_state
->
interleaved_uv
=
1
;
break
;
default:
render_state
->
interleaved_uv
=
0
;
}
obj_context
->
context_id
=
contextID
;
*
context
=
contextID
;
memset
(
&
obj_context
->
decode_state
,
0
,
sizeof
(
obj_context
->
decode_state
));
...
...
@@ -1112,7 +1123,6 @@ VAStatus
i965_EndPicture
(
VADriverContextP
ctx
,
VAContextID
context
)
{
struct
i965_driver_data
*
i965
=
i965_driver_data
(
ctx
);
struct
i965_render_state
*
render_state
=
&
i965
->
render_state
;
struct
object_context
*
obj_context
=
CONTEXT
(
context
);
struct
object_config
*
obj_config
;
VAContextID
config
;
...
...
@@ -1128,17 +1138,6 @@ i965_EndPicture(VADriverContextP ctx, VAContextID context)
obj_config
=
CONFIG
(
config
);
assert
(
obj_config
);
switch
(
obj_config
->
profile
)
{
case
VAProfileH264Baseline
:
case
VAProfileH264Main
:
case
VAProfileH264High
:
render_state
->
interleaved_uv
=
1
;
break
;
default:
render_state
->
interleaved_uv
=
0
;
}
i965_media_decode_picture
(
ctx
,
obj_config
->
profile
,
&
obj_context
->
decode_state
);
obj_context
->
decode_state
.
current_render_target
=
-
1
;
obj_context
->
decode_state
.
num_slice_params
=
0
;
...
...
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