add V4L2-PIX-FMT-SRGGB12 & friends to docbook
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 96c3a1277523b929bd27f5d68d5f40e2a0e5bdf3.1306337174.git.mchehab@redhat.com
PATCH 2/3 add V4L2-PIX-FMT-SRGGB12 & friends to docbook
The xml with those guys are there, but they weren't included on the docbook.
Documentation/DocBook/media-entities.tmpl +1 -0
@@ -293,6 +293,7 @@ <!ENTITY sub-yuyv SYSTEM "v4l/pixfmt-yuyv.xml"> <!ENTITY sub-yvyu SYSTEM "v4l/pixfmt-yvyu.xml"> <!ENTITY sub-srggb10 SYSTEM "v4l/pixfmt-srggb10.xml"> +<!ENTITY sub-srggb12 SYSTEM "v4l/pixfmt-srggb12.xml"> <!ENTITY sub-srggb8 SYSTEM "v4l/pixfmt-srggb8.xml"> <!ENTITY sub-y10 SYSTEM "v4l/pixfmt-y10.xml"> <!ENTITY sub-y12 SYSTEM "v4l/pixfmt-y12.xml">
Documentation/DocBook/v4l/pixfmt.xml +1 -0
@@ -673,6 +673,7 @@ access the palette, this must be done with ioctls of the Linux framebuffer API.< &sub-srggb8; &sub-sbggr16; &sub-srggb10; + &sub-srggb12; </section> <section id="yuv-formats">
Signature · 1 line
1.7.1
PATCH 3/3 DocBook: Add rules to auto-generate some media docbook
In reply to a message not in the archiveAuto-generate the videodev2.h.xml,frontend.h.xml and the indexes.
Some logic at the Makefile helps us to identify when a symbol is missing, like for example:
Error: no ID for constraint linkend: V4L2-PIX-FMT-JPGL.
delete mode 100644 Documentation/DocBook/dvb/frontend.h.xml delete mode 100644 Documentation/DocBook/media-indices.tmpl delete mode 100644 Documentation/DocBook/v4l/videodev2.h.xml
Documentation/DocBook/Makefile +258 -21
@@ -6,6 +6,8 @@ # To add a new book the only step required is to add the book to the # list of DOCBOOKS. +TMPMEDIA=.tmpmedia + DOCBOOKS := z8530book.xml mcabook.xml device-drivers.xml \ kernel-hacking.xml kernel-locking.xml deviceiobook.xml \ writing_usb_driver.xml networking.xml \
@@ -14,7 +16,7 @@ DOCBOOKS := z8530book.xml mcabook.xml device-drivers.xml \ genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \ 80211.xml debugobjects.xml sh.xml regulator.xml \ alsa-driver-api.xml writing-an-alsa-driver.xml \ - tracepoint.xml media.xml drm.xml + tracepoint.xml $(TMPMEDIA)/media.xml drm.xml ### # The build process is as follows (targets):
@@ -32,7 +34,7 @@ PS_METHOD = $(prefer-db2x) ### # The targets that may be used. -PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs xmldoclinks +PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs mediaprep BOOKS := $(addprefix $(obj)/,$(DOCBOOKS)) xmldocs: $(BOOKS)
@@ -45,27 +47,13 @@ PDF := $(patsubst %.xml, %.pdf, $(BOOKS)) pdfdocs: $(PDF) HTML := $(sort $(patsubst %.xml, %.html, $(BOOKS))) -htmldocs: $(HTML) xmldoclinks +htmldocs: $(HTML) $(call build_main_index) $(call build_images) MAN := $(patsubst %.xml, %.9, $(BOOKS)) mandocs: $(MAN) -build_images = mkdir -p $(objtree)/Documentation/DocBook/media/ && \ - cp $(srctree)/Documentation/DocBook/dvb/*.png \ - $(srctree)/Documentation/DocBook/v4l/*.gif \ - $(objtree)/Documentation/DocBook/media/ - -xmldoclinks: -ifneq ($(objtree),$(srctree)) - for dep in dvb media-entities.tmpl media-indices.tmpl v4l; do \ - rm -f $(objtree)/Documentation/DocBook/$$dep \ - && ln -s $(srctree)/Documentation/DocBook/$$dep $(objtree)/Documentation/DocBook/ \ - || exit; \ - done -endif - installmandocs: mandocs mkdir -p /usr/local/man/man9/ install Documentation/DocBook/man/*.9.gz /usr/local/man/man9/
@@ -97,11 +85,11 @@ define rule_docproc ) > $(dir $@).$(notdir $@).cmd endef -%.xml: %.tmpl xmldoclinks FORCE +%.xml: %.tmpl FORCE $(call if_changed_rule,docproc) ### -#Read in all saved dependency files +#Read in all saved dependency files cmd_files := $(wildcard $(foreach f,$(BOOKS),$(dir $(f)).$(notdir $(f)).cmd)) ifneq ($(cmd_files),)
@@ -150,7 +138,7 @@ quiet_cmd_db2pdf = PDF $@ index = index.html main_idx = Documentation/DocBook/$(index) -build_main_index = rm -rf $(main_idx) && \ +build_main_index = rm -rf $(main_idx); \ echo '<h1>Linux Kernel HTML Documentation</h1>' >> $(main_idx) && \ echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \ cat $(HTML) >> $(main_idx)
@@ -240,7 +228,7 @@ clean-files := $(DOCBOOKS) \ $(patsubst %.xml, %.9, $(DOCBOOKS)) \ $(index) -clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man +clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man $(MEDIA_DIR) cleandocs: $(Q)rm -f $(call objectify, $(clean-files))
@@ -250,3 +238,252 @@ cleandocs: # information in a variable se we can use it in if_changed and friends. .PHONY: $(PHONY) + + +# +# Media build rules - Auto-generates media contents/indexes and *.h xml's +# + +SHELL=/bin/bash + +MEDIA_DIR=$(objtree)/Documentation/DocBook/$(TMPMEDIA) + +V4L_SGMLS = \ + $(shell ls $(srctree)/Documentation/DocBook/v4l/*.xml|perl -ne 'print "$$1 " if (m,.*/(.*)\n,)') \ + capture.c.xml \ + keytable.c.xml \ + v4l2grab.c.xml + +DVB_SGMLS = \ + $(shell ls $(srctree)/Documentation/DocBook/dvb/*.xml|perl -ne 'print "$$1 " if (m,.*/(.*)\n,)') + +MEDIA_TEMP = media-entities.tmpl \ + media-indices.tmpl \ + videodev2.h.xml \ + frontend.h.xml + +MEDIA_SGMLS = $(addprefix ./,$(V4L_SGMLS)) $(addprefix ./,$(DVB_SGMLS)) $(addprefix ./,$(MEDIA_TEMP)) + +MEDIA_TEMP_OBJ := $(addprefix $(MEDIA_DIR)/,$(MEDIA_TEMP)) + +FUNCS = \ + close \ + ioctl \ + mmap \ + munmap \ + open \ + poll \ + read \ + select \ + write \ + +IOCTLS = \ + $(shell perl -ne 'print "$$1 " if /\#define\s+([^\s]+)\s+_IO/' $(srctree)/include/linux/videodev2.h) \ + $(shell perl -ne 'print "$$1 " if /\#define\s+([^\s]+)\s+_IO/' $(srctree)/include/linux/media.h) \ + $(shell perl -ne 'print "$$1 " if /\#define\s+([^\s]+)\s+_IO/' $(srctree)/include/linux/v4l2-subdev.h) \ + VIDIOC_SUBDEV_G_FRAME_INTERVAL \ + VIDIOC_SUBDEV_S_FRAME_INTERVAL \ + VIDIOC_SUBDEV_ENUM_MBUS_CODE \ + VIDIOC_SUBDEV_ENUM_FRAME_SIZE \ + VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL \ + +TYPES = \ + $(shell perl -ne 'print "$$1 " if /^typedef\s+[^\s]+\s+([^\s]+)\;/' $(srctree)/include/linux/videodev2.h) + +ENUMS = \ + $(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/linux/videodev2.h) \ + $(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/linux/media.h) \ + $(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/linux/v4l2-mediabus.h) \ + $(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/linux/v4l2-subdev.h) + +STRUCTS = \ + $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/linux/videodev2.h) \ + $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/linux/media.h) \ + $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/linux/v4l2-subdev.h) \ + $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/linux/v4l2-mediabus.h) + +ERRORS = \ + EACCES \ + EAGAIN \ + EBADF \ + EBUSY \ + EFAULT \ + EIO \ + EINTR \ + EINVAL \ + ENFILE \ + ENOMEM \ + ENOSPC \ + ENOTTY \ + ENXIO \ + EMFILE \ + EPERM \ + ERANGE \ + EPIPE \ + +ESCAPE = \ + -e "s/&/\\&/g" \ + -e "s/</\\</g" \ + -e "s/>/\\>/g" + +FILENAME = \ + -e s,"^[^\/]*/",, \ + -e s/"\\.xml"// \ + -e s/"\\.tmpl"// \ + -e s/\\\./-/g \ + -e s/"^func-"// \ + -e s/"^pixfmt-"// \ + -e s/"^vidioc-"// + +# Generate references to these structs in videodev2.h.xml. +DOCUMENTED = \ + -e "s/\(enum *\)v4l2_mpeg_cx2341x_video_\([a-z]*_spatial_filter_type\)/\1<link linkend=\"\2\">v4l2_mpeg_cx2341x_video_\2<\/link>/g" \ + -e "s/\(\(enum\|struct\) *\)\(v4l2_[a-zA-Z0-9_]*\)/\1<link linkend=\"\3\">\3<\/link>/g" \ + -e "s/\(V4L2_PIX_FMT_[A-Z0-9_]\+\) /<link linkend=\"\1\">\1<\/link> /g" \ + -e ":a;s/\(linkend=\".*\)_\(.*\">\)/\1-\2/;ta" \ + -e "s/v4l2\-mpeg\-vbi\-ITV0/v4l2-mpeg-vbi-itv0-1/g" + +DVB_DOCUMENTED = \ + -e "s,\(define \)\([A-Z0-9_]\+\)\(\s\+_IO\),\1\<link linkend=\"\2\">\2\<\/link\>\3,g" \ + -e "s/\(linkend\=\"\)FE_SET_PROPERTY/\1FE_GET_PROPERTY/g" + + +# +# Media targets and dependencies +# + +$(obj)/$(TMPMEDIA)/media.xml: $(obj)/media.tmpl $(MEDIA_TEMP_OBJ) FORCE + $(call if_changed_rule,docproc) + +$(MEDIA_DIR)/v4l2.xml: + @$($(quiet)gen_xml) + @(mkdir -p $(MEDIA_DIR)) + @(cp $(srctree)/Documentation/DocBook/dvb/*.png $(srctree)/Documentation/DocBook/v4l/*.gif $(MEDIA_DIR)/) + @(ln -sf $(srctree)/Documentation/DocBook/v4l/*xml $(MEDIA_DIR)/) + @(ln -sf $(srctree)/Documentation/DocBook/dvb/*xml $(MEDIA_DIR)/) + +$(MEDIA_DIR)/videodev2.h.xml: $(srctree)/include/linux/videodev2.h $(MEDIA_DIR)/v4l2.xml + @$($(quiet)gen_xml) + @( \ + echo "<programlisting>") > $@ + @( \ + expand --tabs=8 < $< | \ + sed $(ESCAPE) $(DOCUMENTED) | \ + sed 's/i\.e\./&ie;/') >> $@ + @( \ + echo "</programlisting>") >> $@ + +$(MEDIA_DIR)/frontend.h.xml: $(srctree)/include/linux/dvb/frontend.h $(MEDIA_DIR)/v4l2.xml + @$($(quiet)gen_xml) + @( \ + echo "<programlisting>") > $@ + @( \ + expand --tabs=8 < $< | \ + sed $(ESCAPE) $(DVB_DOCUMENTED) | \ + sed 's/i\.e\./&ie;/') >> $@ + @( \ + echo "</programlisting>") >> $@ + +$(MEDIA_DIR)/media-entities.tmpl: $(MEDIA_DIR)/v4l2.xml + @$($(quiet)gen_xml) + @( \ + echo "<!-- Generated file! Do not edit. -->") >$@ + @( \ + echo -e "\n<!-- Functions -->") >>$@ + @( \ + for ident in $(FUNCS) ; do \ + entity=`echo $$ident | tr _ -` ; \ + echo "<!ENTITY func-$$entity \"<link" \ + "linkend='func-$$entity'><function>$$ident()</function></link>\">" \ + >>$@ ; \ + done) + @( \ + echo -e "\n<!-- Ioctls -->") >>$@ + @( \ + for ident in $(IOCTLS) ; do \ + entity=`echo $$ident | tr _ -` ; \ + id=`grep "<refname>$$ident" $(MEDIA_DIR)/vidioc-*.xml | sed -r s,"^.*/(.*).xml.*","\1",` ; \ + echo "<!ENTITY $$entity \"<link" \ + "linkend='$$id'><constant>$$ident</constant></link>\">" \ + >>$@ ; \ + done) + @( \ + echo -e "\n<!-- Types -->") >>$@ + @( \ + for ident in $(TYPES) ; do \ + entity=`echo $$ident | tr _ -` ; \ + echo "<!ENTITY $$entity \"<link" \ + "linkend='$$entity'>$$ident</link>\">" >>$@ ; \ + done) + @( \ + echo -e "\n<!-- Enums -->") >>$@ + @( \ + for ident in $(ENUMS) ; do \ + entity=`echo $$ident | sed -e "s/v4l2_mpeg_cx2341x_video_\([a-z]*_spatial_filter_type\)/\1/" | tr _ -` ; \ + echo "<!ENTITY $$entity \"enum <link" \ + "linkend='$$entity'>$$ident</link>\">" >>$@ ; \ + done) + @( \ + echo -e "\n<!-- Structures -->") >>$@ + @( \ + for ident in $(STRUCTS) ; do \ + entity=`echo $$ident | tr _ - | sed s/v4l2-mpeg-vbi-ITV0/v4l2-mpeg-vbi-itv0-1/g` ; \ + echo "<!ENTITY $$entity \"struct <link" \ + "linkend='$$entity'>$$ident</link>\">" >>$@ ; \ + done) + @( \ + echo -e "\n<!-- Error Codes -->") >>$@ + @( \ + for ident in $(ERRORS) ; do \ + echo "<!ENTITY $$ident \"<errorcode>$$ident</errorcode>" \ + "error code\">" >>$@ ; \ + done) + @( \ + echo -e "\n<!-- Subsections -->") >>$@ + @( \ + for file in $(MEDIA_SGMLS) ; do \ + entity=`echo "$$file" | sed $(FILENAME) -e s/"^([^-]*)"/sub\1/` ; \ + if ! echo "$$file" | \ + grep -q -E -e '^(func|vidioc|pixfmt)-' ; then \ + echo "<!ENTITY sub-$$entity SYSTEM \"$$file\">" >>$@ ; \ + fi ; \ + done) + @( \ + echo -e "\n<!-- Function Reference -->") >>$@ + @( \ + for file in $(MEDIA_SGMLS) ; do \ + if echo "$$file" | \ + grep -q -E -e '(func|vidioc|pixfmt)-' ; then \ + entity=`echo "$$file" |sed $(FILENAME)` ; \ + echo "<!ENTITY $$entity SYSTEM \"$$file\">" >>$@ ; \ + fi ; \ + done) + +# Jade can auto-generate a list-of-tables, which includes all structs, +# but we only want data types, all types, and sorted please. +$(MEDIA_DIR)/media-indices.tmpl: $(MEDIA_DIR)/v4l2.xml + @$($(quiet)gen_xml) + @( \ + echo "<!-- Generated file! Do not edit. -->") >$@ + @( \ + echo -e "\n<index><title>List of Types</title>") >>$@ + @( \ + for ident in $(TYPES) ; do \ + id=`echo $$ident | tr _ -` ; \ + echo "<indexentry><primaryie><link" \ + "linkend='$$id'>$$ident</link></primaryie></indexentry>" >>$@ ; \ + done) + @( \ + for ident in $(ENUMS) ; do \ + id=`echo $$ident | sed -e "s/v4l2_mpeg_cx2341x_video_\([a-z]*_spatial_filter_type\)/\1/" | tr _ -`; \ + echo "<indexentry><primaryie>enum <link" \ + "linkend='$$id'>$$ident</link></primaryie></indexentry>" >>$@ ; \ + done) + @( \ + for ident in $(STRUCTS) ; do \ + id=`echo $$ident | tr _ - | sed s/v4l2-mpeg-vbi-ITV0/v4l2-mpeg-vbi-itv0-1/g` ; \ + echo "<indexentry><primaryie>struct <link" \ + "linkend='$$id'>$$ident</link></primaryie></indexentry>" >>$@ ; \ + done) + @( \ + echo "</index>") >>$@
Documentation/DocBook/dvb/frontend.h.xml deleted +0 -428
428 lines not on this page · raw message
Documentation/DocBook/media-indices.tmpl deleted +0 -89
89 lines not on this page · raw message
Documentation/DocBook/v4l/videodev2.h.xml deleted +0 -1946
1,946 lines not on this page · raw message
Signature · 1 line
1.7.1
Re: [PATCH 3/3] [media] DocBook: Add rules to auto-generate some media docbook
Quoted 6 lines · On Wed, 25 May 2011 12:26:42 -0300 Mauro Carvalho Chehab wrote:
Auto-generate the videodev2.h.xml,frontend.h.xml and the indexes.
Some logic at the
Makefilehelps us to identify when a symbol is missing, like for example:Error: no ID for constraint linkend: V4L2-PIX-FMT-JPGL.
a. Still get that message.. is that OK?
b. In the generated index.html file, "media" is listed first, but it should be listed in alphabetical order, not first.
c. The generated files are (hidden) in .tmpmedia/
d. The link from the top-level index.html file to "media" is to media/index.html, but the file is actually in .tmpmedia/media/index.html
e. patches 1/3 and 2/3 are OK.
Please build docs with and without using "O=builddir" and test that.
I'm looking over the generated output now and will let you know if I see any other problems.
Quoted 5 lines
Signed-off-by Mauro Carvalho Chehab <[email protected]>delete mode 100644 Documentation/DocBook/dvb/frontend.h.xml delete mode 100644 Documentation/DocBook/media-indices.tmpl delete mode 100644 Documentation/DocBook/v4l/videodev2.h.xml
diffstat:
Documentation/DocBook/Makefile | 279 ++ Documentation/DocBook/dvb/frontend.h.xml | 428 ---- Documentation/DocBook/media-indices.tmpl | 89 Documentation/DocBook/v4l/videodev2.h.xml | 1946 -------------------- 4 files changed, 258 insertions(+), 2484 deletions(-)
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
Re: [PATCH 3/3] [media] DocBook: Add rules to auto-generate some media docbook
Hi Randy,
Em 26-05-2011 00:10, Randy Dunlap escreveu:
Quoted 20 lines · On Wed, 25 May 2011 12:26:42 -0300 Mauro Carvalho Chehab wrote:
Quoted 7 lines
Auto-generate the videodev2.h.xml,frontend.h.xml and the indexes.
Some logic at the
Makefilehelps us to identify when a symbol is missing, like for example:Error: no ID for constraint linkend: V4L2-PIX-FMT-JPGL.
a. Still get that message.. is that OK?
b. In the generated index.html file, "media" is listed first, but it should be listed in alphabetical order, not first.
c. The generated files are (hidden) in .tmpmedia/
d. The link from the top-level index.html file to "media" is to media/index.html, but the file is actually in .tmpmedia/media/index.html
Quoted 7 lines
e. patches 1/3 and 2/3 are OK.
Please build docs with and without using "O=builddir" and test that.
I'm looking over the generated output now and will let you know if I see any other problems.
Fixed the pointed issues. I also moved the media-specific stuff into another Makefile. I opted to include it into the DocBook Makefile, as otherwise, I would need to duplicate the xml conversion stuff into the media/Makefile.
Patch is enclosed.
Cheers,
Mauro
-
[media] DocBook: Move all media docbook stuff into its own directory
This patch addresses several issues pointed by Randy Dunlap <[email protected]> at changeset ece722c:
- In the generated index.html file, "media" is listed first, but it should be listed in alphabetical order, not first.
- The generated files are (hidden) in .tmpmedia/
- The link from the top-level index.html file to "media" is to media/index.html, but the file is actually in .tmpmedia/media/index.html
- Please build docs with and without using "O=builddir" and test that.
- Would it be possible for media to have its own Makefile instead of merging into this one?
Due to the way cleandocs target works, I had to rename the media DocBook to media_api, otherwise cleandocs would remove the /media directory.
Thanks-to: Randy Dunlap <[email protected]>
Documentation/DocBook/.gitignore +10 -1
@@ -8,4 +8,13 @@ *.dvi *.log *.out -media/ +crop.gif +dvbstb.png +fieldseq_bt.gif +fieldseq_tb.gif +media-indices.tmpl +nv12mt.gif +nv12mt_example.gif +vbi_525.gif +vbi_625.gif +vbi_hsync.gif
Documentation/DocBook/Makefile +6 -255
289 lines not on this page · raw message
Documentation/DocBook/media-entities.tmpl deleted +0 -464
464 lines not on this page · raw message
Documentation/DocBook/media/Makefile new file +259 -0
259 lines not on this page · raw message
Documentation/DocBook/media/dvb/.gitignore renamed from Documentation/DocBook/dvb/.gitignore +0 -0
Documentation/DocBook/media/dvb/audio.xml renamed from Documentation/DocBook/dvb/audio.xml +0 -0
Documentation/DocBook/media/dvb/ca.xml renamed from Documentation/DocBook/dvb/ca.xml +0 -0
Documentation/DocBook/media/dvb/demux.xml renamed from Documentation/DocBook/dvb/demux.xml +0 -0
Documentation/DocBook/media/dvb/dvbapi.xml renamed from Documentation/DocBook/dvb/dvbapi.xml +0 -0
Documentation/DocBook/media/dvb/dvbproperty.xml renamed from Documentation/DocBook/dvb/dvbproperty.xml +0 -0
Documentation/DocBook/media/dvb/examples.xml renamed from Documentation/DocBook/dvb/examples.xml +0 -0
Documentation/DocBook/media/dvb/frontend.xml renamed from Documentation/DocBook/dvb/frontend.xml +0 -0
Documentation/DocBook/media/dvb/intro.xml renamed from Documentation/DocBook/dvb/intro.xml +0 -0
Documentation/DocBook/media/dvb/kdapi.xml renamed from Documentation/DocBook/dvb/kdapi.xml +0 -0
Documentation/DocBook/media/dvb/net.xml renamed from Documentation/DocBook/dvb/net.xml +0 -0
Documentation/DocBook/media/dvb/video.xml renamed from Documentation/DocBook/dvb/video.xml +0 -0
Documentation/DocBook/media/v4l/.gitignore renamed from Documentation/DocBook/v4l/.gitignore +0 -0
Documentation/DocBook/media/v4l/biblio.xml renamed from Documentation/DocBook/v4l/biblio.xml +0 -0
Documentation/DocBook/media/v4l/capture.c.xml renamed from Documentation/DocBook/v4l/capture.c.xml +0 -0
Documentation/DocBook/media/v4l/common.xml renamed from Documentation/DocBook/v4l/common.xml +0 -0
Documentation/DocBook/media/v4l/compat.xml renamed from Documentation/DocBook/v4l/compat.xml +0 -0
Documentation/DocBook/media/v4l/controls.xml renamed from Documentation/DocBook/v4l/controls.xml +0 -0
Documentation/DocBook/media/v4l/dev-capture.xml renamed from Documentation/DocBook/v4l/dev-capture.xml +0 -0
Documentation/DocBook/media/v4l/dev-codec.xml renamed from Documentation/DocBook/v4l/dev-codec.xml +0 -0
Documentation/DocBook/media/v4l/dev-effect.xml renamed from Documentation/DocBook/v4l/dev-effect.xml +0 -0
Documentation/DocBook/media/v4l/dev-event.xml renamed from Documentation/DocBook/v4l/dev-event.xml +0 -0
Documentation/DocBook/media/v4l/dev-osd.xml renamed from Documentation/DocBook/v4l/dev-osd.xml +0 -0
Documentation/DocBook/media/v4l/dev-output.xml renamed from Documentation/DocBook/v4l/dev-output.xml +0 -0
Documentation/DocBook/media/v4l/dev-overlay.xml renamed from Documentation/DocBook/v4l/dev-overlay.xml +0 -0
Documentation/DocBook/media/v4l/dev-radio.xml renamed from Documentation/DocBook/v4l/dev-radio.xml +0 -0
Documentation/DocBook/media/v4l/dev-raw-vbi.xml renamed from Documentation/DocBook/v4l/dev-raw-vbi.xml +0 -0
Documentation/DocBook/media/v4l/dev-rds.xml renamed from Documentation/DocBook/v4l/dev-rds.xml +0 -0
Documentation/DocBook/media/v4l/dev-sliced-vbi.xml renamed from Documentation/DocBook/v4l/dev-sliced-vbi.xml +0 -0
Documentation/DocBook/media/v4l/dev-subdev.xml renamed from Documentation/DocBook/v4l/dev-subdev.xml +0 -0
Documentation/DocBook/media/v4l/dev-teletext.xml renamed from Documentation/DocBook/v4l/dev-teletext.xml +0 -0
Documentation/DocBook/media/v4l/driver.xml renamed from Documentation/DocBook/v4l/driver.xml +0 -0
Documentation/DocBook/media/v4l/fdl-appendix.xml renamed from Documentation/DocBook/v4l/fdl-appendix.xml +0 -0
Documentation/DocBook/media/v4l/func-close.xml renamed from Documentation/DocBook/v4l/func-close.xml +0 -0
Documentation/DocBook/media/v4l/func-ioctl.xml renamed from Documentation/DocBook/v4l/func-ioctl.xml +0 -0
Documentation/DocBook/media/v4l/func-mmap.xml renamed from Documentation/DocBook/v4l/func-mmap.xml +0 -0
Documentation/DocBook/media/v4l/func-munmap.xml renamed from Documentation/DocBook/v4l/func-munmap.xml +0 -0
Documentation/DocBook/media/v4l/func-open.xml renamed from Documentation/DocBook/v4l/func-open.xml +0 -0
Documentation/DocBook/media/v4l/func-poll.xml renamed from Documentation/DocBook/v4l/func-poll.xml +0 -0
Documentation/DocBook/media/v4l/func-read.xml renamed from Documentation/DocBook/v4l/func-read.xml +0 -0
Documentation/DocBook/media/v4l/func-select.xml renamed from Documentation/DocBook/v4l/func-select.xml +0 -0
Documentation/DocBook/media/v4l/func-write.xml renamed from Documentation/DocBook/v4l/func-write.xml +0 -0
Documentation/DocBook/media/v4l/io.xml renamed from Documentation/DocBook/v4l/io.xml +0 -0
Documentation/DocBook/media/v4l/keytable.c.xml renamed from Documentation/DocBook/v4l/keytable.c.xml +0 -0
Documentation/DocBook/media/v4l/libv4l.xml renamed from Documentation/DocBook/v4l/libv4l.xml +0 -0
Documentation/DocBook/media/v4l/lirc_device_interface.xml renamed from Documentation/DocBook/v4l/lirc_device_interface.xml +0 -0
Documentation/DocBook/media/v4l/media-controller.xml renamed from Documentation/DocBook/v4l/media-controller.xml +0 -0
Documentation/DocBook/media/v4l/media-func-close.xml renamed from Documentation/DocBook/v4l/media-func-close.xml +0 -0
Documentation/DocBook/media/v4l/media-func-ioctl.xml renamed from Documentation/DocBook/v4l/media-func-ioctl.xml +0 -0
Documentation/DocBook/media/v4l/media-func-open.xml renamed from Documentation/DocBook/v4l/media-func-open.xml +0 -0
Documentation/DocBook/media/v4l/media-ioc-device-info.xml renamed from Documentation/DocBook/v4l/media-ioc-device-info.xml +0 -0
Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml renamed from Documentation/DocBook/v4l/media-ioc-enum-entities.xml +0 -0
Documentation/DocBook/media/v4l/media-ioc-enum-links.xml renamed from Documentation/DocBook/v4l/media-ioc-enum-links.xml +0 -0
Documentation/DocBook/media/v4l/media-ioc-setup-link.xml renamed from Documentation/DocBook/v4l/media-ioc-setup-link.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-grey.xml renamed from Documentation/DocBook/v4l/pixfmt-grey.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-m420.xml renamed from Documentation/DocBook/v4l/pixfmt-m420.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-nv12.xml renamed from Documentation/DocBook/v4l/pixfmt-nv12.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-nv12m.xml renamed from Documentation/DocBook/v4l/pixfmt-nv12m.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-nv12mt.xml renamed from Documentation/DocBook/v4l/pixfmt-nv12mt.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-nv16.xml renamed from Documentation/DocBook/v4l/pixfmt-nv16.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-packed-rgb.xml renamed from Documentation/DocBook/v4l/pixfmt-packed-rgb.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-packed-yuv.xml renamed from Documentation/DocBook/v4l/pixfmt-packed-yuv.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-sbggr16.xml renamed from Documentation/DocBook/v4l/pixfmt-sbggr16.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-sbggr8.xml renamed from Documentation/DocBook/v4l/pixfmt-sbggr8.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-sgbrg8.xml renamed from Documentation/DocBook/v4l/pixfmt-sgbrg8.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-sgrbg8.xml renamed from Documentation/DocBook/v4l/pixfmt-sgrbg8.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-srggb10.xml renamed from Documentation/DocBook/v4l/pixfmt-srggb10.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-srggb12.xml renamed from Documentation/DocBook/v4l/pixfmt-srggb12.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-srggb8.xml renamed from Documentation/DocBook/v4l/pixfmt-srggb8.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-uyvy.xml renamed from Documentation/DocBook/v4l/pixfmt-uyvy.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-vyuy.xml renamed from Documentation/DocBook/v4l/pixfmt-vyuy.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-y10.xml renamed from Documentation/DocBook/v4l/pixfmt-y10.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-y10b.xml renamed from Documentation/DocBook/v4l/pixfmt-y10b.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-y12.xml renamed from Documentation/DocBook/v4l/pixfmt-y12.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-y16.xml renamed from Documentation/DocBook/v4l/pixfmt-y16.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-y41p.xml renamed from Documentation/DocBook/v4l/pixfmt-y41p.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-yuv410.xml renamed from Documentation/DocBook/v4l/pixfmt-yuv410.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-yuv411p.xml renamed from Documentation/DocBook/v4l/pixfmt-yuv411p.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-yuv420.xml renamed from Documentation/DocBook/v4l/pixfmt-yuv420.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-yuv420m.xml renamed from Documentation/DocBook/v4l/pixfmt-yuv420m.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-yuv422p.xml renamed from Documentation/DocBook/v4l/pixfmt-yuv422p.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-yuyv.xml renamed from Documentation/DocBook/v4l/pixfmt-yuyv.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt-yvyu.xml renamed from Documentation/DocBook/v4l/pixfmt-yvyu.xml +0 -0
Documentation/DocBook/media/v4l/pixfmt.xml renamed from Documentation/DocBook/v4l/pixfmt.xml +0 -0
Documentation/DocBook/media/v4l/planar-apis.xml renamed from Documentation/DocBook/v4l/planar-apis.xml +0 -0
Documentation/DocBook/media/v4l/remote_controllers.xml renamed from Documentation/DocBook/v4l/remote_controllers.xml +0 -0
Documentation/DocBook/media/v4l/subdev-formats.xml renamed from Documentation/DocBook/v4l/subdev-formats.xml +0 -0
Documentation/DocBook/media/v4l/v4l2.xml renamed from Documentation/DocBook/v4l/v4l2.xml +0 -0
Documentation/DocBook/media/v4l/v4l2grab.c.xml renamed from Documentation/DocBook/v4l/v4l2grab.c.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-cropcap.xml renamed from Documentation/DocBook/v4l/vidioc-cropcap.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-dbg-g-chip-ident.xml renamed from Documentation/DocBook/v4l/vidioc-dbg-g-chip-ident.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-dbg-g-register.xml renamed from Documentation/DocBook/v4l/vidioc-dbg-g-register.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-dqevent.xml renamed from Documentation/DocBook/v4l/vidioc-dqevent.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-encoder-cmd.xml renamed from Documentation/DocBook/v4l/vidioc-encoder-cmd.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enum-dv-presets.xml renamed from Documentation/DocBook/v4l/vidioc-enum-dv-presets.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enum-fmt.xml renamed from Documentation/DocBook/v4l/vidioc-enum-fmt.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enum-frameintervals.xml renamed from Documentation/DocBook/v4l/vidioc-enum-frameintervals.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enum-framesizes.xml renamed from Documentation/DocBook/v4l/vidioc-enum-framesizes.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enumaudio.xml renamed from Documentation/DocBook/v4l/vidioc-enumaudio.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enumaudioout.xml renamed from Documentation/DocBook/v4l/vidioc-enumaudioout.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enuminput.xml renamed from Documentation/DocBook/v4l/vidioc-enuminput.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enumoutput.xml renamed from Documentation/DocBook/v4l/vidioc-enumoutput.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-enumstd.xml renamed from Documentation/DocBook/v4l/vidioc-enumstd.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-audio.xml renamed from Documentation/DocBook/v4l/vidioc-g-audio.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-audioout.xml renamed from Documentation/DocBook/v4l/vidioc-g-audioout.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-crop.xml renamed from Documentation/DocBook/v4l/vidioc-g-crop.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-ctrl.xml renamed from Documentation/DocBook/v4l/vidioc-g-ctrl.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-dv-preset.xml renamed from Documentation/DocBook/v4l/vidioc-g-dv-preset.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-dv-timings.xml renamed from Documentation/DocBook/v4l/vidioc-g-dv-timings.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-enc-index.xml renamed from Documentation/DocBook/v4l/vidioc-g-enc-index.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml renamed from Documentation/DocBook/v4l/vidioc-g-ext-ctrls.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-fbuf.xml renamed from Documentation/DocBook/v4l/vidioc-g-fbuf.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-fmt.xml renamed from Documentation/DocBook/v4l/vidioc-g-fmt.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-frequency.xml renamed from Documentation/DocBook/v4l/vidioc-g-frequency.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-input.xml renamed from Documentation/DocBook/v4l/vidioc-g-input.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-jpegcomp.xml renamed from Documentation/DocBook/v4l/vidioc-g-jpegcomp.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-modulator.xml renamed from Documentation/DocBook/v4l/vidioc-g-modulator.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-output.xml renamed from Documentation/DocBook/v4l/vidioc-g-output.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-parm.xml renamed from Documentation/DocBook/v4l/vidioc-g-parm.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-priority.xml renamed from Documentation/DocBook/v4l/vidioc-g-priority.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-sliced-vbi-cap.xml renamed from Documentation/DocBook/v4l/vidioc-g-sliced-vbi-cap.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-std.xml renamed from Documentation/DocBook/v4l/vidioc-g-std.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-g-tuner.xml renamed from Documentation/DocBook/v4l/vidioc-g-tuner.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-log-status.xml renamed from Documentation/DocBook/v4l/vidioc-log-status.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-overlay.xml renamed from Documentation/DocBook/v4l/vidioc-overlay.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-qbuf.xml renamed from Documentation/DocBook/v4l/vidioc-qbuf.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-query-dv-preset.xml renamed from Documentation/DocBook/v4l/vidioc-query-dv-preset.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-querybuf.xml renamed from Documentation/DocBook/v4l/vidioc-querybuf.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-querycap.xml renamed from Documentation/DocBook/v4l/vidioc-querycap.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-queryctrl.xml renamed from Documentation/DocBook/v4l/vidioc-queryctrl.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-querystd.xml renamed from Documentation/DocBook/v4l/vidioc-querystd.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-reqbufs.xml renamed from Documentation/DocBook/v4l/vidioc-reqbufs.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-s-hw-freq-seek.xml renamed from Documentation/DocBook/v4l/vidioc-s-hw-freq-seek.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-streamon.xml renamed from Documentation/DocBook/v4l/vidioc-streamon.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-subdev-enum-frame-interval.xml renamed from Documentation/DocBook/v4l/vidioc-subdev-enum-frame-interval.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-subdev-enum-frame-size.xml renamed from Documentation/DocBook/v4l/vidioc-subdev-enum-frame-size.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-subdev-enum-mbus-code.xml renamed from Documentation/DocBook/v4l/vidioc-subdev-enum-mbus-code.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-subdev-g-crop.xml renamed from Documentation/DocBook/v4l/vidioc-subdev-g-crop.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-subdev-g-fmt.xml renamed from Documentation/DocBook/v4l/vidioc-subdev-g-fmt.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-subdev-g-frame-interval.xml renamed from Documentation/DocBook/v4l/vidioc-subdev-g-frame-interval.xml +0 -0
Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml renamed from Documentation/DocBook/v4l/vidioc-subscribe-event.xml +0 -0
Documentation/DocBook/media_api.tmpl renamed from Documentation/DocBook/media.tmpl +0 -0
Re: [PATCH 3/3] [media] DocBook: Add rules to auto-generate some media docbook
Quoted 26 lines · On Wed, 01 Jun 2011 07:52:33 -0300 Mauro Carvalho Chehab wrote:
Hi Randy,
Em 26-05-2011 00:10, Randy Dunlap escreveu:
Quoted 23 lines · On Wed, 25 May 2011 12:26:42 -0300 Mauro Carvalho Chehab wrote:
Quoted 7 lines
Auto-generate the videodev2.h.xml,frontend.h.xml and the indexes.
Some logic at the
Makefilehelps us to identify when a symbol is missing, like for example:Error: no ID for constraint linkend: V4L2-PIX-FMT-JPGL.
a. Still get that message.. is that OK?
b. In the generated index.html file, "media" is listed first, but it should be listed in alphabetical order, not first.
c. The generated files are (hidden) in .tmpmedia/
d. The link from the top-level index.html file to "media" is to media/index.html, but the file is actually in .tmpmedia/media/index.html
e. patches 1/3 and 2/3 are OK.
Quoted 8 lines
Quoted 4 lines
Please build docs with and without using "O=builddir" and test that.
I'm looking over the generated output now and will let you know if I see any other problems.
Fixed the pointed issues. I also moved the media-specific stuff into another
Makefile. I opted to include it into the DocBookMakefile, as otherwise, I would need to duplicate the xml conversion stuff into the media/Makefile.
Sounds good. Thanks.
Quoted 1 line
Patch is enclosed.
It will probably be a few days before I test this again, so just merge it when you are ready...
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
Re: [PATCH 3/3] [media] DocBook: Add rules to auto-generate some media docbook
Em 01-06-2011 13:01, Randy Dunlap escreveu:
Quoted 37 lines · On Wed, 01 Jun 2011 07:52:33 -0300 Mauro Carvalho Chehab wrote:
Quoted 27 lines
Hi Randy,
Em 26-05-2011 00:10, Randy Dunlap escreveu:
Quoted 23 lines · On Wed, 25 May 2011 12:26:42 -0300 Mauro Carvalho Chehab wrote:
Quoted 7 lines
Auto-generate the videodev2.h.xml,frontend.h.xml and the indexes.
Some logic at the
Makefilehelps us to identify when a symbol is missing, like for example:Error: no ID for constraint linkend: V4L2-PIX-FMT-JPGL.
a. Still get that message.. is that OK?
b. In the generated index.html file, "media" is listed first, but it should be listed in alphabetical order, not first.
c. The generated files are (hidden) in .tmpmedia/
d. The link from the top-level index.html file to "media" is to media/index.html, but the file is actually in .tmpmedia/media/index.html
e. patches 1/3 and 2/3 are OK.
Quoted 8 lines
Quoted 4 lines
Please build docs with and without using "O=builddir" and test that.
I'm looking over the generated output now and will let you know if I see any other problems.
Fixed the pointed issues. I also moved the media-specific stuff into another
Makefile. I opted to include it into the DocBookMakefile, as otherwise, I would need to duplicate the xml conversion stuff into the media/Makefile.
Quoted 6 lines
Sounds good. Thanks.
Quoted 1 line
Patch is enclosed.
It will probably be a few days before I test this again, so just merge it when you are ready...
Thanks for your review. I'll add it to my to my -next tree today. It is probably ok to wait for 3.1 merge window before merging it upstream. Just merging it at the development tree will help us to track troubles at the API changes.
Thanks,
Mauro