summaryrefslogtreecommitdiff
path: root/mj2
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2005-01-26 08:59:49 +0000
committerAntonin Descampe <antonin@gmail.com>2005-01-26 08:59:49 +0000
commit3b1bee0eec81ae97bdb345103074e98ad1d29ab8 (patch)
tree8b00001c35c8df23cf0d0665f5d84612ea5130b9 /mj2
parentba1cf545df1bd789ddeaf31842971ed0a13ff932 (diff)
* function getopt added to the decoder (to efficiently manage arguments
in command line) * reduce_on, reduce_value grouped in a single variable reduce * up-to-date usage display * image_type renamed --> decod_format * JPEG2000_format renamed --> cod_format
Diffstat (limited to 'mj2')
-rw-r--r--mj2/frames_to_mj2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mj2/frames_to_mj2.c b/mj2/frames_to_mj2.c
index fbc42fa3..27fad274 100644
--- a/mj2/frames_to_mj2.c
+++ b/mj2/frames_to_mj2.c
@@ -304,7 +304,6 @@ int main(int argc, char **argv)
int h; /* Height of YUV file */
int CbCr_subsampling_dx; /* Sample rate of YUV 4:4:4 4:2:2 or 4:2:0 */
int CbCr_subsampling_dy; /* Sample rate of YUV 4:4:4 4:2:2 or 4:2:0 */
- int output_image_type = -1;
int frame_rate; /* Video Frame Rate */
int numcomps; /* In YUV files, numcomps always considered as 3 */
int prec; /* In YUV files, precision always considered as 8 */
@@ -373,7 +372,7 @@ int main(int argc, char **argv)
if ((S1 == 'y' && S2 == 'u' && S3 == 'v')
|| (S1 == 'Y' && S2 == 'U' && S3 == 'V')) {
- cp.image_type = 3;
+ cp.decod_format = YUV_DFMT;
break;
}
fprintf(stderr,
@@ -398,7 +397,7 @@ int main(int argc, char **argv)
if ((S1 == 'm' && S2 == 'j' && S3 == '2')
|| (S1 == 'M' && S2 == 'J' && S3 == '2'))
- cp.JPEG2000_format = 2;
+ cp.cod_format = MJ2_CFMT;
else {
fprintf(stderr,
"Unknown output format image *.%c%c%c [only *.mj2]!! \n",