[media] V4L: Remove deprecated image centering controls
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 3 Jan 2013 15:30:30 +0000 (12:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:59:47 +0000 (09:59 -0200)
It has been over 3 years since the V4L2_CID_[HV]CENTER were deprecated.
Clean up the DocBook and remove the V4L2_CID_VCENTER_DEPRECATED,
V4L2_CID_VCENTER_DEPRECATED control related paragraphs.
Remove the V4L2_CID_[HV]CENTER controls definitions from v4l2-controls.h,
these controls are not used by any driver in the mainline now.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/DocBook/media/v4l/controls.xml
drivers/media/v4l2-core/v4l2-ctrls.c
include/uapi/linux/v4l2-controls.h

index 7fe5be1d3bbb14f58eb5ea60f32fa43b17bda894..9e8f85498678ceebc030c8bd47b77d9d3cf0ff2f 100644 (file)
@@ -203,29 +203,6 @@ and should not be used in new drivers and applications.</entry>
            <entry>boolean</entry>
            <entry>Mirror the picture vertically.</entry>
          </row>
-       <row>
-         <entry><constant>V4L2_CID_HCENTER_DEPRECATED</constant> (formerly <constant>V4L2_CID_HCENTER</constant>)</entry>
-           <entry>integer</entry>
-           <entry>Horizontal image centering. This control is
-deprecated. New drivers and applications should use the <link
-linkend="camera-controls">Camera class controls</link>
-<constant>V4L2_CID_PAN_ABSOLUTE</constant>,
-<constant>V4L2_CID_PAN_RELATIVE</constant> and
-<constant>V4L2_CID_PAN_RESET</constant> instead.</entry>
-         </row>
-         <row>
-           <entry><constant>V4L2_CID_VCENTER_DEPRECATED</constant>
-           (formerly <constant>V4L2_CID_VCENTER</constant>)</entry>
-           <entry>integer</entry>
-           <entry>Vertical image centering. Centering is intended to
-<emphasis>physically</emphasis> adjust cameras. For image cropping see
-<xref linkend="crop" />, for clipping <xref linkend="overlay" />. This
-control is deprecated. New drivers and applications should use the
-<link linkend="camera-controls">Camera class controls</link>
-<constant>V4L2_CID_TILT_ABSOLUTE</constant>,
-<constant>V4L2_CID_TILT_RELATIVE</constant> and
-<constant>V4L2_CID_TILT_RESET</constant> instead.</entry>
-         </row>
          <row id="v4l2-power-line-frequency">
            <entry><constant>V4L2_CID_POWER_LINE_FREQUENCY</constant></entry>
            <entry>enum</entry>
index fa02363e7db4fe0ecee9bf0e678f91736915d014..7b486ac3f4d9b8ea4cf8887a9d21258b04167e94 100644 (file)
@@ -577,8 +577,6 @@ const char *v4l2_ctrl_get_name(u32 id)
        case V4L2_CID_GAIN:                     return "Gain";
        case V4L2_CID_HFLIP:                    return "Horizontal Flip";
        case V4L2_CID_VFLIP:                    return "Vertical Flip";
-       case V4L2_CID_HCENTER:                  return "Horizontal Center";
-       case V4L2_CID_VCENTER:                  return "Vertical Center";
        case V4L2_CID_POWER_LINE_FREQUENCY:     return "Power Line Frequency";
        case V4L2_CID_HUE_AUTO:                 return "Hue, Automatic";
        case V4L2_CID_WHITE_BALANCE_TEMPERATURE: return "White Balance Temperature";
index f56c945cecd4ecb008eb713e1989b5af920dad3e..4dc0822700fe3c560d5d64461cc22e68f087ecf0 100644 (file)
 #define V4L2_CID_HFLIP                 (V4L2_CID_BASE+20)
 #define V4L2_CID_VFLIP                 (V4L2_CID_BASE+21)
 
-/* Deprecated; use V4L2_CID_PAN_RESET and V4L2_CID_TILT_RESET */
-#define V4L2_CID_HCENTER               (V4L2_CID_BASE+22)
-#define V4L2_CID_VCENTER               (V4L2_CID_BASE+23)
-
 #define V4L2_CID_POWER_LINE_FREQUENCY  (V4L2_CID_BASE+24)
 enum v4l2_power_line_frequency {
        V4L2_CID_POWER_LINE_FREQUENCY_DISABLED  = 0,