tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / media / EncoderPlugin.cpp
blob8851feb0328989b1dd3cb0c10496c2a7a8f7f6fa
1 /*
2 * Copyright 2009, Stephan Aßmus <superstippi@gmx.de>. All rights reserved.
3 * Copyright 2004, Marcus Overhagen. All rights reserved.
4 * Distributed under the terms of the MIT License.
5 */
7 #include "EncoderPlugin.h"
9 #include <stdio.h>
10 #include <string.h>
12 #include <MediaFormats.h>
15 Encoder::Encoder()
17 fChunkWriter(NULL),
18 fMediaPlugin(NULL)
23 Encoder::~Encoder()
25 delete fChunkWriter;
29 // #pragma mark - Convenience stubs
32 status_t
33 Encoder::AddTrackInfo(uint32 code, const void* data, size_t size, uint32 flags)
35 return B_NOT_SUPPORTED;
39 BView*
40 Encoder::ParameterView()
42 return NULL;
46 BParameterWeb*
47 Encoder::ParameterWeb()
49 return NULL;
53 status_t
54 Encoder::GetParameterValue(int32 id, void* value, size_t* size) const
56 return B_NOT_SUPPORTED;
60 status_t
61 Encoder::SetParameterValue(int32 id, const void* value, size_t size)
63 return B_NOT_SUPPORTED;
67 status_t
68 Encoder::GetEncodeParameters(encode_parameters* parameters) const
70 return B_NOT_SUPPORTED;
74 status_t
75 Encoder::SetEncodeParameters(encode_parameters* parameters)
77 return B_NOT_SUPPORTED;
81 // #pragma mark -
84 status_t
85 Encoder::WriteChunk(const void* chunkBuffer, size_t chunkSize,
86 media_encode_info* encodeInfo)
88 return fChunkWriter->WriteChunk(chunkBuffer, chunkSize, encodeInfo);
92 void
93 Encoder::SetChunkWriter(ChunkWriter* writer)
95 delete fChunkWriter;
96 fChunkWriter = writer;
100 // #pragma mark - FBC padding
103 status_t
104 Encoder::Perform(perform_code code, void* data)
106 return B_OK;
110 void Encoder::_ReservedEncoder1() {}
111 void Encoder::_ReservedEncoder2() {}
112 void Encoder::_ReservedEncoder3() {}
113 void Encoder::_ReservedEncoder4() {}
114 void Encoder::_ReservedEncoder5() {}
115 void Encoder::_ReservedEncoder6() {}
116 void Encoder::_ReservedEncoder7() {}
117 void Encoder::_ReservedEncoder8() {}
118 void Encoder::_ReservedEncoder9() {}
119 void Encoder::_ReservedEncoder10() {}
120 void Encoder::_ReservedEncoder11() {}
121 void Encoder::_ReservedEncoder12() {}
122 void Encoder::_ReservedEncoder13() {}
123 void Encoder::_ReservedEncoder14() {}
124 void Encoder::_ReservedEncoder15() {}
125 void Encoder::_ReservedEncoder16() {}
126 void Encoder::_ReservedEncoder17() {}
127 void Encoder::_ReservedEncoder18() {}
128 void Encoder::_ReservedEncoder19() {}
129 void Encoder::_ReservedEncoder20() {}
132 // #pragma mark - EncoderPlugin
135 EncoderPlugin::EncoderPlugin()