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
16ab532f
Commit
16ab532f
authored
Sep 07, 2007
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include sub-picture support (va 0.22)
parent
bb92cdf7
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
687 additions
and
13 deletions
+687
-13
src/va.c
src/va.c
+277
-4
src/va.h
src/va.h
+301
-6
src/va_backend.h
src/va_backend.h
+107
-3
src/va_x11.h
src/va_x11.h
+2
-0
No files found.
src/va.c
View file @
16ab532f
This diff is collapsed.
Click to expand it.
src/va.h
View file @
16ab532f
This diff is collapsed.
Click to expand it.
src/va_backend.h
View file @
16ab532f
...
...
@@ -46,6 +46,8 @@ struct VADriverContext
int
max_profiles
;
int
max_entrypoints
;
int
max_attributes
;
int
max_image_formats
;
int
max_subpic_formats
;
void
*
handle
;
/* dlopen handle */
void
*
pDriverData
;
struct
...
...
@@ -201,9 +203,111 @@ struct VADriverContext
short
desty
,
unsigned
short
destw
,
unsigned
short
desth
,
VARectangle
*
cliprects
,
/* client supplied clip list */
unsigned
int
number_cliprects
,
/* number of clip rects in the clip list */
int
flags
/* de-interlacing flags */
);
VAStatus
(
*
vaQueryImageFormats
)
(
VADriverContextP
ctx
,
VAImageFormat
*
format_list
,
/* out */
int
*
num_formats
/* out */
);
VAStatus
(
*
vaCreateImage
)
(
VADriverContextP
ctx
,
VAImageFormat
*
format
,
int
width
,
int
height
,
VAImage
*
image
/* out */
);
VAStatus
(
*
vaDestroyImage
)
(
VADriverContextP
ctx
,
VAImage
*
image
);
VAStatus
(
*
vaGetImage
)
(
VADriverContextP
ctx
,
VASurface
*
surface
,
int
x
,
/* coordinates of the upper left source pixel */
int
y
,
unsigned
int
width
,
/* width and height of the region */
unsigned
int
height
,
VAImage
*
image
);
VAStatus
(
*
vaPutImage
)
(
VADriverContextP
ctx
,
VASurface
*
surface
,
VAImage
*
image
,
int
src_x
,
int
src_y
,
unsigned
int
width
,
unsigned
int
height
,
int
dest_x
,
int
dest_y
);
VAStatus
(
*
vaQuerySubpictureFormats
)
(
VADriverContextP
ctx
,
VAImageFormat
*
format_list
,
/* out */
unsigned
int
*
flags
,
/* out */
unsigned
int
*
num_formats
/* out */
);
VAStatus
(
*
vaCreateSubpicture
)
(
VADriverContextP
ctx
,
VAImage
*
image
,
VASubpicture
*
subpicture
/* out */
);
VAStatus
(
*
vaDestroySubpicture
)
(
VADriverContextP
ctx
,
VASubpicture
*
subpicture
);
VAStatus
(
*
vaSetSubpicturePalette
)
(
VADriverContextP
ctx
,
VASubpicture
*
subpicture
,
/*
* pointer to an array holding the palette data. The size of the array is
* num_palette_entries * entry_bytes in size. The order of the components
* in the palette is described by the component_order in VASubpicture struct
*/
unsigned
char
*
palette
);
VAStatus
(
*
vaSetSubpictureChromakey
)
(
VADriverContextP
ctx
,
VASubpicture
*
subpicture
,
unsigned
int
chromakey_min
,
unsigned
int
chromakey_max
);
VAStatus
(
*
vaSetSubpictureGlobalAlpha
)
(
VADriverContextP
ctx
,
VASubpicture
*
subpicture
,
float
global_alpha
);
VAStatus
(
*
vaAssociateSubpicture
)
(
VADriverContextP
ctx
,
VASurface
*
target_surface
,
VASubpicture
*
subpicture
,
short
src_x
,
/* upper left offset in subpicture */
short
src_y
,
short
dest_x
,
/* upper left offset in surface */
short
dest_y
,
unsigned
short
width
,
unsigned
short
height
,
/*
* whether to enable chroma-keying or global-alpha
* see VA_SUBPICTURE_XXX values
*/
unsigned
int
flags
);
VAStatus
(
*
vaDbgCopySurfaceToBuffer
)
(
VADriverContextP
ctx
,
VASurface
*
surface
,
...
...
src/va_x11.h
View file @
16ab532f
...
...
@@ -44,6 +44,8 @@ VAStatus vaPutSurface (
short
desty
,
unsigned
short
destw
,
unsigned
short
desth
,
VARectangle
*
cliprects
,
/* client supplied clip list */
unsigned
int
number_cliprects
,
/* number of clip rects in the clip list */
int
flags
/* de-interlacing flags */
);
...
...
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