BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / add-ons / media / media-add-ons / dvb / MediaStreamDecoder.cpp
blobe8da7074b38ea00ff4c778916e2dafa1c0596e04
1 #include "MediaStreamDecoder.h"
3 MediaStreamDecoder::MediaStreamDecoder(get_next_chunk_func next_chunk, void *cookie)
4 : BMediaDecoder()
5 , fCookie(cookie)
6 , fGetNextChunk(next_chunk)
11 status_t
12 MediaStreamDecoder::SetInputFormat(const media_format &in_format)
14 return BMediaDecoder::SetTo(&in_format);
18 status_t
19 MediaStreamDecoder::SetOutputFormat(media_format *output_format)
21 status_t err = BMediaDecoder::InitCheck();
22 if (err)
23 return err;
25 return BMediaDecoder::SetOutputFormat(output_format);
29 status_t
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);
37 status_t
38 MediaStreamDecoder::GetNextChunk(const void **chunkData, size_t *chunkLen, media_header *mh)
40 return (*fGetNextChunk)(chunkData, chunkLen, mh, fCookie);