1 #include "MediaStreamDecoder.h"
3 MediaStreamDecoder::MediaStreamDecoder(get_next_chunk_func next_chunk
, void *cookie
)
6 , fGetNextChunk(next_chunk
)
12 MediaStreamDecoder::SetInputFormat(const media_format
&in_format
)
14 return BMediaDecoder::SetTo(&in_format
);
19 MediaStreamDecoder::SetOutputFormat(media_format
*output_format
)
21 status_t err
= BMediaDecoder::InitCheck();
25 return BMediaDecoder::SetOutputFormat(output_format
);
30 MediaStreamDecoder::Decode(void *out_buffer
, int64
*out_frameCount
,
31 media_header
*out_mh
, media_decode_info
*info
)
33 return BMediaDecoder::Decode(out_buffer
, out_frameCount
, out_mh
, info
);
38 MediaStreamDecoder::GetNextChunk(const void **chunkData
, size_t *chunkLen
, media_header
*mh
)
40 return (*fGetNextChunk
)(chunkData
, chunkLen
, mh
, fCookie
);