History

[media] v4l2: Add settings for Horizontal and Vertical MV Search Range

Adding V4L2 controls for horizontal and vertical search range in pixels for motion estimation module in video encoder.

Amit Grover committed 12 years ago

Commit bf0bedd1 parent 60aa4c63 files · +28 −0Browse files

Unified · Split

3 files
  1. Documentation/DocBook/media/v4l/controls.xml +20 −0
  2. drivers/media/v4l2-core/v4l2-ctrls.c +6 −0
  3. include/uapi/linux/v4l2-controls.h +2 −0
Documentation/DocBook/media/v4l/controls.xml+20−0
@@ -2256,6 +2256,26 @@ Applicable to the MPEG1, MPEG2, MPEG4 encoders.</entry> · 2255 unmodified lines
22562256 <entry>integer</entry>
22572257 </row><row><entry spanname="descr">Sets the initial delay in milliseconds for
22582258 VBV buffer control.</entry>
2259+ </row>
2260+
2261+ <row><entry></entry></row>
2262+ <row id=""v4l2-mpeg-video-hor-search-range">
2263+ <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE</constant>&nbsp;</entry>
2264+ <entry>integer</entry>
2265+ </row>
2266+ <row><entry spanname="descr">Horizontal search range defines maximum horizontal search area in pixels
2267+to search and match for the present Macroblock (MB) in the reference picture. This V4L2 control macro is used to set
2268+horizontal search range for motion estimation module in video encoder.</entry>
2269+ </row>
2270+
2271+ <row><entry></entry></row>
2272+ <row id="v4l2-mpeg-video-vert-search-range">
2273+ <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE</constant>&nbsp;</entry>
2274+ <entry>integer</entry>
2275+ </row>
2276+ <row><entry spanname="descr">Vertical search range defines maximum vertical search area in pixels
2277+to search and match for the present Macroblock (MB) in the reference picture. This V4L2 control macro is used to set
2278+vertical search range for motion estimation module in video encoder.</entry>
22592279 </row>
22602280
22612281 <row><entry></entry></row>
drivers/media/v4l2-core/v4l2-ctrls.c+6−0
@@ -735,6 +735,8 @@ const char *v4l2_ctrl_get_name(u32 id) · 734 unmodified lines
735735 case V4L2_CID_MPEG_VIDEO_DEC_PTS: return "Video Decoder PTS";
736736 case V4L2_CID_MPEG_VIDEO_DEC_FRAME: return "Video Decoder Frame Count";
737737 case V4L2_CID_MPEG_VIDEO_VBV_DELAY: return "Initial Delay for VBV Control";
738+ case V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE: return "Horizontal MV Search Range";
739+ case V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE: return "Vertical MV Search Range";
738740 case V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER: return "Repeat Sequence Header";
739741
740742 /* VPX controls */
@@ -910,6 +912,10 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, · 169 unmodified lines
910912 *min = 0;
911913 *max = *step = 1;
912914 break;
915+ case V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE:
916+ case V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE:
917+ *type = V4L2_CTRL_TYPE_INTEGER;
918+ break;
913919 case V4L2_CID_PAN_RESET:
914920 case V4L2_CID_TILT_RESET:
915921 case V4L2_CID_FLASH_STROBE:
include/uapi/linux/v4l2-controls.h+2−0
@@ -376,6 +376,8 @@ enum v4l2_mpeg_video_multi_slice_mode { · 375 unmodified lines
376376 #define V4L2_CID_MPEG_VIDEO_DEC_FRAME (V4L2_CID_MPEG_BASE+224)
377377 #define V4L2_CID_MPEG_VIDEO_VBV_DELAY (V4L2_CID_MPEG_BASE+225)
378378 #define V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER (V4L2_CID_MPEG_BASE+226)
379+#define V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE (V4L2_CID_MPEG_BASE+227)
380+#define V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE (V4L2_CID_MPEG_BASE+228)
379381
380382 #define V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP (V4L2_CID_MPEG_BASE+300)
381383 #define V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP (V4L2_CID_MPEG_BASE+301)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t