table of contents
other versions
- wheezy 0.7.3-6
- jessie 0.7.3-6+b2
- testing 0.9.4-1
- unstable 0.9.4-1
- experimental 0.10.0-1
gd_framenum_subset(3) | GETDATA | gd_framenum_subset(3) |
NAME¶
gd_framenum_subset, gd_framenum — perform a reverse look-up on a monotonic dirfile fieldSYNOPSIS¶
#include <getdata.h>double
gd_framenum_subset(DIRFILE *dirfile, const char
*field_code, double value, off_t
field_start, off_t field_end);
double
gd_framenum(DIRFILE *dirfile, const char
*field_code, double value);
DESCRIPTION¶
The gd_framenum_subset() function queries a dirfile(5) database specified by dirfile and returns the fractional frame number at which the field specified by field_code, which may contain a representation suffix, equals value, by considering the field between the frame limits field_start and field_end.RETURN VALUE¶
On success, these functions return the fractional frame number at which the given function would attain the supplied value, based only on that portion of the field between the given limits. This might be any number, even values outside of the supplied limits, up to and including positive or negative infinity.- GD_E_ALLOC
- The library was unable to allocate memory.
- GD_E_BAD_CODE
- The field specified by field_code was not found.
- GD_E_BAD_DIRFILE
- The supplied dirfile was invalid.
- GD_E_BAD_FIELD_TYPE
- The field specified by field_code was not a vector field.
- GD_E_BAD_REPR
- The representation suffix specified in field_code, or in one of its input fields, was not recognised.
- GD_E_BAD_SCALAR
- A scalar field used in the definition of the field was not found, or was not of scalar type.
- GD_E_DIMENSION
- A scalar field was found where a vector field was expected.
- GD_E_DOMAIN
- The specified field was complex valued, or the supplied frame range was too small. This error may also arise if data is deleted from the field as the function is executing.
- GD_E_INTERNAL_ERROR
- An internal error occurred in the library while trying to perform the task. This indicates a bug in the library. Please report the incident to the maintainer.
- GD_E_OPEN_LINFILE
- An error occurred while trying to read a LINTERP table from disk.
- GD_E_RANGE
- The specified field is constant between the supplied limits.
- GD_E_RAW_IO
- An error occurred while trying to open or read from a file on disk containing a raw field.
- GD_E_RECURSE_LEVEL
- Too many levels of recursion were encountered while trying to resolve field_code. This usually indicates a circular dependency in field specification in the dirfile.
- GD_E_UNKNOWN_ENCODING
- The encoding scheme of a RAW field could not be determined. This may also indicate that the binary file associated with the RAW field could not be found.
- GD_E_UNSUPPORTED
- Reading from dirfiles with the encoding scheme of the specified dirfile is not supported by the library. See dirfile-encoding(5) for details on dirfile encoding schemes.
SEE ALSO¶
gd_open(3), gd_error(3), gd_error_string(3), gd_frameoffset(3), gd_nframes(3)23 October 2010 | Version 0.7.0 |