intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

how to encode jpg on ROI? #90

Closed imbar2000 closed 1 year ago

imbar2000 commented 1 year ago

oneVPL works fine when encoding jpg on whole surface, but when I encodeing on roi zone, I got an damaged picture. can you tell me how to encoding jpg on roi zone?

my code : https://pan.baidu.com/s/1ioYAlxaYIqteMlJbnsJ7_w?pwd=klkh line 114 of hello-encode-jpg.cpp is the good case; line 119 is bad case

compile & run: mkdir build cd build cmake .. make ./hello-encode -hw -i ../out.raw -w 1920 -h 1080

environment: vpl-inspect.txt