MCPcopy Create free account
hub / github.com/apache/fory / create_media_content

Function create_media_content

benchmarks/python/benchmark.py:332–370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330
331
332def create_media_content() -> MediaContent:
333 media = Media(
334 uri="http://javaone.com/keynote.ogg",
335 title="",
336 width=641,
337 height=481,
338 format="video/theora\u1234",
339 duration=18000001,
340 size=58982401,
341 bitrate=0,
342 has_bitrate=False,
343 persons=["Bill Gates, Jr.", "Steven Jobs"],
344 player=Player.FLASH,
345 copyright="Copyright (c) 2009, Scooby Dooby Doo",
346 )
347 images = [
348 Image(
349 uri="http://javaone.com/keynote_huge.jpg",
350 title="Javaone Keynote\u1234",
351 width=32000,
352 height=24000,
353 size=Size.LARGE,
354 ),
355 Image(
356 uri="http://javaone.com/keynote_large.jpg",
357 title="",
358 width=1024,
359 height=768,
360 size=Size.LARGE,
361 ),
362 Image(
363 uri="http://javaone.com/keynote_small.jpg",
364 title="",
365 width=320,
366 height=240,
367 size=Size.SMALL,
368 ),
369 ]
370 return MediaContent(media=media, images=images)
371
372
373def create_numeric_struct_list() -> NumericStructList:

Callers 2

create_benchmark_dataFunction · 0.70

Calls 3

MediaClass · 0.70
ImageClass · 0.70
MediaContentClass · 0.70

Tested by

no test coverage detected