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

Function CreateMediaContent

benchmarks/go/models.go:250–290  ·  view source on GitHub ↗

CreateMediaContent creates test data matching C++ benchmark

()

Source from the content-addressed store, hash-verified

248
249// CreateMediaContent creates test data matching C++ benchmark
250func CreateMediaContent() MediaContent {
251 return MediaContent{
252 Media: Media{
253 URI: "http://javaone.com/keynote.ogg",
254 Title: "",
255 Width: 641,
256 Height: 481,
257 Format: "video/theora\u1234",
258 Duration: 18000001,
259 Size: 58982401,
260 Bitrate: 0,
261 HasBitrate: false,
262 Persons: []string{"Bill Gates, Jr.", "Steven Jobs"},
263 Player: PlayerFlash,
264 Copyright: "Copyright (c) 2009, Scooby Dooby Doo",
265 },
266 Images: []Image{
267 {
268 URI: "http://javaone.com/keynote_huge.jpg",
269 Title: "Javaone Keynote\u1234",
270 Width: 32000,
271 Height: 24000,
272 Size: SizeLarge,
273 },
274 {
275 URI: "http://javaone.com/keynote_large.jpg",
276 Title: "",
277 Width: 1024,
278 Height: 768,
279 Size: SizeLarge,
280 },
281 {
282 URI: "http://javaone.com/keynote_small.jpg",
283 Title: "",
284 Width: 320,
285 Height: 240,
286 Size: SizeSmall,
287 },
288 },
289 }
290}
291
292func CreateNumericStructList() NumericStructList {
293 list := make([]NumericStruct, 20)

Calls

no outgoing calls