diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-07-31 17:42:22 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-07-31 17:42:22 +0200 |
commit | aa57d8077404bd5680aff41cd110d7d0afeb54ad (patch) | |
tree | 1a3dcbb505fb8bf223226910e020607304b376cd /v4l2-apps/util/v4l2-ctl.cpp | |
parent | 51e147398c60e35bae3f94c5f5073dc8db05864a (diff) | |
download | mediapointer-dvb-s2-aa57d8077404bd5680aff41cd110d7d0afeb54ad.tar.gz mediapointer-dvb-s2-aa57d8077404bd5680aff41cd110d7d0afeb54ad.tar.bz2 |
videodev2.h: remove superfluous FBUF GLOBAL_INV_ALPHA support
From: Hans Verkuil <hverkuil@xs4all.nl>
There is no need for a global inverted alpha capability since all the
application has to do is to pass '255-alpha' as the global alpha value.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/util/v4l2-ctl.cpp')
-rw-r--r-- | v4l2-apps/util/v4l2-ctl.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/v4l2-apps/util/v4l2-ctl.cpp b/v4l2-apps/util/v4l2-ctl.cpp index cc6819971..fda6eec48 100644 --- a/v4l2-apps/util/v4l2-ctl.cpp +++ b/v4l2-apps/util/v4l2-ctl.cpp @@ -318,8 +318,7 @@ static void usage(void) printf(" --get-fmt-vbi query the VBI capture format [VIDIOC_G_FMT]\n"); printf(" --get-fmt-vbi-out query the VBI output format [VIDIOC_G_FMT]\n"); printf(" --get-fbuf query the overlay framebuffer data [VIDIOC_G_FBUF]\n"); - printf(" --set-fbuf=chromakey=<0/1>,global_alpha=<0/1>,local_alpha=<0/1>,\n"); - printf(" global_inv_alpha=<0/1>,local_inv_alpha=<0/1>\n"); + printf(" --set-fbuf=chromakey=<0/1>,global_alpha=<0/1>,local_alpha=<0/1>,local_inv_alpha=<0/1>\n"); printf(" set the overlay framebuffer [VIDIOC_S_FBUF]\n"); printf(" --get-cropcap query the crop capabilities [VIDIOC_CROPCAP]\n"); printf(" --get-crop query the video capture crop window [VIDIOC_G_CROP]\n"); @@ -650,8 +649,6 @@ static std::string fbufcap2s(unsigned cap) s += "\t\t\tGlobal Alpha\n"; if (cap & V4L2_FBUF_CAP_LOCAL_ALPHA) s += "\t\t\tLocal Alpha\n"; - if (cap & V4L2_FBUF_CAP_GLOBAL_INV_ALPHA) - s += "\t\t\tGlobal Inverted Alpha\n"; if (cap & V4L2_FBUF_CAP_LOCAL_INV_ALPHA) s += "\t\t\tLocal Inverted Alpha\n"; if (cap & V4L2_FBUF_CAP_LIST_CLIPPING) @@ -676,8 +673,6 @@ static std::string fbufflags2s(unsigned fl) s += "\t\t\tGlobal Alpha\n"; if (fl & V4L2_FBUF_FLAG_LOCAL_ALPHA) s += "\t\t\tLocal Alpha\n"; - if (fl & V4L2_FBUF_FLAG_GLOBAL_INV_ALPHA) - s += "\t\t\tGlobal Inverted Alpha\n"; if (fl & V4L2_FBUF_FLAG_LOCAL_INV_ALPHA) s += "\t\t\tLocal Inverted Alpha\n"; if (s.empty()) s += "\t\t\t\n"; @@ -1298,7 +1293,6 @@ int main(int argc, char **argv) "chromakey", "global_alpha", "local_alpha", - "global_inv_alpha", "local_inv_alpha", NULL }; @@ -1317,10 +1311,6 @@ int main(int argc, char **argv) set_fbuf |= V4L2_FBUF_FLAG_LOCAL_ALPHA; break; case 3: - fbuf.flags |= strtol(value, 0L, 0) ? V4L2_FBUF_FLAG_GLOBAL_INV_ALPHA : 0; - set_fbuf |= V4L2_FBUF_FLAG_GLOBAL_INV_ALPHA; - break; - case 4: fbuf.flags |= strtol(value, 0L, 0) ? V4L2_FBUF_FLAG_LOCAL_INV_ALPHA : 0; set_fbuf |= V4L2_FBUF_FLAG_LOCAL_INV_ALPHA; break; |