I have some trouble with a simple Xv test "testxv.c"
It start Xv, query for capabilities, create a shared xv image, and put it on a window.

First trouble is in the compilation: I must link statically the libXv.a because in my 
XFree86 4.1.0 isn't a libXv.so
gcc -L/usr/X11R6/lib -lX11 -lXext -o testxv testxv.c /usr/X11R6/lib/libXv.a


Second trouble is that program have an exception
After the first xvshmputimage, I see for a moment a black window and then got a 
BadAlloc error.
Why?
I try also with smaller windows, but nothing changes.

My svga adaptor is a Trident Cyberblade i7, and the queried capabilities report that 
Xv accepts Scaling and Image functions.
So why it doesn't work?

Attached you'll find the source and the report of an execution on my system.

Thanks
 Francesco

-------------

starting up video testapp...

 found 16bit TrueColor
beginning to parse the Xvideo extension...

========================================
XvQueryExtension returned the following:
p_version      : 2
p_release      : 2
p_request_base : 141
p_event_base   : 75
p_error_base   : 151
========================================
=======================================
XvQueryAdaptors returned the following:
1 adaptors available.
 name:        Trident Backend Scaler
 type:        input | image | 
 ports:       1
 first port:  46
adaptor 0 ; format list:
 depth=16, visual=35
 depth=16, visual=36
 encoding list for port 46
  id=0, name=XV_IMAGE, size=1024x1024, numerator=1, denominator=1
 attribute list for port 46
  name:       XV_COLORKEY
  flags:      get set
  min_color:  0
  max_color:  16777215
 image format list for port 46
  0x35315652 (RV15) packed
  0x36315652 (RV16) packed
  0x32315659 (YV12) planar
  0x32595559 (YUY2) packed

data_size = 460800
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  141 (XVideo)
  Minor opcode of failed request:  19 ()
  Serial number of failed request:  25
  Current serial number in output stream:  26


testxv.c

Reply via email to