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:
beveloper
2003-12-06 23:21:23 +00:00
parent abf9e66abe
commit 2530523976
9 changed files with 99 additions and 46 deletions
+1 -1
View File
@@ -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. */
+3 -2
View File
@@ -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,
+1 -3
View File
@@ -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);