LCOV - code coverage report
Current view: top level - frmts/jpeg - jpgdataset_12.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 5 5 100.0 %
Date: 2024-11-21 22:18:42 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  * $Id$
       3             :  *
       4             :  * Project:  JPEG JFIF Driver
       5             :  * Purpose:  Implement GDAL JPEG Support based on IJG libjpeg.
       6             :  * Author:   Even Rouault, even dot rouault at spatialys.com
       7             :  *
       8             :  ******************************************************************************
       9             :  * Copyright (c) 2009-2013, Even Rouault <even dot rouault at spatialys.com>
      10             :  *
      11             :  * SPDX-License-Identifier: MIT
      12             :  ****************************************************************************/
      13             : 
      14             : #if defined(JPEG_DUAL_MODE_8_12)
      15             : 
      16             : #if !defined(HAVE_JPEGTURBO_DUAL_MODE_8_12)
      17             : #define LIBJPEG_12_PATH "libjpeg12/jpeglib.h"
      18             : #endif
      19             : #define JPGDataset JPGDataset12
      20             : #define GDALJPEGErrorStruct GDALJPEGErrorStruct12
      21             : #define jpeg_vsiio_src jpeg_vsiio_src_12
      22             : #define jpeg_vsiio_dest jpeg_vsiio_dest_12
      23             : #define GDALJPEGUserData GDALJPEGUserData12
      24             : 
      25             : #include "jpgdataset.cpp"
      26             : 
      27             : JPGDatasetCommon *JPEGDataset12Open(JPGDatasetOpenArgs *psArgs);
      28             : GDALDataset *JPEGDataset12CreateCopy(const char *pszFilename,
      29             :                                      GDALDataset *poSrcDS, int bStrict,
      30             :                                      char **papszOptions,
      31             :                                      GDALProgressFunc pfnProgress,
      32             :                                      void *pProgressData);
      33             : 
      34         134 : JPGDatasetCommon *JPEGDataset12Open(JPGDatasetOpenArgs *psArgs)
      35             : {
      36         134 :     return JPGDataset12::Open(psArgs);
      37             : }
      38             : 
      39           1 : GDALDataset *JPEGDataset12CreateCopy(const char *pszFilename,
      40             :                                      GDALDataset *poSrcDS, int bStrict,
      41             :                                      char **papszOptions,
      42             :                                      GDALProgressFunc pfnProgress,
      43             :                                      void *pProgressData)
      44             : {
      45           1 :     return JPGDataset12::CreateCopy(pszFilename, poSrcDS, bStrict, papszOptions,
      46           1 :                                     pfnProgress, pProgressData);
      47             : }
      48             : 
      49             : #endif /* defined(JPEG_DUAL_MODE_8_12) */

Generated by: LCOV version 1.14