home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / MM / CODEC / SAMPDECO.C < prev    next >
C/C++ Source or Header  |  1995-08-24  |  2KB  |  35 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /* SAMPDECO.C: Sample Codec Decompression/Display Routines.                  */
  4. /*                                                                           */
  5. /* Copyright (c) IBM Corporation 1991,1994             All Rights Reserved   */
  6. /*                                                                           */
  7. /*****************************************************************************/
  8.  
  9. #define  INCL_WIN
  10. #define  INCL_GPI
  11. #define  INCL_DOS
  12. #define  INCL_OS2MM
  13. #define  INCL_MMIO_CODEC
  14. #include <os2.h>
  15. #include <os2me.h>
  16. #include <string.h>
  17. #include "sampinst.h"
  18. #include "sampdeco.h"
  19.  
  20.  
  21.  
  22. /*****************************************************************************/
  23. /*                                                                           */
  24. /* SUBROUTINE NAME: DecompressFrame                                          */
  25. /*     This procedure is the main decompression routine.  In this example,   */
  26. /*     we'll simply copy the data to the destination buffer.                 */
  27. /*                                                                           */
  28. /*****************************************************************************/
  29.  
  30. ULONG DecompressFrame ( PMAIN_INST pMainInst, PBYTE pbSrc, PBYTE pbDst )
  31.    {
  32.    memcpy ( pbDst, pbSrc, pMainInst->ulWidth * pMainInst->ulHeight );
  33.    return ( 0 );
  34.    }
  35.