€••8Œ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ŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ5/translations/pt_BR/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).”…”�”}”(hj 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.”…”�”}”(hj'h²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:”…”�”}”(hj5h²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);”…”�”}”hjCsbah}”(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.”…”�”}”(hjVh²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 ”…”�”}”(hjdh²hh³Nh´NubhŒemphasis”“”)�”}”(hŒ*chapter 13.15 DeWarp*”h]”hŒchapter 13.15 DeWarp”…”�”}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jlhjdubhŒ of ”…”�”}”(hjdh²hh³Nh´NubhŒ reference”“”)�”}”(hŒIMX8MP_”h]”hŒIMX8MP”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒIMX8MP”Œrefuri”Œ4https://www.nxp.com/webapp/Download?colCode=IMX8MPRM”uh1j€hjdŒresolved”KubhŒ reference manual.”…”�”}”(hjdh²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´Nubjm)�”}”(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&]”uh1jlhjØubhŒ of ”…”�”}”(hjØh²hh³Nh´Nubj�)�”}”(hŒIMX8MP_”h]”hŒIMX8MP”…”�”}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒIMX8MP”j’j“uh1j€hjØ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’j“uh1jh´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”jXŒ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”]”(j‚jòesŒrefids”}”Œnameids”}”(j2j/j)j&uŒ nametypes”}”(j2‰j)ˆuh}”(j/hÊj&j 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.