dxlvinfd.c 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //==========================================================================
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------
  11. /*/////////////////////////////////////////////////////////////////////////
  12. //
  13. // dxlvinfd.c
  14. //
  15. // Purpose: A list of helper functions to the quick time codec code
  16. //
  17. ///////////////////////////////////////////////////////////////////////*/
  18. //#include <stdio.h>
  19. //#include <math.h>
  20. //#include <string.h>
  21. #include "dxl_main.h"
  22. struct DisplaySetting {
  23. long dotOne;
  24. long dotTwo;
  25. long dotThree;
  26. long dotFour;
  27. long dotFive;
  28. };
  29. static struct DisplaySetting id_RGB24 ={0x00000000,0x00000000,0xffffffff,0x00000000,0xffffffff};
  30. static struct DisplaySetting id_RGB32 ={0x00000000,0x00000000,0x00000000,0x00000000,0xffffffff};
  31. static struct DisplaySetting id_RGB555={0xffffffff,0x00000000,0xffffffff,0x00000000,0xffffffff};
  32. static struct DisplaySetting id_RGB565={0xffffffff,0x00000000,0x00000000,0x00000000,0xffffffff};
  33. static struct DisplaySetting id_UYVY ={0xff80ff80,0x00800080,0xff80ff80,0x00800080,0x00800080};
  34. static struct DisplaySetting id_YUY2 ={0x80ff80ff,0x80008000,0x80008000,0x80008000,0x80008000};
  35. static struct DisplaySetting id_YVU9 ={0x80008000,0x80008000,0xff80ff80,0xff80ff80,0xff80ff80};
  36. static struct DisplaySetting id_RGB8 ={0x00000000,0xffffffff,0x00000000,0xffffffff,0x00000000};
  37. static struct DisplaySetting id_STRETCH ={0x00000000,0xffffffff,0x00000000,0x00000000,0x00000000};
  38. static struct DisplaySetting id_STRETCH_BRIGHT ={0xffffffff,0xffffffff,0x00000000,0x00000000,0x00000000};
  39. static struct DisplaySetting id_STRETCH_SAME ={0xffffffff,0x00000000,0x00000000,0x00000000,0x00000000};
  40. static struct DisplaySetting id_KEY = {0x00000000,0x00000000,0xffffffff,0x00000000,0x00000000};
  41. static struct DisplaySetting id_NOTKEY = {0x00000000,0x00000000,0x00000000,0x00000000,0x00000000};
  42. static struct DisplaySetting id_CLEAR_ME = {0x00000000,0x00000000,0x00000000,0x00000000,0x00000000};
  43. static void OrSettings(struct DisplaySetting *src1,struct DisplaySetting *src2, struct DisplaySetting *dst)
  44. {
  45. if (dst) {
  46. dst->dotOne = src1->dotOne | src2->dotOne;
  47. dst->dotTwo = src1->dotTwo | src2->dotTwo;
  48. dst->dotThree = src1->dotThree | src2->dotThree;
  49. dst->dotFour = src1->dotFour | src2->dotFour;
  50. dst->dotFive = src1->dotFive | src2->dotFive;
  51. }
  52. }
  53. static void SetSettings(struct DisplaySetting *dst,struct DisplaySetting *src)
  54. {
  55. if (dst) {
  56. dst->dotOne = src->dotOne ;
  57. dst->dotTwo = src->dotTwo ;
  58. dst->dotThree = src->dotThree ;
  59. dst->dotFour = src->dotFour ;
  60. dst->dotFive = src->dotFive ;
  61. }
  62. }