blob: ab99eb07b68d74c95b79af2ddd3ce64c0d421a30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package com.android.rs.refocus;
/**
* Interface defining a depth transform that translates real depth values
* into an 8-bit quantized representation.
*
* @author chernand@google.com (Carlos Hernandez)
*/
public interface DepthTransform {
/**
* @return The near depth value
*/
public float getNear();
/**
* @return The far depth value
*/
public float getFar();
/**
* @return The format of the transform
*/
public String getFormat();
/**
* @return the quantized value that corresponds to the given depth value
*/
public int quantize(float depth);
/**
* @return the depth value that corresponds to the given quantized value
*/
public float reconstruct(int value);
}
|