This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM62A7:如何通过使用 tiscaler 元素在流水线运行期间设置 ROI

Guru**** 2395305 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1491385/am62a7-how-to-set-the-roi-during-pipeline-running-by-using-tiscaler-element

器件型号:AM62A7

工具与软件:

使用 g_object_set 可设置 tiscaler ROI 参数。 每1秒更新一次 ROI 区域。
ROI 区域不会更改。 请分享问题的原因。 该 函数将每1秒调用一次
下面是代码:

   void  updateRoiElement(int x,int   y,int width,int     height){
    // printf ("########################### %d\n",y);

     GST_ELEMENT_SET_STATE (m_pipeline、GST_STATE_PAUSED);
    // gst_element_set_state (Element scaler、gst_state_paused);
     G_object_set (Elementscaler、 "roi-startx"、 xNULL);
     G_object_set (Elementscaler、 "roi-starty"、 yNULL);
     G_object_set (Elementscaler、 "ROI-width"、 widthNULL);
     G_object_set (Elementscaler、 "ROI-height"、height NULL);

    // GstPad * sink_pad = gst_elemen_get_static_pad (Elementscaler、"sink");
    // if (sink_pad){
    //  gst_pad_send_event (sink_pad、gst_event_new_reconfigure ());
 
     GST_ELEMENT_SET_STATE (m_pipeline、gst_state_playing);
  }