Download MG1264
Transcript
MG1264 Low Power H.264 and AAC Codec for Mobile Devices User Manual VIDEO_BUFFER_EMPTINESS Command Name Arguments Q_AVD_CMD_VIDEO_BUFFER_EMPTINESS None Return Codes 0 = Failure 1 = Success Return Values 0 = Video buffer emptiness in bytes 1 = Video buffer emptiness in access units Valid States Any Description The VIDEO_BUFFER_EMPTINESS command is used by the System Host CPU to query the firmware about the emptiness of the video buffer. The firmware returns the emptiness in both bytes and access units (frames). The System Host CPU can use these values to ensure that it does not overflow the internal buffers during playback (thus triggering hardware flow control). Refer to “Sending Encoded Bitstreams to the Decoder” on page 159 for additional information. AUDIO_BUFFER_EMPTINESS Command Name Arguments 170 | Q_AVD_CMD_AUDIO_BUFFER_EMPTINESS None Return Codes 0 = Failure 1 = Success Return Values 0 = Audio buffer emptiness in bytes 1 = Audio buffer emptiness in access units Valid States Any Description The AUDIO_BUFFER_EMPTINESS command is used by the host to query the firmware for the emptiness of the audio buffer. The firmware returns the emptiness in both bytes and access units (frames). The host can use these values to ensure that it does not overflow the internal buffers (thus triggering hardware flow control) during playback. Refer to “Sending Encoded Bitstreams to the Decoder” on page 159 for additional information. Mobilygen Corp Confidential