external/v4l2_codec2: Change the state to kDecoding in ImportBufferForPictureTask

Once dmabuf fds for decoded buffers are ported, decoding can be restarted and thus the state of
V4L2VDA should be changed to kDecoding from kAwaitingPictureBuffers(). However,
ImportBufferForPictureTask() doesn't do so because the code was removed when the code is ported from
Chrome. This CL adds the state transition and besides replace linked_ptr with std::unique_ptr.

Bug: None
Test: Build V4L2VDA
Change-Id: I7fcc522d95500df3eac5fadedae95e123f229265
(cherry picked from commit f6c95f2c64dd1db11b567d6f2dde54be520564fa)
2 files changed