read/write pointer returned by vpu_DecGetBitstreamBuffer error when two threads decode mjpeg with different resolution using vpu simultaneously

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

read/write pointer returned by vpu_DecGetBitstreamBuffer error when two threads decode mjpeg with different resolution using vpu simultaneously

ソリューションへジャンプ
2,204件の閲覧回数
moon
Contributor I

I write a mjpeg decoder which is using vpu to decode mjpeg.

when two threads decode simultaneously with different resolution, for example, one is 320x240, another is 640x480, then read/write pointer returned by vpu_DecGetBitstreamBuffer is erroneous, it will beyond the biggest address of bitstream buffer which I allocated. and size will return 0 always after several minutes;

when two threads decode simultaneously with same resolution, then it will work correctly.

Does hardware support decode different resolution simultaneously for mjpeg?

platform: [iMx53, linux]

ラベル(3)
0 件の賞賛
返信
1 解決策
1,929件の閲覧回数
LaurenPost
NXP Employee
NXP Employee

I believe the VPU requires a specific size.  If the size changes the VPU instance has to be reinitialized.  This is because when the instance is instantiated physical memory is allocated based on the size specified. 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,930件の閲覧回数
LaurenPost
NXP Employee
NXP Employee

I believe the VPU requires a specific size.  If the size changes the VPU instance has to be reinitialized.  This is because when the instance is instantiated physical memory is allocated based on the size specified. 

0 件の賞賛
返信