codec output format negotiation has been moved into NegotiateOutputFormat,
Setup is now only called once git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5596 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -343,7 +343,7 @@ static BMediaRoster * CurrentRoster(); // won't create it if there isn't one
|
||||
int32 channel_count,
|
||||
uint32 sample_format,
|
||||
float frame_rate,
|
||||
bus_type bus_kind);
|
||||
bus_type bus_kind = B_UNKNOWN_BUS);
|
||||
|
||||
/* Use MediaFlags to inquire about specific features of the Media Kit. */
|
||||
/* Returns < 0 for "not present", positive size for output data size. */
|
||||
|
||||
@@ -15,8 +15,9 @@ public:
|
||||
virtual ~Decoder();
|
||||
|
||||
// Setup get's called with the info data from Reader::GetStreamInfo
|
||||
virtual status_t Setup(media_format *ioEncodedFormat, media_format *ioDecodedFormat,
|
||||
const void *infoBuffer, int32 infoSize) = 0;
|
||||
virtual status_t Setup(media_format *ioEncodedFormat, const void *infoBuffer, int32 infoSize) = 0;
|
||||
|
||||
virtual status_t NegotiateOutputFormat(media_format *ioDecodedFormat) = 0;
|
||||
|
||||
virtual status_t Seek(uint32 seekTo,
|
||||
int64 seekFrame, int64 *frame,
|
||||
|
||||
@@ -28,11 +28,9 @@ public:
|
||||
|
||||
int32 StreamCount();
|
||||
|
||||
media_format * EncodedFormat(int32 stream);
|
||||
const media_format * EncodedFormat(int32 stream);
|
||||
int64 CountFrames(int32 stream) const;
|
||||
bigtime_t Duration(int32 stream) const;
|
||||
void * InfoBuffer(int32 stream) const;
|
||||
int32 InfoBufferSize(int32 stream) const;
|
||||
|
||||
status_t Seek(int32 stream, uint32 seekTo,
|
||||
int64 *frame, bigtime_t *time);
|
||||
|
||||
Reference in New Issue
Block a user