Date: Sun, 3 Sep 2000 13:22:44 -0400 From: Randall Hopper <aa8vb@nc.rr.com> To: Bernie Doehner <bad@wireless.net> Cc: multimedia@freebsd.org Subject: TV & XvImages (was Re: fxtv 1.02 with XFree86 4.02...) Message-ID: <20000903132244.A3788@nc.rr.com> In-Reply-To: <Pine.BSF.3.95.1000903095322.23335D-100000@wireless.net>; from bad@wireless.net on Sun, Sep 03, 2000 at 09:53:47AM -0700 References: <20000902225150.A4453@nc.rr.com> <Pine.BSF.3.95.1000903095322.23335D-100000@wireless.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Bernie Doehner:
|Ok, I'll have to look at the docs again. I never heard of XvImages
|extension.
Basically, YUV images rather than RGB images. Provides a nice way to let
the video card do the expensive scaling, interpolation, and color-space
conversion. In case you want to play with it, I've attached a few simple
test progs I cooked back in May when I was playing with it.
simpletv.c is a simple TV app that blasts real-time YUV from Bt848 cards to
the Xv extension in an X window. You can stretch the window whatever size
you want. Different from Fxtv/bktr in RGB mode, you're not limited to
640x480 (NTSC) or 768x576 (PAL). You can stretch it to 1280x1024 if you
want. I can on my Matrox G200 here (just did). Very low CPU too.
xv_ext_test.c just prints the adaptors and formats that the Xv extension
says it can handle.
BTW, for simpletv you'll want to run Fxtv first -- simpletv doesn't do
input/input format/channel/frequency set/etc. setup so that's why. You'll
also need the hermes port to link, though it's not used for YUV stuff.
Hopefully the XFree86 group will greatly expand video card support for
XvImages in the future. As I said, that's really the way to go.
Randall
--
Randall Hopper
aa8vb@nc.rr.com
> xv_ext_test
XvQueryExtension():
version = 2, release = 2, request_base = 141,
event_base = 75, error_base = 151
XvQueryAdaptors():
Adaptor 0:
base_id = 40
num_ports = 1
type = 17 (XvInputMask, XvImageMask)
name = Matrox G-Series Backend Scaler
num_adaptors = 1
num_formats = 2
formats =
Format 0: depth = 16, visual_id = 0x24
Format 1: depth = 16, visual_id = 0x25
XvListImageFormats():
Adaptor 0:
num_formats = 3
Format 0:
id = 844715353
type = 1 (XvYUV)
byte_order = 0 (LSBFirst)
guid = YUY2
bits_per_pixel = 16
format = 0 (XvPacked)
num_planes = 1
sample_bits (yuv) = ( 8, 8, 8 )
horz_period (yuv) = ( 1, 2, 2 )
vert_period = ( 1, 1, 1 )
component_order = YUYV
scanline_order = 0
Format 1:
id = 842094169
type = 1 (XvYUV)
byte_order = 0 (LSBFirst)
guid = YV12
bits_per_pixel = 12
format = 1 (XvPlanar)
num_planes = 3
sample_bits (yuv) = ( 8, 8, 8 )
horz_period (yuv) = ( 1, 2, 2 )
vert_period = ( 1, 2, 2 )
component_order = YVU
scanline_order = 0
Format 2:
id = 808596553
type = 1 (XvYUV)
byte_order = 0 (LSBFirst)
guid = I420
bits_per_pixel = 12
format = 1 (XvPlanar)
num_planes = 3
sample_bits (yuv) = ( 8, 8, 8 )
horz_period (yuv) = ( 1, 2, 2 )
vert_period = ( 1, 2, 2 )
component_order = YUV
scanline_order = 0
[-- Attachment #2 --]
9 ;kWƒ̯b{9C{-@`s-0;+[d3a$&"]y߽اQ9:Q
pxtt|ph49F~_3OR7.C נy,
}H҈H<A
Sla0Pߢ1F*^:@ \DéQb~σaMDnÃИlLfqpWnA8#.{j%D뮾$y>AI4=Ɍ{3~aO.HH )aF~0<p"p Mr$uL(+qSi DCM
I]т( ~(
<a D|Z^^&ԛT#8X%',pDHr
ySWmaS7qN,0B\\/pu"NHCHHH7/"MŜIfqi%9& V ɻM/bpO:;CdBwD9QE'|D=29QL+ii
MDyl"whiZ! !bP~(&e;kM~8}&n>- Z{uߴm uu}i(Doui`uۗ7{n \ZW =a! 32|mZ=zf
4ӂV`o.[}_loe/[֕$'h]^Wuj"EKSUuz KKkmуyg"{Y ^6~@ Uܴ K\@~oчoN5pu4{mkM.{636
griQ7|߿Xn\!#0O{]^6Oxr]'b=[Agbk_ZfmRolBl pw-OAcA3
XgZD&(zRjl_(om6/&cҽ$4`1n&8\B<&L$SC/L'Լ_;7BD^:q(F\>2
X@\t^H0VFcne܊,"{˘/މd_o.b#%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