|
23 | 23 | *
|
24 | 24 | */
|
25 | 25 |
|
| 26 | +// The YUV to RGB conversion code is derived from SDL's YUV overlay code, which |
| 27 | +// in turn appears to be derived from mpeg_play. The following copyright |
| 28 | +// notices have been included in accordance with the original license. Please |
| 29 | +// note that the term "software" in this context only applies to the |
| 30 | +// buildLookup() and plotYUV*() functions below. |
| 31 | + |
| 32 | +// Copyright (c) 1995 The Regents of the University of California. |
| 33 | +// All rights reserved. |
| 34 | +// |
| 35 | +// Permission to use, copy, modify, and distribute this software and its |
| 36 | +// documentation for any purpose, without fee, and without written agreement is |
| 37 | +// hereby granted, provided that the above copyright notice and the following |
| 38 | +// two paragraphs appear in all copies of this software. |
| 39 | +// |
| 40 | +// IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR |
| 41 | +// DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT |
| 42 | +// OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF |
| 43 | +// CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 44 | +// |
| 45 | +// THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, |
| 46 | +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
| 47 | +// AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
| 48 | +// ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO |
| 49 | +// PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 50 | + |
| 51 | +// Copyright (c) 1995 Erik Corry |
| 52 | +// All rights reserved. |
| 53 | +// |
| 54 | +// Permission to use, copy, modify, and distribute this software and its |
| 55 | +// documentation for any purpose, without fee, and without written agreement is |
| 56 | +// hereby granted, provided that the above copyright notice and the following |
| 57 | +// two paragraphs appear in all copies of this software. |
| 58 | +// |
| 59 | +// IN NO EVENT SHALL ERIK CORRY BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, |
| 60 | +// SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF |
| 61 | +// THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ERIK CORRY HAS BEEN ADVISED |
| 62 | +// OF THE POSSIBILITY OF SUCH DAMAGE. |
| 63 | +// |
| 64 | +// ERIK CORRY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT |
| 65 | +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| 66 | +// PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 67 | +// BASIS, AND ERIK CORRY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, |
| 68 | +// UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 69 | + |
| 70 | +// Portions of this software Copyright (c) 1995 Brown University. |
| 71 | +// All rights reserved. |
| 72 | +// |
| 73 | +// Permission to use, copy, modify, and distribute this software and its |
| 74 | +// documentation for any purpose, without fee, and without written agreement |
| 75 | +// is hereby granted, provided that the above copyright notice and the |
| 76 | +// following two paragraphs appear in all copies of this software. |
| 77 | +// |
| 78 | +// IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE TO ANY PARTY FOR |
| 79 | +// DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT |
| 80 | +// OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF BROWN |
| 81 | +// UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 82 | +// |
| 83 | +// BROWN UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT |
| 84 | +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| 85 | +// PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 86 | +// BASIS, AND BROWN UNIVERSITY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, |
| 87 | +// SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 88 | + |
26 | 89 | #include "graphics/video/mpeg_player.h"
|
27 | 90 | #include "common/file.h"
|
28 | 91 | #include "common/system.h"
|
@@ -284,69 +347,6 @@ void BaseAnimationState::buildLookup(int p, int lines) {
|
284 | 347 |
|
285 | 348 | #else
|
286 | 349 |
|
287 |
| -// The YUV to RGB conversion code is derived from SDL's YUV overlay code, which |
288 |
| -// in turn appears to be derived from mpeg_play. The following copyright |
289 |
| -// notices have been included in accordance with the original license. Please |
290 |
| -// note that the term "software" in this context only applies to the two |
291 |
| -// functions buildLookup() and plotYUV() below. |
292 |
| - |
293 |
| -// Copyright (c) 1995 The Regents of the University of California. |
294 |
| -// All rights reserved. |
295 |
| -// |
296 |
| -// Permission to use, copy, modify, and distribute this software and its |
297 |
| -// documentation for any purpose, without fee, and without written agreement is |
298 |
| -// hereby granted, provided that the above copyright notice and the following |
299 |
| -// two paragraphs appear in all copies of this software. |
300 |
| -// |
301 |
| -// IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR |
302 |
| -// DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT |
303 |
| -// OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF |
304 |
| -// CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
305 |
| -// |
306 |
| -// THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, |
307 |
| -// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
308 |
| -// AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
309 |
| -// ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO |
310 |
| -// PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
311 |
| - |
312 |
| -// Copyright (c) 1995 Erik Corry |
313 |
| -// All rights reserved. |
314 |
| -// |
315 |
| -// Permission to use, copy, modify, and distribute this software and its |
316 |
| -// documentation for any purpose, without fee, and without written agreement is |
317 |
| -// hereby granted, provided that the above copyright notice and the following |
318 |
| -// two paragraphs appear in all copies of this software. |
319 |
| -// |
320 |
| -// IN NO EVENT SHALL ERIK CORRY BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, |
321 |
| -// SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF |
322 |
| -// THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ERIK CORRY HAS BEEN ADVISED |
323 |
| -// OF THE POSSIBILITY OF SUCH DAMAGE. |
324 |
| -// |
325 |
| -// ERIK CORRY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT |
326 |
| -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
327 |
| -// PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" |
328 |
| -// BASIS, AND ERIK CORRY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, |
329 |
| -// UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
330 |
| - |
331 |
| -// Portions of this software Copyright (c) 1995 Brown University. |
332 |
| -// All rights reserved. |
333 |
| -// |
334 |
| -// Permission to use, copy, modify, and distribute this software and its |
335 |
| -// documentation for any purpose, without fee, and without written agreement |
336 |
| -// is hereby granted, provided that the above copyright notice and the |
337 |
| -// following two paragraphs appear in all copies of this software. |
338 |
| -// |
339 |
| -// IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE TO ANY PARTY FOR |
340 |
| -// DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT |
341 |
| -// OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF BROWN |
342 |
| -// UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
343 |
| -// |
344 |
| -// BROWN UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT |
345 |
| -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
346 |
| -// PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" |
347 |
| -// BASIS, AND BROWN UNIVERSITY HAS NO OBLIGATION TO PROVIDE MAINTENANCE, |
348 |
| -// SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
349 |
| - |
350 | 350 | void BaseAnimationState::buildLookup() {
|
351 | 351 | // Do we already have lookup tables for this bit format?
|
352 | 352 | Graphics::PixelFormat format = _sys->getOverlayFormat();
|
|
0 commit comments