-
Notifications
You must be signed in to change notification settings - Fork 0
MediaCodec
Devrath edited this page Nov 21, 2021
·
3 revisions

-
MediaCodecis used to access thelow-levelmedia codecs. -
Low levelmedia codec include things likeencoderanddecoder. -
Codecprocesses 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 packetsfrom thecodec. - Then client populates the
buffer packetswith data and sends the data back to the codec for processing. - The
codecprocesses thebuffer packetsone by one and transforms them. - Finally the client again requests it or receives the transformed
buffer packets. - After receiving the
buffer packetsfrom the codec, The client utilizes them and sends the emptiedbuffer packetsback tocodec.
-
Codecis used to decode a media file and encode it to another one.