[media] docs-rst: fix cross-references for videodev2.h
There are several broken references there, due to the conversion to C domain. Fix them using this shell script and manually adjust what's broken: # funcs is a file with the broken functions/references for i in $(cat funcs|sort|uniq|perl -ne 'print "$1\n" if (m/(\S+)$/)'); do i=${i//-/_} echo $i j=${i//_/-} for k in $(git grep -l "_$j:" Documentation/); do sed s,\_$j\:,"c\:type\:\: $i", <$k >a && mv a $k done for k in $(git grep -l "$j" Documentation/media/*.exceptions); do sed s,$j,":c\:type\:\`$i\`", <$k >a && mv a $k done for k in $(git grep -l "$j" Documentation/); do sed "s,:ref:\`$i <$j>\`,:c:type:\`$i\`," <$k >a && mv a $k sed "s,:ref:\`$j\`,:c:type:\`$i\`," <$k >a && mv a $k sed -E "s,:ref:\`(.*)<$j>\`,:c:type:\`\1<$i>\`," <$k >a && mv a $k done for k in $(git grep -l "<$j>" include/media); do sed -E "s,:ref:\`(.*)<$j>\`,enum \&$i," <$k >a && mv a $k done done Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
@@ -46,7 +46,7 @@ Media Bus Formats
|
||||
|
||||
- ``field``
|
||||
|
||||
- Field order, from enum :ref:`v4l2_field <v4l2-field>`. See
|
||||
- Field order, from enum :c:type:`v4l2_field`. See
|
||||
:ref:`field-order` for details.
|
||||
|
||||
- .. row 5
|
||||
@@ -56,12 +56,12 @@ Media Bus Formats
|
||||
- ``colorspace``
|
||||
|
||||
- Image colorspace, from enum
|
||||
:ref:`v4l2_colorspace <v4l2-colorspace>`. See
|
||||
:c:type:`v4l2_colorspace`. See
|
||||
:ref:`colorspaces` for details.
|
||||
|
||||
- .. row 6
|
||||
|
||||
- enum :ref:`v4l2_ycbcr_encoding <v4l2-ycbcr-encoding>`
|
||||
- enum :c:type:`v4l2_ycbcr_encoding`
|
||||
|
||||
- ``ycbcr_enc``
|
||||
|
||||
@@ -71,7 +71,7 @@ Media Bus Formats
|
||||
|
||||
- .. row 7
|
||||
|
||||
- enum :ref:`v4l2_quantization <v4l2-quantization>`
|
||||
- enum :c:type:`v4l2_quantization`
|
||||
|
||||
- ``quantization``
|
||||
|
||||
@@ -81,7 +81,7 @@ Media Bus Formats
|
||||
|
||||
- .. row 8
|
||||
|
||||
- enum :ref:`v4l2_xfer_func <v4l2-xfer-func>`
|
||||
- enum :c:type:`v4l2_xfer_func`
|
||||
|
||||
- ``xfer_func``
|
||||
|
||||
|
Reference in New Issue
Block a user