<commit_before>/*++

Copyright (c) 2018 <NAME>

Module Name:

    pixel_sampler.h

Abstract:

    Samples the UV space on the lens and framebuffer.

--*/

#ifndef _IRIS_CAMERA_PIXEL_SAMPLER_
#define _IRIS_CAMERA_PIXEL_SAMPLER_

#include "iris_advanced/iris_advanced.h"

//
// Types
//

ISTATUS
(*PPIXEL_SAMPLER_GENERATE_SAMPLE_ROUTINE)(
    _In_ const void *context,
    _In_ PRANDOM rng,
    _In_ uint32_t num_samples,
    _In_ float_t pixel_sample_min_u,
    _In_ float_t pixel_sample_max_u,
    _In_ float_t pixel_sample_min_v,
    _In_ float_t pixel_sample_max_v,
    _In_ float_t lens_sample_min_u,
    _In_ float_t lens_sample_max_u,
    _In_ float_t lens_sample_min_v,
    _In_ float_t lens_sample_max_v,
    _Out_writes_(num_samples) float_t pixel_samples_u[],
    _Out_writes_(num_samples) float_t pixel_samples_v[],
    _Out_writes_(num_samples) float_t lens_samples_u[],
    _Out_writes_(num_samples) float_t lens_samples_v[]
    );

typedef struct _PIXEL_SAMPLER PIXEL_SAMPLER, *PPIXEL_SAMPLER;
typedef const PIXEL_SAMPLER *PCPIXEL_SAMPLER;

typedef
ISTATUS
(*PPIXEL_SAMPLER_LIFETIME_ROUTINE)(
    _Inout_opt_ void *context,
    _In_ PCPIXEL_SAMPLER sampler
    );

//
// Functions<commit_msg>Move num_pixels in argument order<commit_after>/*++

Copyright (c) 2018 <NAME>

Module Name:

    pixel_sampler.h

Abstract:

    Samples the UV space on the lens and framebuffer.

--*/

#ifndef _IRIS_CAMERA_PIXEL_SAMPLER_
#define _IRIS_CAMERA_PIXEL_SAMPLER_

#include "iris_advanced/iris_advanced.h"

//
// Types
//

ISTATUS
(*PPIXEL_SAMPLER_GENERATE_SAMPLE_ROUTINE)(
    _In_ const void *context,
    _In_ PRANDOM rng,
    _In_ float_t pixel_sample_min_u,
    _In_ float_t pixel_sample_max_u,
    _In_ float_t pixel_sample_min_v,
    _In_ float_t pixel_sample_max_v,
    _In_ float_t lens_sample_min_u,
    _In_ float_t lens_sample_max_u,
    _In_ float_t lens_sample_min_v,
    _In_ float_t lens_sample_max_v,
    _In_ uint32_t num_samples,
    _Out_writes_(num_samples) float_t pixel_samples_u[],
    _Out_writes_(num_samples) float_t pixel_samples_v[],
    _Out_writes_(num_samples) float_t lens_samples_u[],
    _Out_writes_(num_samples) float_t lens_samples_v[]
    );

typedef struct _PIXEL_SAMPLER PIXEL_SAMPLER, *PPIXEL_SAMPLER;
typedef const PIXEL_SAMPLER *PCPIXEL_SAMPLER;

typedef
ISTATUS
(*PPIXEL_SAMPLER_LIFETIME_ROUTINE)(
    _Inout_opt_ void *context,
    _In_ PCPIXEL_SAMPLER sampler
    );

//
// Functions
{'fraction_non_alphanumeric': 0.07078189300411522, 'fraction_numerical': 0.0049382716049382715, 'mean_word_length': 4.61431870669746, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4198323', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1019, 'n_words': 187}