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
2e719ae5
Commit
2e719ae5
authored
Jul 01, 2010
by
Xiang, Haihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video: [H.264] fix different slice type in a same picture issue.
parent
74b303f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
i965_drv_video/i965_avc_bsd.c
i965_drv_video/i965_avc_bsd.c
+7
-0
i965_drv_video/i965_media_h264.c
i965_drv_video/i965_media_h264.c
+2
-11
i965_drv_video/i965_media_h264.h
i965_drv_video/i965_media_h264.h
+1
-0
No files found.
i965_drv_video/i965_avc_bsd.c
View file @
2e719ae5
...
@@ -993,6 +993,8 @@ i965_avc_bsd_pipeline(VADriverContextP ctx, struct decode_state *decode_state)
...
@@ -993,6 +993,8 @@ i965_avc_bsd_pipeline(VADriverContextP ctx, struct decode_state *decode_state)
i965_avc_bsd_frame_store_index
(
ctx
,
pic_param
);
i965_avc_bsd_frame_store_index
(
ctx
,
pic_param
);
i965_h264_context
->
enable_avc_ildb
=
0
;
i965_h264_context
->
enable_avc_ildb
=
0
;
i965_h264_context
->
picture
.
i_flag
=
1
;
for
(
j
=
0
;
j
<
decode_state
->
num_slice_params
&&
i965_h264_context
->
enable_avc_ildb
==
0
;
j
++
)
{
for
(
j
=
0
;
j
<
decode_state
->
num_slice_params
&&
i965_h264_context
->
enable_avc_ildb
==
0
;
j
++
)
{
assert
(
decode_state
->
slice_params
&&
decode_state
->
slice_params
[
j
]
->
buffer
);
assert
(
decode_state
->
slice_params
&&
decode_state
->
slice_params
[
j
]
->
buffer
);
slice_param
=
(
VASliceParameterBufferH264
*
)
decode_state
->
slice_params
[
j
]
->
buffer
;
slice_param
=
(
VASliceParameterBufferH264
*
)
decode_state
->
slice_params
[
j
]
->
buffer
;
...
@@ -1035,6 +1037,11 @@ i965_avc_bsd_pipeline(VADriverContextP ctx, struct decode_state *decode_state)
...
@@ -1035,6 +1037,11 @@ i965_avc_bsd_pipeline(VADriverContextP ctx, struct decode_state *decode_state)
(
slice_param
->
slice_type
==
SLICE_TYPE_SP
)
||
(
slice_param
->
slice_type
==
SLICE_TYPE_SP
)
||
(
slice_param
->
slice_type
==
SLICE_TYPE_B
));
(
slice_param
->
slice_type
==
SLICE_TYPE_B
));
if
(
i965_h264_context
->
picture
.
i_flag
&&
(
slice_param
->
slice_type
!=
SLICE_TYPE_I
||
slice_param
->
slice_type
!=
SLICE_TYPE_SI
))
i965_h264_context
->
picture
.
i_flag
=
0
;
i965_avc_bsd_slice_state
(
ctx
,
pic_param
,
slice_param
);
i965_avc_bsd_slice_state
(
ctx
,
pic_param
,
slice_param
);
i965_avc_bsd_buf_base_state
(
ctx
,
pic_param
,
slice_param
);
i965_avc_bsd_buf_base_state
(
ctx
,
pic_param
,
slice_param
);
i965_avc_bsd_object
(
ctx
,
decode_state
,
pic_param
,
slice_param
);
i965_avc_bsd_object
(
ctx
,
decode_state
,
pic_param
,
slice_param
);
...
...
i965_drv_video/i965_media_h264.c
View file @
2e719ae5
...
@@ -523,7 +523,6 @@ i965_media_h264_vfe_state_extension(VADriverContextP ctx,
...
@@ -523,7 +523,6 @@ i965_media_h264_vfe_state_extension(VADriverContextP ctx,
struct
i965_h264_context
*
i965_h264_context
;
struct
i965_h264_context
*
i965_h264_context
;
struct
i965_vfe_state_ex
*
vfe_state_ex
;
struct
i965_vfe_state_ex
*
vfe_state_ex
;
VAPictureParameterBufferH264
*
pic_param
;
VAPictureParameterBufferH264
*
pic_param
;
VASliceParameterBufferH264
*
slice_param
;
int
mbaff_frame_flag
;
int
mbaff_frame_flag
;
assert
(
media_state
->
private_context
);
assert
(
media_state
->
private_context
);
...
@@ -531,10 +530,6 @@ i965_media_h264_vfe_state_extension(VADriverContextP ctx,
...
@@ -531,10 +530,6 @@ i965_media_h264_vfe_state_extension(VADriverContextP ctx,
assert
(
decode_state
->
pic_param
&&
decode_state
->
pic_param
->
buffer
);
assert
(
decode_state
->
pic_param
&&
decode_state
->
pic_param
->
buffer
);
pic_param
=
(
VAPictureParameterBufferH264
*
)
decode_state
->
pic_param
->
buffer
;
pic_param
=
(
VAPictureParameterBufferH264
*
)
decode_state
->
pic_param
->
buffer
;
assert
(
decode_state
->
slice_params
[
0
]
&&
decode_state
->
slice_params
[
0
]
->
buffer
);
slice_param
=
(
VASliceParameterBufferH264
*
)
decode_state
->
slice_params
[
0
]
->
buffer
;
mbaff_frame_flag
=
(
pic_param
->
seq_fields
.
bits
.
mb_adaptive_frame_field_flag
&&
mbaff_frame_flag
=
(
pic_param
->
seq_fields
.
bits
.
mb_adaptive_frame_field_flag
&&
!
pic_param
->
pic_fields
.
bits
.
field_pic_flag
);
!
pic_param
->
pic_fields
.
bits
.
field_pic_flag
);
...
@@ -556,16 +551,12 @@ i965_media_h264_vfe_state_extension(VADriverContextP ctx,
...
@@ -556,16 +551,12 @@ i965_media_h264_vfe_state_extension(VADriverContextP ctx,
vfe_state_ex
->
vfex1
.
avc
.
residual_data_fix_offset_flag
=
!!
RESIDUAL_DATA_OFFSET
;
vfe_state_ex
->
vfex1
.
avc
.
residual_data_fix_offset_flag
=
!!
RESIDUAL_DATA_OFFSET
;
vfe_state_ex
->
vfex1
.
avc
.
residual_data_offset
=
RESIDUAL_DATA_OFFSET
;
vfe_state_ex
->
vfex1
.
avc
.
residual_data_offset
=
RESIDUAL_DATA_OFFSET
;
if
(
slice_param
->
slice_type
==
SLICE_TYPE_I
||
if
(
i965_h264_context
->
picture
.
i_flag
)
{
slice_param
->
slice_type
==
SLICE_TYPE_SI
)
vfe_state_ex
->
vfex1
.
avc
.
sub_field_present_flag
=
PRESENT_NOMV
;
/* NoMV */
vfe_state_ex
->
vfex1
.
avc
.
sub_field_present_flag
=
PRESENT_NOMV
;
/* NoMV */
else
vfe_state_ex
->
vfex1
.
avc
.
sub_field_present_flag
=
PRESENT_MV_WO
;
/* Both MV and W/O */
if
(
vfe_state_ex
->
vfex1
.
avc
.
sub_field_present_flag
==
0
)
{
vfe_state_ex
->
vfex1
.
avc
.
weight_grf_offset
=
0
;
vfe_state_ex
->
vfex1
.
avc
.
weight_grf_offset
=
0
;
vfe_state_ex
->
vfex1
.
avc
.
residual_grf_offset
=
0
;
vfe_state_ex
->
vfex1
.
avc
.
residual_grf_offset
=
0
;
}
else
{
}
else
{
vfe_state_ex
->
vfex1
.
avc
.
sub_field_present_flag
=
PRESENT_MV_WO
;
/* Both MV and W/O */
vfe_state_ex
->
vfex1
.
avc
.
weight_grf_offset
=
4
;
vfe_state_ex
->
vfex1
.
avc
.
weight_grf_offset
=
4
;
vfe_state_ex
->
vfex1
.
avc
.
residual_grf_offset
=
6
;
vfe_state_ex
->
vfex1
.
avc
.
residual_grf_offset
=
6
;
}
}
...
...
i965_drv_video/i965_media_h264.h
View file @
2e719ae5
...
@@ -37,6 +37,7 @@ struct i965_h264_context
...
@@ -37,6 +37,7 @@ struct i965_h264_context
unsigned
int
width_in_mbs
;
unsigned
int
width_in_mbs
;
unsigned
int
height_in_mbs
;
unsigned
int
height_in_mbs
;
int
mbaff_frame_flag
;
int
mbaff_frame_flag
;
int
i_flag
;
}
picture
;
}
picture
;
int
enable_avc_ildb
;
int
enable_avc_ildb
;
...
...
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