Searched refs:formats (Results 1 - 25 of 38) sorted by relevance

12

/haiku/src/tests/kits/media/
H A DmediaFormats.cpp147 BMediaFormats formats; local
149 status_t status = formats.InitCheck();
156 status = formats.GetAVIFormatFor('DIVX', &format, B_MEDIA_ENCODED_VIDEO);
163 status = formats.GetCodeFor(format, B_AVI_FORMAT_FAMILY, &description);
174 status = formats.GetCodeFor(format, B_MPEG_FORMAT_FAMILY, &description);
180 puts("\n***** all supported formats *****");
182 // Rewind() should only work when the formats object is locked
183 status = formats.RewindFormats();
189 if (!formats.Lock()) {
194 status = formats
[all...]
/haiku/src/add-ons/media/media-add-ons/dvb/
H A DMediaFormat.cpp78 BMediaFormats formats; local
79 status = formats.InitCheck();
81 printf("formats.InitCheck failed, error %lu\n", status);
85 status = formats.GetFormatFor(desc, out_format);
87 printf("formats.GetFormatFor failed, error %lu\n", status);
134 BMediaFormats formats; local
135 status = formats.InitCheck();
137 printf("formats.InitCheck failed, error %lu\n", status);
141 status = formats.GetFormatFor(desc, out_format);
143 printf("formats
167 BMediaFormats formats; local
[all...]
H A DDVBMediaAddon.cpp43 media_format formats[5]; member in struct:device_info
224 // setup supported formats (the lazy way)
225 memset(dev->formats, 0, sizeof(dev->formats));
226 dev->formats[0].type = B_MEDIA_RAW_VIDEO;
227 dev->formats[1].type = B_MEDIA_RAW_AUDIO;
228 dev->formats[2].type = B_MEDIA_ENCODED_VIDEO;
229 dev->formats[3].type = B_MEDIA_ENCODED_AUDIO;
230 dev->formats[4].type = B_MEDIA_MULTISTREAM;
244 dev->flavor.out_formats = dev->formats;
[all...]
/haiku/src/add-ons/kernel/drivers/audio/usb/
H A DAudioStreamingInterface.cpp336 uint32 formats = 0; local
339 formats = B_FMT_8BIT_U;
342 formats = B_FMT_FLOAT;
346 case 8: formats = B_FMT_8BIT_S; break;
347 case 16: formats = B_FMT_16BIT; break;
348 case 18: formats = B_FMT_18BIT; break;
349 case 20: formats = B_FMT_20BIT; break;
350 case 24: formats = B_FMT_24BIT; break;
351 case 32: formats = B_FMT_32BIT; break;
366 return formats;
507 uint32 formats = fAlternates[fActiveAlternate]->GetFormatId(); local
[all...]
/haiku/src/kits/media/
H A DFileInterface.cpp106 media_file_format* formats; local
107 area_id area = clone_area("client formats area",
108 (void**)&formats, B_ANY_ADDRESS, B_WRITE_AREA,
118 while (GetNextFileFormat(&cookie, formats) == B_OK) {
121 formats += sizeof(media_format);
H A DAddOnManager.cpp409 for (decoderInfo->formats.Rewind();
410 decoderInfo->formats.GetNext(&format);) {
422 // Remove any formats from this writer
482 media_format* formats = 0; local
484 if (plugin->GetSupportedFormats(&formats, &count) != B_OK) {
490 info.formats.Insert(formats[i]);
615 for (info->formats.Rewind(); info->formats.GetNext(&decoderFormat);) {
H A DMediaFormats.cpp120 // TODO: These formats are currently way too generic. For example,
284 // Some (meta) formats supply functions
359 * description. The formats lock has to be held when you call this function.
385 || reply.GetInfo("formats", &code, &count) < B_OK)
388 // overwrite already existing formats
396 if (reply.FindData("formats", MEDIA_META_FORMAT_TYPE, index,
401 // allocate additional formats
406 if (reply.FindData("formats", MEDIA_META_FORMAT_TYPE, index,
411 // remove no longer used formats
476 ERROR("BMediaFormats: updating formats fro
506 BMediaFormats formats; local
528 BMediaFormats formats; local
549 BMediaFormats formats; local
[all...]
H A DAddOnManager.h105 List<media_format> formats; member in struct:BPrivate::media::AddOnManager::decoder_info
/haiku/src/add-ons/media/media-add-ons/opensound/
H A DOpenSoundDevice.cpp275 BMediaFormats formats; local
276 if (formats.InitCheck() < B_OK)
277 return formats.InitCheck();
291 err = formats.MakeFormatFor(desc, count, &format);
301 BMediaFormats formats; local
302 if (formats.InitCheck() < B_OK)
303 return formats.InitCheck();
315 err = formats.GetFormatFor(desc, &format);
/haiku/src/bin/
H A Dtranslate.cpp390 const translation_format *formats; local
394 if (fRoster->GetInputFormats(id, &formats, &formatCount) != B_OK)
399 if (formats[j].type == inFormat) {
408 // search output formats
410 if (fRoster->GetOutputFormats(id, &formats, &formatCount) != B_OK)
416 if (formats[j].group != group || typesSeen.FindType(formats[j].type))
419 double formatQuality = formats[j].quality * formats[j].capability;
421 if (formats[
[all...]
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/
H A DStream.h41 uint32 formats, uint32 rates);
/haiku/headers/private/media/
H A DDecoderPlugin.h72 virtual status_t GetSupportedFormats(media_format** formats,
/haiku/src/add-ons/media/plugins/raw_decoder/
H A DRawDecoderPlugin.h73 status_t GetSupportedFormats(media_format ** formats, size_t * count);
/haiku/src/apps/screenshot/
H A DUtility.cpp212 const translation_format* formats = NULL; local
215 if (roster->GetOutputFormats(translators[x], &formats, &numFormats)
218 if (formats[i].type == imageType) {
221 *_mimeType = formats[i].MIME;
/haiku/src/apps/people/
H A DPictureView.cpp461 const translation_format* formats; local
463 roster->GetOutputFormats(info[i].translator, &formats, &count);
465 if (strcmp(formats[j].MIME, "image/x-be-bitmap") != 0) {
467 drag.AddString("be:types", formats[j].MIME);
469 drag.AddString("be:filetypes", formats[j].MIME);
470 drag.AddString("be:type_descriptions", formats[j].name);
522 const translation_format* formats; local
524 roster->GetOutputFormats(outInfo[i].translator, &formats,
527 if (strcmp(formats[j].MIME, type.String()) == 0) {
528 format = formats[
[all...]
/haiku/src/add-ons/kernel/drivers/audio/hda/
H A Dhda_codec.cpp280 TRACE("\tSupported formats: %s%s%s%s%s%s%s%s%s\n",
281 widget.d.io.formats & B_FMT_8BIT_S ? "8bits " : "",
282 widget.d.io.formats & B_FMT_16BIT ? "16bits " : "",
283 widget.d.io.formats & B_FMT_20BIT ? "20bits " : "",
284 widget.d.io.formats & B_FMT_24BIT ? "24bits " : "",
285 widget.d.io.formats & B_FMT_32BIT ? "32bits " : "",
286 widget.d.io.formats & B_FMT_FLOAT ? "float " : "",
287 widget.d.io.formats & B_FMT_DOUBLE ? "double " : "",
288 widget.d.io.formats & B_FMT_EXTENDED ? "extended " : "",
289 widget.d.io.formats
408 hda_get_stream_support(hda_codec* codec, uint32 nodeID, uint32* formats, uint32* rates) argument
[all...]
/haiku/src/tests/kits/media/mpeg2_decoder_test/
H A Dmpeg2_decoder_test.cpp178 BMediaFormats formats; local
179 status = formats.InitCheck();
181 printf("formats.InitCheck failed, error %lu\n", status);
188 status = formats.GetFormatFor(desc, mpeg2MediaFormat);
190 printf("formats.GetFormatFor failed, error %lu\n", status);
/haiku/src/tests/kits/media/mp3_decoder_test/
H A Dmp3_decoder_test.cpp215 BMediaFormats formats; local
216 status = formats.InitCheck();
218 printf("formats.InitCheck failed, error %lu\n", status);
225 status = formats.GetFormatFor(desc, mp3MediaFormat);
227 printf("formats.GetFormatFor failed, error %lu\n", status);
/haiku/src/add-ons/translators/jpeg2000/
H A DJPEG2000Translator.cpp1218 const translation_format* formats = OutputFormats(&formatCount); local
1220 for (int i = 0; i <= 1; formats = InputFormats(&formatCount), i++) {
1222 formats, formatCount) == B_OK) {
1234 uint32 formatType, const translation_format* formats, int32 formatCount)
1237 if (formats[i].type == formatType) {
1239 info->group = formats[i].group;
1240 info->quality = formats[i].quality;
1241 info->capability = formats[i].capability;
1242 if (strcmp(formats[i].name, B_TRANSLATOR_BITMAP_DESCRIPTION)
1248 strlcpy(info->name, formats[
1233 PopulateInfoFromFormat(translator_info* info, uint32 formatType, const translation_format* formats, int32 formatCount) argument
[all...]
H A DJPEG2000Translator.h157 uint32 formatType, const translation_format* formats,
/haiku/src/kits/translation/
H A DTranslationUtils.cpp902 const translation_format *formats = NULL; local
905 err = roster->GetInputFormats(ids[tix], &formats, &numFormats);
908 if (formats[iix].type == fromType) {
917 // Get supported output formats
918 err = roster->GetOutputFormats(ids[tix], &formats, &numFormats);
921 if (formats[oix].type != fromType) {
923 const_cast<translation_format*>(&formats[oix])));
H A DTranslatorRoster.cpp740 const translation_format* formats = translator.InputFormats( local
742 const translation_format* format = _CheckHints(formats, formatsCount,
797 const translation_format* formats = translator.InputFormats( local
799 const translation_format* format = _CheckHints(formats, formatsCount,
932 the formats the translator exports.
935 BTranslatorRoster::Private::_CheckHints(const translation_format* formats, argument
938 if (formats == NULL || formatsCount <= 0 || (!hintType && hintMIME == NULL))
947 for (int32 i = 0; i < formatsCount && formats[i].type; i++) {
948 if (formats[i].type == hintType
950 && ((super && !strncmp(formats[
[all...]
/haiku/src/add-ons/media/plugins/au_reader/
H A Dau_reader.cpp215 BMediaFormats formats; local
221 formats.GetFormatFor(description, &fFormat);
255 formats.GetFormatFor(description, &fFormat);
356 // XXX it might be much better to not return any start_time information for encoded formats here,
/haiku/src/add-ons/translators/jpeg/
H A DJPEGTranslator.cpp79 // Define the formats we know how to read
87 // Define the formats we know how to write
1255 const translation_format* formats = OutputFormats(&formatCount); local
1256 for (int i = 0; i <= 1 ;formats = InputFormats(&formatCount), i++) {
1258 formats, formatCount) == B_OK) {
1270 uint32 formatType, const translation_format* formats, int32 formatCount)
1273 if (formats[i].type == formatType) {
1275 info->group = formats[i].group;
1276 info->quality = formats[i].quality;
1277 info->capability = formats[
1269 PopulateInfoFromFormat(translator_info* info, uint32 formatType, const translation_format* formats, int32 formatCount) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/writer/
H A DMediaWriter.cpp508 media_format * formats = new media_format[outInfo->in_format_count]; local
509 GetFormat(&formats[0]);
510 outInfo->in_formats = formats;

Completed in 224 milliseconds

12