[mythtv] brightness contrast etc.
Jeremy Oddo
joddo at apixels.net
Fri Mar 21 11:24:19 EST 2003
I'm just guessing here, and I don't know if it's true, but the reason for
using ioctl *might* be so that the values can be adjusted PER CHANNEL
instead of GLOBALLY. I'm guessing that xvSetPortAttribute would apply
global changes to the xv port. Again, just a guess.
I'm thinking that xvattr would be what you would use to get the overall
look into the proper color/gamma space while the controls in Myth would be
used to adjust individual channels that need slight adjustments.
Stop me if I'm wrong.... :)
Jeremy
Brent Hills said:
> Prior to Myth I used to control brightness and color etc. for the tuner
> with xvattr and xvinfo.
>
> I recently took a look to see how my current myth settings compared to
> the values I used to use. The current values reported however are way
> out of range.
>
> I took a look at the code and saw that its using ioctls instead of the
> XvSetPortAttribute to control these values.
>
> Do others have valid values report with xvattr/xvinfo when mythtv is
> running? Do you think this is a problem or is it just inconsistent
> because it uses a different interface (ioctl vs. xvSetPortAttribute) to
> maintain the settings?
>
> An excerpt of my xvinfo's output is pasted below, these values were
> generated with 32768 in all channel color fields.
>
> Thank you for any input.
>
> Brent Hills.
>
>
>
> X-Video Extension version 2.2
> screen #0
> Adaptor #0: "video4linux"
> number of ports: 1
> port base: 59
> operations supported: PutVideo
> supported visuals:
> depth 16, visualID 0x23
> depth 16, visualID 0x24
> depth 16, visualID 0x25
> depth 16, visualID 0x26
> number of attributes: 8
> "XV_ENCODING" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> "XV_BRIGHTNESS" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> "XV_CONTRAST" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> "XV_SATURATION" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> "XV_HUE" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> "XV_VOLUME" (range -1000 to 1000)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> "XV_MUTE" (range 0 to 1)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> "XV_FREQ" (range 0 to 16000)
> client settable attribute
> client gettable attribute (current value is -1073744280)
> number of encodings: 21
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
More information about the mythtv-dev
mailing list