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: 2025-01-18 12:42:00 Functions: 2 2 100.0 %

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

Generated by: LCOV version 1.14