I encountered this issue while developing: the data output by the mppvideodec decoder was aligned. However, during the color conversion, this alignment would affect the display effects (such as appearing with a green border or screen tearing), especially when dealing with H265-encoded videos(It seems that the alignment of H265-encoded video data is more complicated). Therefore, a trimming operation is needed, but trimming requires knowledge of the wstride and hstride. In MPP, the interface for obtaining the horizontal stride is: RK_U32 h_stride = mpp_frame_get_hor_stride(mppFrame); RK_U32 v_stride = mpp_frame_get_ver_stride(mppFrame); However, when using the mppvideodec plugin of gstreamer, it seems that we cannot obtain these two values. I would like to ask if there is any related interface to obtain these two values? Or are there other ways to use RGA to trim the images without these two values?
I encountered this issue while developing: the data output by the mppvideodec decoder was aligned. However, during the color conversion, this alignment would affect the display effects (such as appearing with a green border or screen tearing), especially when dealing with H265-encoded videos(It seems that the alignment of H265-encoded video data is more complicated). Therefore, a trimming operation is needed, but trimming requires knowledge of the wstride and hstride. In MPP, the interface for obtaining the horizontal stride is: RK_U32 h_stride = mpp_frame_get_hor_stride(mppFrame); RK_U32 v_stride = mpp_frame_get_ver_stride(mppFrame); However, when using the mppvideodec plugin of gstreamer, it seems that we cannot obtain these two values. I would like to ask if there is any related interface to obtain these two values? Or are there other ways to use RGA to trim the images without these two values?