€•±7Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ5/translations/zh_CN/userspace-api/media/drivers/dw100”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/zh_TW/userspace-api/media/drivers/dw100”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/it_IT/userspace-api/media/drivers/dw100”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/ja_JP/userspace-api/media/drivers/dw100”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/ko_KR/userspace-api/media/drivers/dw100”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/sp_SP/userspace-api/media/drivers/dw100”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒO/var/lib/git/docbuild/linux/Documentation/userspace-api/media/drivers/dw100.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒDW100 dewarp driver”h]”hŒDW100 dewarp driver”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h KubhŒ paragraph”“”)”}”(hŒ°The Vivante DW100 Dewarp Processor IP core found on i.MX8MP SoC applies a programmable geometrical transformation on the input image to correct distortion introduced by lenses.”h]”hŒ°The Vivante DW100 Dewarp Processor IP core found on i.MX8MP SoC applies a programmable geometrical transformation on the input image to correct distortion introduced by lenses.”…””}”(hhËhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhÊ)”}”(hŒ‹The transformation function is exposed by the hardware as a grid map with 16x16 pixel macroblocks indexed using X, Y vertex coordinates. ::”h]”hŒˆThe transformation function is exposed by the hardware as a grid map with 16x16 pixel macroblocks indexed using X, Y vertex coordinates.”…””}”(hhÙhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K hh¶hžhubhŒ literal_block”“”)”}”(hXØ Image width <---------------------------------------> ^ .-------.-------.-------.-------.-------. | | 16x16 | | | | | I | | pixel | | | | | m | | block | | | | | a | .-------.-------.-------.-------.-------. g | | | | | | | e | | | | | | | | | | | | | | h | .-------.-------.-------.-------.-------. e | | | | | | | i | | | | | | | g | | | | | | | h | .-------.-------.-------.-------.-------. t | | | | | | | | | | | | | | | | | | | | | v '-------'-------'-------'-------'-------' Grid of Image Blocks for Dewarping Map”h]”hXØ Image width <---------------------------------------> ^ .-------.-------.-------.-------.-------. | | 16x16 | | | | | I | | pixel | | | | | m | | block | | | | | a | .-------.-------.-------.-------.-------. g | | | | | | | e | | | | | | | | | | | | | | h | .-------.-------.-------.-------.-------. e | | | | | | | i | | | | | | | g | | | | | | | h | .-------.-------.-------.-------.-------. t | | | | | | | | | | | | | | | | | | | | | v '-------'-------'-------'-------'-------' Grid of Image Blocks for Dewarping Map”…””}”hhésbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h Khh¶hžhubhÊ)”}”(hŒEach x, y coordinate register uses 16 bits to record the coordinate address in an unsigned 12.4 fixed point format (UQ12.4). ::”h]”hŒ|Each x, y coordinate register uses 16 bits to record the coordinate address in an unsigned 12.4 fixed point format (UQ12.4).”…””}”(hh÷hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K&hh¶hžhubhè)”}”(hX¶.----------------------.--------..----------------------.--------. | 31~20 | 19~16 || 15~4 | 3~0 | | (integer) | (frac) || (integer) | (frac) | '----------------------'--------''----------------------'--------' <-------------------------------><-------------------------------> Y coordinate X coordinate Remap Register Layout”h]”hX¶.----------------------.--------..----------------------.--------. | 31~20 | 19~16 || 15~4 | 3~0 | | (integer) | (frac) || (integer) | (frac) | '----------------------'--------''----------------------'--------' <-------------------------------><-------------------------------> Y coordinate X coordinate Remap Register Layout”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hçhŸh³h K*hh¶hžhubhÊ)”}”(hX&The dewarping map is set from applications using the V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP control. The control contains an array of u32 values storing (x, y) destination coordinates for each vertex of the grid. The x coordinate is stored in the 16 LSBs and the y coordinate in the 16 MSBs.”h]”hX&The dewarping map is set from applications using the V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP control. The control contains an array of u32 values storing (x, y) destination coordinates for each vertex of the grid. The x coordinate is stored in the 16 LSBs and the y coordinate in the 16 MSBs.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K3hh¶hžhubhÊ)”}”(hŒ>The number of elements in the array must match the image size:”h]”hŒ>The number of elements in the array must match the image size:”…””}”(hj!hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K9hh¶hžhubhè)”}”(hŒGelems = (DIV_ROUND_UP(width, 16) + 1) * (DIV_ROUND_UP(height, 16) + 1);”h]”hŒGelems = (DIV_ROUND_UP(width, 16) + 1) * (DIV_ROUND_UP(height, 16) + 1);”…””}”hj/sbah}”(h]”h ]”h"]”h$]”h&]”h±h²Œforce”‰Œlanguage”ŒC”Œhighlight_args”}”uh1hçhŸh³h K;hh¶hžhubhÊ)”}”(hŒTIf the control has not been set by the application, the driver uses an identity map.”h]”hŒTIf the control has not been set by the application, the driver uses an identity map.”…””}”(hjBhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K?hh¶hžhubhÊ)”}”(hŒqMore details on the DW100 hardware operations can be found in *chapter 13.15 DeWarp* of IMX8MP_ reference manual.”h]”(hŒ>More details on the DW100 hardware operations can be found in ”…””}”(hjPhžhhŸNh NubhŒemphasis”“”)”}”(hŒ*chapter 13.15 DeWarp*”h]”hŒchapter 13.15 DeWarp”…””}”(hjZhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jXhjPubhŒ of ”…””}”(hjPhžhhŸNh NubhŒ reference”“”)”}”(hŒIMX8MP_”h]”hŒIMX8MP”…””}”(hjnhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒIMX8MP”Œrefuri”Œ4https://www.nxp.com/webapp/Download?colCode=IMX8MPRM”uh1jlhjPŒresolved”KubhŒ reference manual.”…””}”(hjPhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KBhh¶hžhubhÊ)”}”(hŒNThe Vivante DW100 m2m driver implements the following driver-specific control:”h]”hŒNThe Vivante DW100 m2m driver implements the following driver-specific control:”…””}”(hj‹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KEhh¶hžhubhŒdefinition_list”“”)”}”(hhh]”hŒdefinition_list_item”“”)”}”(hX"``V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP (__u32 array)`` Specifies to DW100 driver its dewarping map (aka LUT) blob as described in *chapter 13.15.2.3 Dewarping Remap* of IMX8MP_ reference manual as an U32 dynamic array. The image is divided into many small 16x16 blocks. If the width/height of the image is not divisible by 16, the size of the rightmost/bottommost block is the remainder. The dewarping map only saves the vertex coordinates of the block. The dewarping grid map is comprised of vertex coordinates for x and y. Each x, y coordinate register uses 16 bits (UQ12.4) to record the coordinate address, with the Y coordinate in the upper bits and X in the lower bits. The driver modifies the dimensions of this control when the sink format is changed, to reflect the new input resolution. ”h]”(hŒterm”“”)”}”(hŒ;``V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP (__u32 array)``”h]”hŒliteral”“”)”}”(hj¨h]”hŒ7V4L2_CID_DW100_DEWARPING_16x16_VERTEX_MAP (__u32 array)”…””}”(hj¬hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jªhj¦ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¤hŸh³h KRhj ubhŒ definition”“”)”}”(hhh]”hÊ)”}”(hXåSpecifies to DW100 driver its dewarping map (aka LUT) blob as described in *chapter 13.15.2.3 Dewarping Remap* of IMX8MP_ reference manual as an U32 dynamic array. The image is divided into many small 16x16 blocks. If the width/height of the image is not divisible by 16, the size of the rightmost/bottommost block is the remainder. The dewarping map only saves the vertex coordinates of the block. The dewarping grid map is comprised of vertex coordinates for x and y. Each x, y coordinate register uses 16 bits (UQ12.4) to record the coordinate address, with the Y coordinate in the upper bits and X in the lower bits. The driver modifies the dimensions of this control when the sink format is changed, to reflect the new input resolution.”h]”(hŒKSpecifies to DW100 driver its dewarping map (aka LUT) blob as described in ”…””}”(hjÄhžhhŸNh NubjY)”}”(hŒ#*chapter 13.15.2.3 Dewarping Remap*”h]”hŒ!chapter 13.15.2.3 Dewarping Remap”…””}”(hjÌhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jXhjÄubhŒ of ”…””}”(hjÄhžhhŸNh Nubjm)”}”(hŒIMX8MP_”h]”hŒIMX8MP”…””}”(hjÞhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒIMX8MP”j~juh1jlhjÄj€KubhXl reference manual as an U32 dynamic array. The image is divided into many small 16x16 blocks. If the width/height of the image is not divisible by 16, the size of the rightmost/bottommost block is the remainder. The dewarping map only saves the vertex coordinates of the block. The dewarping grid map is comprised of vertex coordinates for x and y. Each x, y coordinate register uses 16 bits (UQ12.4) to record the coordinate address, with the Y coordinate in the upper bits and X in the lower bits. The driver modifies the dimensions of this control when the sink format is changed, to reflect the new input resolution.”…””}”(hjÄhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KHhjÁubah}”(h]”h ]”h"]”h$]”h&]”uh1j¿hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jžhŸh³h KRhj›ubah}”(h]”h ]”h"]”h$]”h&]”uh1j™hh¶hžhhŸh³h NubhŒtarget”“”)”}”(hŒ@.. _IMX8MP: https://www.nxp.com/webapp/Download?colCode=IMX8MPRM”h]”h}”(h]”Œimx8mp”ah ]”h"]”Œimx8mp”ah$]”h&]”j~juh1j h KThh¶hžhhŸh³Œ referenced”Kubeh}”(h]”Œdw100-dewarp-driver”ah ]”h"]”Œdw100 dewarp driver”ah$]”h&]”uh1h´hhhžhhŸh³h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h³uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¹NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jDŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h³Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œimx8mp”]”(jnjÞesŒrefids”}”Œnameids”}”(jjjjuŒ nametypes”}”(j‰jˆuh}”(jh¶jj uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.