Crate rust_gpujpeg

Source

Structs§

CUstreamStWarpper
CUstream_st
GpujpegEncoderInputWarapper
GpujpegEncoderWarpper
GpujpegImageParametersWarrper
GpujpegParametersWarper
cudaGraphicsResource
Texture PBO resource for CUDA
gpujpeg_component_sampling_factor
Sampling factor for color component in JPEG format
gpujpeg_decoder
gpujpeg_decoder_init_parameters
@sa gpujpeg_parametes call gpujpeg_decoder_default_init_parameters() to initialize“]
gpujpeg_decoder_output
Decoder output structure
gpujpeg_device_info
Device info for one device
gpujpeg_devices_info
Device info for one device
gpujpeg_duration_stats
Encoder/decoder fine-grained statistics with duration of individual steps of JPEG compression/decompression. All values are in milliseconds.
gpujpeg_encoder
gpujpeg_encoder_input
Encoder input structure
gpujpeg_image_parameters
Image parameters. This structure should not be initialized only be hand, but at first gpujpeg_image_set_default_parameters should be call and then some parameters could be changed.
gpujpeg_opengl_context
gpujpeg_opengl_texture
Represents OpenGL texture that is registered to CUDA, thus the device pointer can be acquired.
gpujpeg_parameters
JPEG parameters. This structure should not be initialized only be hand, but at first gpujpeg_set_default_parameters should be call and then some parameters could be changed.

Constants§

GPUJPEG_DEC_OPT_TGA_RLE_BOOL
GPUJPEG_ENCODER_OPT_OUT_PINNED
GPUJPEG_ENC_OPT_OUT
GPUJPEG_ENC_OUT_VAL_PAGEABLE
GPUJPEG_ENC_OUT_VAL_PINNED
GPUJPEG_ERROR
GPUJPEG_ERR_RESTART_CHANGE
GPUJPEG_INIT_DEV_VERBOSE
GPUJPEG_MAX_COMPONENT_COUNT
GPUJPEG_MAX_DEVICE_COUNT
GPUJPEG_MAX_SEGMENT_INFO_HEADER_COUNT
GPUJPEG_NOERR
GPUJPEG_OPENGL_INTEROPERABILITY
GPUJPEG_SUBSAMPLING_UNKNOWN
GPUJPEG_VAL_FALSE
GPUJPEG_VAL_TRUE
GPUJPEG_VERBOSE
WCHAR_MAX
WCHAR_MIN
WINT_MAX
WINT_MIN
_CRT_PACKING
_HAS_CXX17
_HAS_CXX20
_HAS_CXX23
_HAS_CXX26
_HAS_EXCEPTIONS
_HAS_NODISCARD
_SAL_VERSION
_STL_LANG
_USE_ATTRIBUTES_FOR_SAL
_USE_DECLSPECS_FOR_SAL
_VCRT_COMPILER_PREPROCESSOR
__SAL_H_VERSION
__bool_true_false_are_defined
false_
gpujpeg_color_space_GPUJPEG_NONE
gpujpeg_color_space_GPUJPEG_RGB
gpujpeg_color_space_GPUJPEG_YCBCR
@ref GPUJPEG_YCBCR_BT709 GPUJPEG_YCBCR_BT709_256LVLS
gpujpeg_color_space_GPUJPEG_YCBCR_BT601
limited-range YCbCr BT.601
gpujpeg_color_space_GPUJPEG_YCBCR_BT709
limited-range YCbCr BT.709 GPUJPEG_YCBCR_BT709
gpujpeg_color_space_GPUJPEG_YCBCR_BT601_256LVLS
GPUJPEG_YCBCR_BT601
gpujpeg_color_space_GPUJPEG_YCBCR_JPEG
limited-range YCbCr JPEG
gpujpeg_color_space_GPUJPEG_YUV
@deprecated will be removed soon (is this ever needed?), define ENABLE_YUV to enable pre/post processors
gpujpeg_decoder_output_type_GPUJPEG_DECODER_OUTPUT_CUDA_BUFFER
Decoder will use internal CUDA buffer as output buffer
gpujpeg_decoder_output_type_GPUJPEG_DECODER_OUTPUT_CUSTOM_BUFFER
Decoder will use custom output buffer
gpujpeg_decoder_output_type_GPUJPEG_DECODER_OUTPUT_CUSTOM_CUDA_BUFFER
Decoder will use custom CUDA buffer as output buffer
gpujpeg_decoder_output_type_GPUJPEG_DECODER_OUTPUT_INTERNAL_BUFFER
Decoder will use it’s internal output buffer
gpujpeg_decoder_output_type_GPUJPEG_DECODER_OUTPUT_OPENGL_TEXTURE
Decoder will use OpenGL Texture PBO Resource as output buffer
gpujpeg_encoder_input_type_GPUJPEG_ENCODER_INPUT_GPU_IMAGE
Encoder will use custom GPU input buffer
gpujpeg_encoder_input_type_GPUJPEG_ENCODER_INPUT_IMAGE
Encoder will use custom input buffer
gpujpeg_encoder_input_type_GPUJPEG_ENCODER_INPUT_OPENGL_TEXTURE
Encoder will use OpenGL Texture PBO Resource as input buffer
gpujpeg_header_type_GPUJPEG_HEADER_ADOBE
Adobe APP8 header
gpujpeg_header_type_GPUJPEG_HEADER_DEFAULT
for 1 or 3 channel @ref GPUJPEG_YCBCR_JPEG @ref GPUJPEG_HEADER_JFIF, for @ref GPUJPEG_RGB @ref GPUJPEG_HEADER_ADOBE, @ref GPUJPEG_HEADER_SPIFF otherwise
gpujpeg_header_type_GPUJPEG_HEADER_JFIF
gpujpeg_header_type_GPUJPEG_HEADER_SPIFF
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_BMP
RGBA file format, simple data format without header [R G B A] [R G B A] …
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_GIF
RGBA file format, simple data format without header [R G B A] [R G B A] …
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_GRAY
Gray file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_I420
i420 file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_JPEG
JPEG file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_PAM
PAM file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_PGM
PNM file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_PNG
RGBA file format, simple data format without header [R G B A] [R G B A] …
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_PNM
PNM file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_PPM
PNM file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_RAW
Raw file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_RGB
RGB file format, simple data format without header [R G B] [R G B] …
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_RGBA
RGBA file format, simple data format without header [R G B A] [R G B A] …
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_TGA
RGBA file format, simple data format without header [R G B A] [R G B A] …
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_TST
testing (empty) image, that is SW generated
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_UNKNOWN
Unknown image file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_UYVY
UYVY - packed YUV 4:2:2 with pattern U Y0 V Y1
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_Y4M
PAM file format
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_YUV
YUV file format, simple data format without header [Y U V] [Y U V] …
gpujpeg_image_file_format_GPUJPEG_IMAGE_FILE_YUVA
YUV file format with alpha channel [Y U V A] [Y U V A] …
gpujpeg_opengl_texture_type_GPUJPEG_OPENGL_TEXTURE_READ
gpujpeg_opengl_texture_type_GPUJPEG_OPENGL_TEXTURE_WRITE
gpujpeg_pixel_format_GPUJPEG_420_U8_P0P1P2
8bit unsigned samples, planar, 3 components, 4:2:0, planar
gpujpeg_pixel_format_GPUJPEG_422_U8_P0P1P2
8bit unsigned samples, planar, 3 components, 4:2:2, planar
gpujpeg_pixel_format_GPUJPEG_422_U8_P1020
8bit unsigned samples, 3 components, 4:2:2, order of samples: comp#1 comp#0 comp#2 comp#0, interleaved
gpujpeg_pixel_format_GPUJPEG_444_U8_P0P1P2
8bit unsigned samples, 3 components, 4:4:4, planar
gpujpeg_pixel_format_GPUJPEG_444_U8_P012
8bit unsigned samples, 3 components, 4:4:4 sampling, sample order: comp#0 comp#1 comp#2, interleaved
gpujpeg_pixel_format_GPUJPEG_4444_U8_P0123
8bit unsigned samples, 3 or 4 components, each pixel padded to 32bits with optional alpha or unused, 4:4:4(:4) sampling, interleaved
gpujpeg_pixel_format_GPUJPEG_PIXFMT_NONE
gpujpeg_pixel_format_GPUJPEG_U8
8bit unsigned samples, 1 component
restart_int_RESTART_AUTO
auto-select the best restart interval
restart_int_RESTART_NONE
disabled; CPU Huffman encoder will be used
true_
verbosity_GPUJPEG_LL_DEBUG
print more information, including internal ones
verbosity_GPUJPEG_LL_DEBUG2
print maximum of information, including JPEG file internal structure
verbosity_GPUJPEG_LL_INFO
normal verbosity
verbosity_GPUJPEG_LL_QUIET
suppress informative messages (but not warnings and errors)
verbosity_GPUJPEG_LL_STATUS
print summary (image size, duration)
verbosity_GPUJPEG_LL_VERBOSE
print additional information

Statics§

__security_cookie

Functions§

__report_gsfailure
__security_check_cookie
__security_init_cookie
__va_start
gpujpeg_color_space_by_name
Returns color space by string name
gpujpeg_color_space_get_name
Get color space name
gpujpeg_decoder_create
Create JPEG decoder
gpujpeg_decoder_create_with_params
@brief Create JPEG decoder - extended versison This version is an alternative to gpujpeg_decoder_create() allowing setting more parameters during initialization (verbose, perf_stats). Previously, if those needed to be set, it the decoder must have been configured with gpujpeg_decoder_init().
gpujpeg_decoder_decode
Decompress image by decoder
gpujpeg_decoder_default_init_parameters
gpujpeg_decoder_destroy
Destory JPEG decoder
gpujpeg_decoder_get_image_info
@copydoc gpujpeg_reader_get_image_info
gpujpeg_decoder_get_stats
Returns duration statistics for last decoded image
gpujpeg_decoder_init
Init JPEG decoder for specific image properties
gpujpeg_decoder_output_set_cuda_buffer
Sets output to CUDA buffer
gpujpeg_decoder_output_set_custom
Setup decoder output to custom buffer
gpujpeg_decoder_output_set_custom_cuda
Setup decoder output to custom CUDA buffer
gpujpeg_decoder_output_set_default
Set default parameters to decoder output structure
gpujpeg_decoder_output_set_texture
Set decoder output to OpenGL texture
gpujpeg_decoder_set_option
sets decoder option @retval GPUJPEG_NOERR option was sucessfully set @retval GPUJPEG_ERROR invalid argument passed
gpujpeg_decoder_set_output_format
Sets output format
gpujpeg_default_image_parameters
alternative to @ref gpujpeg_set_default_image_parameters allowing simultaneous * declaration and intialization for convenience.
gpujpeg_default_parameters
alternative to @ref gpujpeg_set_default_parameters allowing simultaneous declaration and intialization for convenience.
gpujpeg_device_reset
gpujpeg_encoder_allocate
Pre-allocate all encoding buffers for given image pixels.
gpujpeg_encoder_create
Create JPEG encoder
gpujpeg_encoder_destroy
Destory JPEG encoder
gpujpeg_encoder_encode
Compress image by encoder
gpujpeg_encoder_get_stats
Returns duration statistics for last encoded image
gpujpeg_encoder_input_gpu_image
alternative to @ref gpujpeg_encoder_input_set_gpu_image returning the struct as a return value
gpujpeg_encoder_input_image
alternative to @ref gpujpeg_encoder_input_set_image returning the struct as a return value
gpujpeg_encoder_input_set_gpu_image
Set encoder input to GPU image data
gpujpeg_encoder_input_set_image
Set encoder input to image data
gpujpeg_encoder_input_set_texture
Set encoder input to OpenGL texture
gpujpeg_encoder_input_texture
alternative to @ref gpujpeg_encoder_input_set_texture returning the struct as a return value
gpujpeg_encoder_max_memory
Compute maximum size of device memory which will be used for encoding image with given number of pixels.
gpujpeg_encoder_max_pixels
Compute maximum number of image pixels (width x height) which can be encoded by given memory size.
gpujpeg_encoder_set_jpeg_header
Forces JPEG header to be emitted.
gpujpeg_encoder_set_option
sets encoder option @retval GPUJPEG_NOERR option was sucessfully set @retval GPUJPEG_ERROR invalid argument passed
gpujpeg_encoder_suggest_restart_interval
Suggests optimal restart interval to be used for given param_image balancing both image size and performance. @param subsampling 444 422 or 420
gpujpeg_get_devices_info
Get information about available devices
gpujpeg_get_time
return
gpujpeg_image_calculate_size
Calculate size for image by parameters
gpujpeg_image_convert
Convert image
gpujpeg_image_destroy
Destroys image allocated by GPUJPEG (eg. gpujpeg_image_load_from_file())
gpujpeg_image_get_file_format
Get image file format from filename
gpujpeg_image_get_properties
Reads/obtains properties from uncompressed file (PNM etc.)
gpujpeg_image_load_from_file
Load image from file
gpujpeg_image_range_info
Print range info for image samples
gpujpeg_image_save_to_file
Save image to a file
gpujpeg_image_set_default_parameters
Set default parameters for JPEG image
gpujpeg_init_device
Init CUDA device
gpujpeg_opengl_destroy
Destroys OpenGL context created with gpujpeg_opengl_init()
gpujpeg_opengl_init
Init OpenGL context
gpujpeg_opengl_texture_create
Create OpenGL texture
gpujpeg_opengl_texture_destroy
Destroy OpenGL texture
gpujpeg_opengl_texture_get_data
Get data from OpenGL texture
gpujpeg_opengl_texture_map
Map registered OpenGL texture to CUDA and return device pointer to the texture data
gpujpeg_opengl_texture_register
Register OpenGL texture to CUDA
gpujpeg_opengl_texture_set_data
Set data to OpenGL texture
gpujpeg_opengl_texture_unmap
Unmap registered OpenGL texture from CUDA and the device pointer is no longer useable.
gpujpeg_opengl_texture_unregister
Unregister OpenGL texture from CUDA. Deallocated given structure.
gpujpeg_parameters_chroma_subsampling
Set parameters for using specified chroma subsampling @param param parameters for coder @param subsampling one of GPUJPEG_SUBSAMPLING_{444,422,420}
gpujpeg_pixel_format_by_name
Returns pixel format by string name
gpujpeg_pixel_format_get_comp_count
Returns number of color components in pixel format
gpujpeg_pixel_format_get_name
Returns name of the pixel format
gpujpeg_pixel_format_is_planar
Returns true if a pixel format is planar
gpujpeg_print_devices_info
Print information about available devices
gpujpeg_print_pixel_formats
gpujpeg_set_default_parameters
Set default parameters for JPEG coder
gpujpeg_set_device
Sets cuda device.
gpujpeg_subsampling_from_name
returns gpujpeg_sampling_factor_t from textual representation of subsampling
gpujpeg_subsampling_get_name
Returns convenient name for subsampling (4:2:0 etc.). If it cannot be constructed returns the format W1xH1:W2xH2:W3xH3.
gpujpeg_version
return
gpujpeg_version_to_string
return

Type Aliases§

__vcrt_bool
cudaStream_t
gpujpeg_color_space
Color spaces for JPEG codec
gpujpeg_decoder_output_type
Decoder output type
gpujpeg_encoder_input_type
Encoder input type
gpujpeg_header_type
gpujpeg_image_file_format
Image file formats
gpujpeg_opengl_texture_type
Registered OpenGL texture type
gpujpeg_pixel_format
Pixel format for input/output image data.
gpujpeg_sampling_factor_t
Sampling factor for all components
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
max_align_t
restart_int
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
va_list
verbosity
wchar_t