-
Notifications
You must be signed in to change notification settings - Fork 0
MediaCodec
Devrath edited this page Nov 21, 2021
·
3 revisions
-
MediaCodec
is used to access thelow-level
media codecs. -
Low level
media codec include things likeencoder
anddecoder
. -
Codec
processes input data to provide and generate output data. - It processes the data
asynchronously
- It uses a set of input and output buffers as seen in the diagram above.
- Client requests for the
buffer packets
from thecodec
. - Then client populates the
buffer packets
with data and sends the data back to the codec for processing. - The
codec
processes thebuffer packets
one by one and transforms them. - Finally the client again requests it or receives the transformed
buffer packets
. - After receiving the
buffer packets
from the codec, The client utilizes them and sends the emptiedbuffer packets
back tocodec
.
-
Codec
is used to decode a media file and encode it to another one.