Lines Matching defs:format

69 MediaTrackVideoSupplier::GetEncodedFormat(media_format* format) const
73 return fVideoTrack->EncodedFormat(format);
88 const media_raw_video_format& format, bool& wasCached)
109 if (format.display.format
110 != fFormat.u.raw_video.display.format
112 != format.display.bytes_per_row) {
113 ret = _SwitchFormat(format.display.format,
114 format.display.bytes_per_row);
117 "unable to switch media format: %s\n", strerror(ret));
275 return fFormat.u.raw_video.display.format;
290 MediaTrackVideoSupplier::_SwitchFormat(color_space format, uint32 bytesPerRow)
292 // get the encoded format
304 if (format == B_NO_COLOR_SPACE) {
305 format = fFormat.u.encoded_video.output.display.format;
306 if (format == B_NO_COLOR_SPACE) {
307 // if still no preferred format, try the most commonly
308 // supported overlay format
309 format = B_YCbCr422;
313 color_space_to_string(format));
318 if (format == B_YCbCr422)
324 ret = _SetDecodedFormat(width, height, format, bytesPerRow);
329 format = B_RGB32;
332 ret = _SetDecodedFormat(width, height, format, bytesPerRow);
341 if (fFormat.u.raw_video.display.format != format) {
343 " codec changed colorspace of decoded format (%s -> %s)!\n",
344 color_space_to_string(format),
345 color_space_to_string(fFormat.u.raw_video.display.format));
347 format = fFormat.u.raw_video.display.format;
348 if (format == B_YCbCr422)
355 ret = _SetDecodedFormat(width, height, format, minBytesPerRow);
370 color_space format, uint32 bytesPerRow)
372 // specifiy the decoded format. we derive this information from
373 // the encoded format (width & height).
379 fFormat.u.raw_video.display.format = format;