Lines Matching refs:FORM
778 if (val < opd->FORM.Range.MinimumValue.u16) {
779 return opd->FORM.Range.MinimumValue.u16;
781 if (val > opd->FORM.Range.MaximumValue.u16) {
782 return opd->FORM.Range.MaximumValue.u16;
785 if (val % opd->FORM.Range.StepSize.u16 != 0) {
786 return val - (val % opd->FORM.Range.StepSize.u16);
793 uint16_t bestfit = opd->FORM.Enum.SupportedValue[0].u16;
795 for (i=0; i<opd->FORM.Enum.NumberOfValues; i++) {
796 if (val == opd->FORM.Enum.SupportedValue[i].u16) {
800 if (opd->FORM.Enum.SupportedValue[i].u16 < val) {
801 bestfit = opd->FORM.Enum.SupportedValue[i].u16;
823 if (val < opd->FORM.Range.MinimumValue.u32) {
824 return opd->FORM.Range.MinimumValue.u32;
826 if (val > opd->FORM.Range.MaximumValue.u32) {
827 return opd->FORM.Range.MaximumValue.u32;
830 if (val % opd->FORM.Range.StepSize.u32 != 0) {
831 return val - (val % opd->FORM.Range.StepSize.u32);
838 uint32_t bestfit = opd->FORM.Enum.SupportedValue[0].u32;
840 for (i=0; i<opd->FORM.Enum.NumberOfValues; i++) {
841 if (val == opd->FORM.Enum.SupportedValue[i].u32) {
845 if (opd->FORM.Enum.SupportedValue[i].u32 < val) {
846 bestfit = opd->FORM.Enum.SupportedValue[i].u32;
902 allowed_vals->num_entries = opd.FORM.Enum.NumberOfValues;
907 allowed_vals->i8vals = malloc(sizeof(int8_t) * opd.FORM.Enum.NumberOfValues);
911 allowed_vals->u8vals = malloc(sizeof(uint8_t) * opd.FORM.Enum.NumberOfValues);
915 allowed_vals->i16vals = malloc(sizeof(int16_t) * opd.FORM.Enum.NumberOfValues);
919 allowed_vals->u16vals = malloc(sizeof(uint16_t) * opd.FORM.Enum.NumberOfValues);
923 allowed_vals->i32vals = malloc(sizeof(int32_t) * opd.FORM.Enum.NumberOfValues);
927 allowed_vals->u32vals = malloc(sizeof(uint32_t) * opd.FORM.Enum.NumberOfValues);
931 allowed_vals->i64vals = malloc(sizeof(int64_t) * opd.FORM.Enum.NumberOfValues);
935 allowed_vals->u64vals = malloc(sizeof(uint64_t) * opd.FORM.Enum.NumberOfValues);
940 for (i = 0; i < opd.FORM.Enum.NumberOfValues; i++) {
944 allowed_vals->i8vals[i] = opd.FORM.Enum.SupportedValue[i].i8;
947 allowed_vals->u8vals[i] = opd.FORM.Enum.SupportedValue[i].u8;
950 allowed_vals->i16vals[i] = opd.FORM.Enum.SupportedValue[i].i16;
953 allowed_vals->u16vals[i] = opd.FORM.Enum.SupportedValue[i].u16;
956 allowed_vals->i32vals[i] = opd.FORM.Enum.SupportedValue[i].i32;
959 allowed_vals->u32vals[i] = opd.FORM.Enum.SupportedValue[i].u32;
962 allowed_vals->i64vals[i] = opd.FORM.Enum.SupportedValue[i].i64;
965 allowed_vals->u64vals[i] = opd.FORM.Enum.SupportedValue[i].u64;
977 allowed_vals->i8min = opd.FORM.Range.MinimumValue.i8;
978 allowed_vals->i8max = opd.FORM.Range.MaximumValue.i8;
979 allowed_vals->i8step = opd.FORM.Range.StepSize.i8;
983 allowed_vals->u8min = opd.FORM.Range.MinimumValue.u8;
984 allowed_vals->u8max = opd.FORM.Range.MaximumValue.u8;
985 allowed_vals->u8step = opd.FORM.Range.StepSize.u8;
989 allowed_vals->i16min = opd.FORM.Range.MinimumValue.i16;
990 allowed_vals->i16max = opd.FORM.Range.MaximumValue.i16;
991 allowed_vals->i16step = opd.FORM.Range.StepSize.i16;
995 allowed_vals->u16min = opd.FORM.Range.MinimumValue.u16;
996 allowed_vals->u16max = opd.FORM.Range.MaximumValue.u16;
997 allowed_vals->u16step = opd.FORM.Range.StepSize.u16;
1001 allowed_vals->i32min = opd.FORM.Range.MinimumValue.i32;
1002 allowed_vals->i32max = opd.FORM.Range.MaximumValue.i32;
1003 allowed_vals->i32step = opd.FORM.Range.StepSize.i32;
1007 allowed_vals->u32min = opd.FORM.Range.MinimumValue.u32;
1008 allowed_vals->u32max = opd.FORM.Range.MaximumValue.u32;
1009 allowed_vals->u32step = opd.FORM.Range.StepSize.u32;
1013 allowed_vals->i64min = opd.FORM.Range.MinimumValue.i64;
1014 allowed_vals->i64max = opd.FORM.Range.MaximumValue.i64;
1015 allowed_vals->i64step = opd.FORM.Range.StepSize.i64;
1019 allowed_vals->u64min = opd.FORM.Range.MinimumValue.u64;
1020 allowed_vals->u64max = opd.FORM.Range.MaximumValue.u64;
1021 allowed_vals->u64step = opd.FORM.Range.StepSize.u64;
1826 if (dpd.FORM.Range.MaximumValue.u8 != 0) {
1827 mtp_device->maximum_battery_level = dpd.FORM.Range.MaximumValue.u8;
2935 printf(" DATETIME FORM");
2938 printf(" REGULAR EXPRESSION FORM");
2941 printf(" LONG STRING FORM");
2962 opd.FORM.Range.MinimumValue.i8,
2963 opd.FORM.Range.MaximumValue.i8,
2964 opd.FORM.Range.StepSize.i8);
2968 for(k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
2969 printf("%d, ", opd.FORM.Enum.SupportedValue[k].i8);
2976 printf(" ANY 8BIT VALUE form");
2986 opd.FORM.Range.MinimumValue.u8,
2987 opd.FORM.Range.MaximumValue.u8,
2988 opd.FORM.Range.StepSize.u8);
2992 for(k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
2993 printf("%d, ", opd.FORM.Enum.SupportedValue[k].u8);
3000 printf(" ANY 8BIT VALUE form");
3010 opd.FORM.Range.MinimumValue.i16,
3011 opd.FORM.Range.MaximumValue.i16,
3012 opd.FORM.Range.StepSize.i16);
3016 for(k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
3017 printf("%d, ", opd.FORM.Enum.SupportedValue[k].i16);
3021 printf(" ANY 16BIT VALUE form");
3031 opd.FORM.Range.MinimumValue.u16,
3032 opd.FORM.Range.MaximumValue.u16,
3033 opd.FORM.Range.StepSize.u16);
3037 for(k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
3038 printf("%d, ", opd.FORM.Enum.SupportedValue[k].u16);
3042 printf(" ANY 16BIT VALUE form");
3052 opd.FORM.Range.MinimumValue.i32,
3053 opd.FORM.Range.MaximumValue.i32,
3054 opd.FORM.Range.StepSize.i32);
3058 for(k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
3059 printf("%d, ", opd.FORM.Enum.SupportedValue[k].i32);
3063 printf(" ANY 32BIT VALUE form");
3073 opd.FORM.Range.MinimumValue.u32,
3074 opd.FORM.Range.MaximumValue.u32,
3075 opd.FORM.Range.StepSize.u32);
3081 for (k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
3082 if (opd.FORM.Enum.SupportedValue[k].u32 == 0) {
3086 fourcc[0] = (opd.FORM.Enum.SupportedValue[k].u32 >> 24) & 0xFFU;
3087 fourcc[1] = (opd.FORM.Enum.SupportedValue[k].u32 >> 16) & 0xFFU;
3088 fourcc[2] = (opd.FORM.Enum.SupportedValue[k].u32 >> 8) & 0xFFU;
3089 fourcc[3] = opd.FORM.Enum.SupportedValue[k].u32 & 0xFFU;
3097 for(k=0;k<opd.FORM.Enum.NumberOfValues;k++) {
3098 printf("%d, ", opd.FORM.Enum.SupportedValue[k].u32);
3103 printf(" ANY 32BIT VALUE form");
8099 retsam->filetype = map_ptp_type_to_libmtp_type(opd_format.FORM.Enum.SupportedValue[0].u16);
8103 retsam->width = opd_width.FORM.Range.MaximumValue.u32;
8107 retsam->height = opd_height.FORM.Range.MaximumValue.u32;
8112 retsam->size = opd_size.FORM.Range.MaximumValue.u32;
8126 retsam->filetype = map_ptp_type_to_libmtp_type(opd_format.FORM.Enum.SupportedValue[0].u16);
8130 retsam->duration = opd_duration.FORM.Range.MaximumValue.u32;
8135 retsam->size = opd_size.FORM.Range.MaximumValue.u32;