OSDN Git Service

stagefright: MetadataRetriever API to specify mime and color format
authorChong Zhang <chz@google.com>
Wed, 26 Jul 2017 23:25:28 +0000 (16:25 -0700)
committerChong Zhang <chz@google.com>
Tue, 8 Aug 2017 23:52:10 +0000 (16:52 -0700)
commit24c15776247c46e34562100213035bb7aaffe013
tree3eb89bc53d5fab0a123ecae17400985eb43077de
parent026d520295b52d136a6962a05882a696fe620725
stagefright: MetadataRetriever API to specify mime and color format

- Allow setDataSource() to specify mime. In case of HEIF decoding
  request from skia, we don't want to sniff any other format other
  than mp4.

- Allow getFrameAtTime() to specify dst color format.

bug: 64077740

Test: cts-tradefed run cts-dev --module CtsMediaTestCases --compatibility:module-arg CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice

Change-Id: I471f41c28a2252417c4b3331dcfd4bd00a24408a
cmds/stagefright/stagefright.cpp
media/libmedia/IMediaMetadataRetriever.cpp
media/libmedia/include/media/IMediaMetadataRetriever.h
media/libmedia/include/media/MediaMetadataRetrieverInterface.h
media/libmedia/include/media/mediametadataretriever.h
media/libmedia/mediametadataretriever.cpp
media/libmediaplayerservice/MetadataRetrieverClient.cpp
media/libmediaplayerservice/MetadataRetrieverClient.h
media/libstagefright/StagefrightMediaScanner.cpp
media/libstagefright/StagefrightMetadataRetriever.cpp
media/libstagefright/include/StagefrightMetadataRetriever.h