OSDN Git Service

Adding Metadata mode to SurfaceMediaSource
authorPannag Sanketi <psanketi@google.com>
Thu, 14 Jul 2011 21:37:47 +0000 (14:37 -0700)
committerPannag Sanketi <psanketi@google.com>
Sat, 23 Jul 2011 02:33:55 +0000 (19:33 -0700)
commitb1f8c266e47554bc45632f021c9e409399e907e7
tree5d0633fe15e687d9946195352fa106e4f3fe3ce5
parent897e27bc75886e44d2f9f09155127f401c4173ea
Adding Metadata mode to SurfaceMediaSource

SurfaceMediaSource operates in metadata mode only, i.e. just the
metadata is stored in videobuffers. SurfaceMediaSource passes the Gralloc
buffer handle along with a 4 byte 'type' (indicating that the metadata
is of type GrallocSource) to the encoder as opposed to the
GrallocBuffer itself.

Related to bug id: 4529323

Change-Id: I83aebc0dd10f317658cdf70be5802dfc35a1e72d
include/media/stagefright/MetadataBufferType.h
include/media/stagefright/SurfaceMediaSource.h
media/libstagefright/SurfaceMediaSource.cpp
media/libstagefright/tests/SurfaceMediaSource_test.cpp