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
d58c6d4b
Commit
d58c6d4b
authored
Jun 03, 2010
by
Gwenole Beauchesne
Committed by
Xiang, Haihao
Jul 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add I420 image format.
parent
252dd7c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
i965_drv_video/i965_drv_video.c
i965_drv_video/i965_drv_video.c
+15
-1
i965_drv_video/i965_drv_video.h
i965_drv_video/i965_drv_video.h
+1
-1
No files found.
i965_drv_video/i965_drv_video.c
View file @
d58c6d4b
...
...
@@ -64,6 +64,8 @@ static const i965_image_format_map_t
i965_image_formats_map
[
I965_MAX_IMAGE_FORMATS
+
1
]
=
{
{
I965_SURFACETYPE_YUV
,
{
VA_FOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
),
VA_LSB_FIRST
,
12
,
}
},
{
I965_SURFACETYPE_YUV
,
{
VA_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
),
VA_LSB_FIRST
,
12
,
}
},
};
/* List of supported subpicture formats */
...
...
@@ -1352,6 +1354,16 @@ i965_CreateImage(VADriverContextP ctx,
image
->
offsets
[
2
]
=
size
;
image
->
data_size
=
size
+
2
*
size2
;
break
;
case
VA_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
):
image
->
num_planes
=
3
;
image
->
pitches
[
0
]
=
width
;
image
->
offsets
[
0
]
=
0
;
image
->
pitches
[
1
]
=
width2
;
image
->
offsets
[
1
]
=
size
;
image
->
pitches
[
2
]
=
width2
;
image
->
offsets
[
2
]
=
size
+
size2
;
image
->
data_size
=
size
+
2
*
size2
;
break
;
default:
goto
error
;
}
...
...
@@ -1549,7 +1561,9 @@ i965_GetImage(VADriverContextP ctx,
rect
.
height
=
height
;
switch
(
obj_image
->
image
.
format
.
fourcc
)
{
case
VA_FOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
):
/* YV12 is native format here */
case
VA_FOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
):
case
VA_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
):
/* I420 is native format for MPEG-2 decoded surfaces */
if
(
render_state
->
interleaved_uv
)
goto
operation_failed
;
get_image_yv12
(
obj_image
,
image_data
,
obj_surface
,
&
rect
);
...
...
i965_drv_video/i965_drv_video.h
View file @
d58c6d4b
...
...
@@ -43,7 +43,7 @@
#define I965_MAX_PROFILES 11
#define I965_MAX_ENTRYPOINTS 5
#define I965_MAX_CONFIG_ATTRIBUTES 10
#define I965_MAX_IMAGE_FORMATS
1
#define I965_MAX_IMAGE_FORMATS
2
#define I965_MAX_SUBPIC_FORMATS 4
#define I965_MAX_DISPLAY_ATTRIBUTES 4
#define I965_STR_VENDOR "i965 Driver 0.1"
...
...
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