Encoder  4.4
VC-5 Sample Encoder
arguments.h
Go to the documentation of this file.
1 
9 #ifndef _ARGUMENTS_H
10 #define _ARGUMENTS_H
11 
12 bool GetDimension(const char *string, DIMENSION *dimension_out);
13 
14 bool GetPixelFormat(const char *string, PIXEL_FORMAT *format_out);
15 
16 #if VC5_ENABLED_PART(VC5_PART_IMAGE_FORMATS)
17 bool GetImageFormat(const char *string, IMAGE_FORMAT *format_out);
18 #endif
19 
20 bool GetPrecision(const char *string, PRECISION *precision_out);
21 
22 bool GetQuantization(const char *string, QUANT *quant);
23 
24 bool GetChannelOrder(const char *string,
25  CHANNEL *channel_order_table,
26  int *channel_order_count,
27  int channel_order_table_length);
28 
29 bool GetEnabledParts(const char *string, uint32_t *enabled_parts_out);
30 
31 bool GetBandfileInfo(const char *string, BANDFILE_INFO *bandfile);
32 
33 #if VC5_ENABLED_PART(VC5_PART_LAYERS)
34 bool GetLayerCount(const char *string, COUNT *layer_count_out);
35 #endif
36 
37 #if VC5_ENABLED_PART(VC5_PART_SECTIONS)
38 bool GetEnabledSections(const char *string, uint32_t *enabled_sections_out);
39 #endif
40 
41 //bool GetStringParameter(const char *string, char *parameter, size_t length);
42 
43 #endif
enum _image_format IMAGE_FORMAT
Format of the encoded sample.
Pathname for the band file and masks that specify which subbands to write.
Definition: parameters.h:86
uint_least8_t CHANNEL
Data type for the channel number.
Definition: types.h:62
bool GetEnabledParts(const char *string, uint32_t *enabled_parts_out)
Set the flags that indicate which parts of VC-5 are enabled.
Definition: arguments.c:143
int QUANT
Define a data type large enough to hold a quantization value.
Definition: types.h:37
bool GetQuantization(const char *string, QUANT *quant)
Set the values in the quantization table.
Definition: arguments.c:79
uint_least16_t DIMENSION
Data type for image and frame dimensions.
Definition: types.h:24
bool GetDimension(const char *string, DIMENSION *dimension_out)
Convert a command-line argument to an image dimension.
Definition: arguments.c:20
bool GetChannelOrder(const char *string, CHANNEL *channel_order_table, int *channel_order_count, int channel_order_table_length)
Set the order in which channels are encoded into the bitstream.
Definition: arguments.c:104
uint_least16_t COUNT
Data type for an unsigned number (count) that can be the value in a tag-value pair.
Definition: types.h:27
enum _pixel_format PIXEL_FORMAT
Pixels formats supported by the codec.
bool GetPixelFormat(const char *string, PIXEL_FORMAT *format_out)
Convert a command-line argument to a pixel format.
Definition: arguments.c:33
uint_least8_t PRECISION
Number of bits in a component value.
Definition: types.h:51
bool GetBandfileInfo(const char *string, BANDFILE_INFO *bandfile)
Parse the bandfile information.
Definition: arguments.c:205
bool GetPrecision(const char *string, PRECISION *precision_out)
Convert a command-line argument to precision in bits.
Definition: arguments.c:64
bool GetEnabledSections(const char *string, uint32_t *enabled_sections_out)
Set the flags that indicate which sections in VC-5 Part 6 are enabled.
Definition: arguments.c:299
bool GetImageFormat(const char *string, IMAGE_FORMAT *format_out)
Convert a command-line argument to an image format.
Definition: arguments.c:50
bool GetLayerCount(const char *string, COUNT *layer_count_out)
Convert a command-line argument to the number of layers.
Definition: arguments.c:274