Sha256: 818dbf90dea20134fcd8cf9a76cfb46ad97e8d8453b6ab763499a617f2f065cb

Contents?: true

Size: 1.68 KB

Versions: 9

Compression:

Stored size: 1.68 KB

Contents

/*
 * jdsample.h
 *
 * This file was part of the Independent JPEG Group's software:
 * Copyright (C) 1991-1996, Thomas G. Lane.
 * For conditions of distribution and use, see the accompanying README.ijg
 * file.
 */

#define JPEG_INTERNALS
#include "jpeglib.h"


/* Pointer to routine to upsample a single component */
typedef void (*upsample1_ptr) (j_decompress_ptr cinfo,
                               jpeg_component_info *compptr,
                               JSAMPARRAY input_data,
                               JSAMPARRAY *output_data_ptr);

/* Private subobject */

typedef struct {
  struct jpeg_upsampler pub;    /* public fields */

  /* Color conversion buffer.  When using separate upsampling and color
   * conversion steps, this buffer holds one upsampled row group until it
   * has been color converted and output.
   * Note: we do not allocate any storage for component(s) which are full-size,
   * ie do not need rescaling.  The corresponding entry of color_buf[] is
   * simply set to point to the input data array, thereby avoiding copying.
   */
  JSAMPARRAY color_buf[MAX_COMPONENTS];

  /* Per-component upsampling method pointers */
  upsample1_ptr methods[MAX_COMPONENTS];

  int next_row_out;             /* counts rows emitted from color_buf */
  JDIMENSION rows_to_go;        /* counts rows remaining in image */

  /* Height of an input row group for each component. */
  int rowgroup_height[MAX_COMPONENTS];

  /* These arrays save pixel expansion factors so that int_expand need not
   * recompute them each time.  They are unused for other upsampling methods.
   */
  UINT8 h_expand[MAX_COMPONENTS];
  UINT8 v_expand[MAX_COMPONENTS];
} my_upsampler;

typedef my_upsampler *my_upsample_ptr;

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
epeg-1.0.1 epeg/vendor/libjpeg-turbo-2.0.4/jdsample.h
epeg-1.0 epeg/vendor/libjpeg-turbo-2.0.4/jdsample.h
image_intensities-1.0.8 ext/image_intensities/turbojpeg/jdsample.h
image_intensities-1.0.7 ext/image_intensities/turbojpeg/jdsample.h
image_intensities-1.0.6 ext/image_intensities/turbojpeg/jdsample.h
image_intensities-1.0.5 ext/image_intensities/turbojpeg/jdsample.h
image_intensities-1.0.4 ext/image_intensities/turbojpeg/jdsample.h
laag-libjpeg-turbo-1.5.3.1 vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdsample.h
laag-libjpeg-turbo-1.5.3.0 vendor/github.com/libjpeg-turbo/libjpeg-turbo/jdsample.h