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
f5c73d8a
Commit
f5c73d8a
authored
Apr 28, 2011
by
Alexander I Osin
Committed by
Austin Yuan
May 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed number bugs in va_TraceSurface.
parent
0b8b9764
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
va/va_trace.c
va/va_trace.c
+10
-8
No files found.
va/va_trace.c
View file @
f5c73d8a
...
...
@@ -343,14 +343,16 @@ void va_TraceSurface(VADisplay dpy)
truncate_file
(
trace_context
[
idx
].
trace_fp_surface
);
}
va_status
=
vaLockSurface
(
dpy
,
trace_context
[
idx
].
trace_rendertarget
,
&
fourcc
,
&
luma_stride
,
&
chroma_u_stride
,
&
chroma_v_stride
,
&
luma_offset
,
&
chroma_u_offset
,
&
chroma_v_offset
,
&
buffer_name
,
&
buffer
);
va_status
=
vaLockSurface
(
dpy
,
trace_context
[
idx
].
trace_rendertarget
,
&
fourcc
,
&
luma_stride
,
&
chroma_u_stride
,
&
chroma_v_stride
,
&
luma_offset
,
&
chroma_u_offset
,
&
chroma_v_offset
,
&
buffer_name
,
&
buffer
);
if
(
va_status
!=
VA_STATUS_SUCCESS
)
{
va_TraceMsg
(
idx
,
"Error:vaLockSurface failed
\n
"
);
return
;
}
...
...
@@ -364,7 +366,7 @@ void va_TraceSurface(VADisplay dpy)
va_TraceMsg
(
idx
,
"
\t
chroma_u_offset = %d
\n
"
,
chroma_u_offset
);
va_TraceMsg
(
idx
,
"
\t
chroma_v_offset = %d
\n
"
,
chroma_v_offset
);
if
(
*
(
unsigned
int
*
)
buffer
==
0
)
{
if
(
buffer
==
NULL
)
{
va_TraceMsg
(
idx
,
"Error:vaLockSurface return NULL buffer
\n
"
);
vaUnlockSurface
(
dpy
,
trace_context
[
idx
].
trace_rendertarget
);
...
...
@@ -372,8 +374,8 @@ void va_TraceSurface(VADisplay dpy)
}
va_TraceMsg
(
idx
,
"
\t
buffer location = 0x%08x
\n
"
,
buffer
);
Y_data
=
buffer
;
UV_data
=
buffer
+
chroma_u_offset
;
Y_data
=
(
unsigned
char
*
)
buffer
;
UV_data
=
(
unsigned
char
*
)
buffer
+
chroma_u_offset
;
tmp
=
Y_data
;
for
(
i
=
0
;
i
<
trace_context
[
idx
].
trace_frame_height
;
i
++
)
{
...
...
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