Project Name  Version 1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
jh_encoder.h
Go to the documentation of this file.
1 /******************************************************************************
2  * This program is protected under international and U.S. copyright laws as *
3  * an unpublished work. This program is confidential and proprietary to the *
4  * copyright owners. Reproduction or disclosure, in whole or in part, or the *
5  * production of derivative works therefrom without the express permission of *
6  * the copyright owners is prohibited. *
7  * *
8  * Copyright (C) 2011-2012 by Dolby Laboratories. *
9  * All rights reserved. *
10  ******************************************************************************/
11 
17 #ifndef _JH_ENCODER_H
18 #define _JH_ENCODER_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "jh_datatypes.h"
25 
34 typedef struct jh_encoder_params_ts {
36  unsigned base_quality;
37  unsigned subband_quality;
38  float samp2nits;
41  float noise_floor;
44  float chroma_minmax[4];
46  int reserved;
48 
49 
53 int jh_encode(
54  const jh_encoder_params_t *encoder_params,
55  jh_monitor_t *monitor,
57  jh_image_t *hdri,
59  jh_image_t *sdri,
60  jh_stream_t *stream,
61  jh_error_t* error
63 );
64 
69  const size_t pixels,
70  const jh_encoder_params_t *encoder_params,
71  int *mem,
73  jh_error_t *error
75 );
76 
80 const char* jh_encoder_version();
81 
86  jh_encoder_params_t *params,
87  jh_error_t *error
89 );
90  /* end of defgroup encodint */
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /*_JH_ENCODER_H*/