Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
3.0 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/INCLUDE/VCS/fileio.h_v $
  4. *
  5. * INTEL Corporation Proprietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1993-1994 Intel Corporation.
  12. *
  13. * $Revision: 1.5 $
  14. * $Date: Apr 02 1996 15:48:40 $
  15. * $Author: RKUHN $
  16. *
  17. * Deliverable: vcrmsp32.dll
  18. *
  19. * Abstract: The FileIO public include file to be included by
  20. * the App
  21. *
  22. * Notes:
  23. *
  24. ***************************************************************************/
  25. #ifndef FILEIO_H
  26. #define FILEIO_H
  27. #define FILEIO_SRC_MSP "IntelIPhoneFileIO1.0Src"
  28. // The FILEIO_SNK_MSP is not to be used currently
  29. #define FILEIO_SNK_MSP "IntelIPhoneFileIO1.0Snk"
  30. #define VIDEO_STREAM 0
  31. #define AUDIO_STREAM 1
  32. // this is the command that needs to be sent to the FileIO MSP
  33. // throught MSM_SendServiceCmd function when the MSP is to start
  34. // sourcing the file specified in OpenService
  35. #define START_SOURCING 1
  36. // this is the command that needs to be sent to the FileIO MSP
  37. // throught MSM_SendServiceCmd function when the MSP is to pause
  38. // sourcing the file specified in OpenService. This command
  39. // will just pause reading. The file or stream is not closed.
  40. // For actual shutdown ClosePort() needs to be called by MSM
  41. // Also this command is to be sent for each port(video and audio)
  42. // separately. To resume, START_SOURCING command will have to be sent
  43. #define PAUSE_SOURCING 2
  44. // This command will cause the read thread for the port
  45. // to be terminated.The stream correpoonding to the port
  46. // will be closed. The port will still not be shutdown.ClosePort()
  47. // will have to be called explicitly for port shutdown
  48. #define STOP_SOURCING 3
  49. // this is the wParam sent to the ServiceCallback function from
  50. // the FileIO MSP when it is done sourcing the file
  51. #define FILE_DONE 1
  52. // this needs to be passed to the FileIO MSP on a MSM_OpenService
  53. // call as the first LPARAM parameter, and it should contain the
  54. // the file name to source terminated by '/0'
  55. typedef char *LPOPENSERVICEIN;
  56. // The app will call MSP_OpenPort() thru MSM passing pointer to this
  57. // structure as lParam1.This structure can be expanded to include
  58. // the type algorithm/codec which the App would like this MSP to
  59. // use for the stream
  60. typedef struct _OPENPORTINPUT
  61. {
  62. WORD MediaType; // VIDEO_STREAM = 0,AUDIO_STREAM = 1
  63. WORD DontSendEOFCmd; // When this is set, the FileIO
  64. // MSP will go back to the start of the stream when end of stream is reached
  65. // This is useful for testing, when we have only a small file
  66. // and we want to play for a long time
  67. } OPENPORTINPUT, *LPOPENPORTINPUT;
  68. // this structure is used in the SendAppCmd call as the lParamIn.
  69. // it specifies two handles which the application must wait on before
  70. // calling CloseService on the fileio MSP.
  71. typedef struct
  72. {
  73. HANDLE waitHandle1;
  74. HANDLE waitHandle2;
  75. } SEND_APP_CMD_STRUCT, *LP_SEND_APP_CMD_STRUCT;
  76. #endif