@@ -2687,87 +2687,6 @@ static struct deviceproptableu16 canon_isospeed[] = {
2687
2687
};
2688
2688
GENERIC16TABLE (Canon_ISO ,canon_isospeed )
2689
2689
2690
- /* see ptp-pack.c:ptp_unpack_EOS_ImageFormat */
2691
- static struct deviceproptableu16 canon_eos_image_format [] = {
2692
- { N_ ("RAW" ), 0x0cff , 0 },
2693
- { N_ ("mRAW" ), 0x1cff , 0 },
2694
- { N_ ("sRAW" ), 0x2cff , 0 },
2695
- { N_ ("cRAW" ), 0x0bff , 0 },
2696
- { N_ ("Large Fine JPEG" ), 0x03ff , 0 },
2697
- { N_ ("Large Normal JPEG" ), 0x02ff , 0 },
2698
- { N_ ("Medium Fine JPEG" ), 0x13ff , 0 },
2699
- { N_ ("Medium Normal JPEG" ), 0x12ff , 0 },
2700
- { N_ ("Small Fine JPEG" ), 0x23ff , 0 },
2701
- { N_ ("Small Normal JPEG" ), 0x22ff , 0 },
2702
- { N_ ("Small Fine JPEG" ), 0xd3ff , 0 },
2703
- { N_ ("Small Normal JPEG" ), 0xd2ff , 0 },
2704
- { N_ ("Smaller JPEG" ), 0xe3ff , 0 },
2705
- { N_ ("Tiny JPEG" ), 0xf3ff , 0 },
2706
- { N_ ("RAW + Large Fine JPEG" ), 0x0c03 , 0 },
2707
- { N_ ("mRAW + Large Fine JPEG" ), 0x1c03 , 0 },
2708
- { N_ ("sRAW + Large Fine JPEG" ), 0x2c03 , 0 },
2709
- { N_ ("cRAW + Large Fine JPEG" ), 0x0b03 , 0 },
2710
- { N_ ("RAW + Medium Fine JPEG" ), 0x0c13 , 0 },
2711
- { N_ ("mRAW + Medium Fine JPEG" ), 0x1c13 , 0 },
2712
- { N_ ("sRAW + Medium Fine JPEG" ), 0x2c13 , 0 },
2713
- { N_ ("cRAW + Medium Fine JPEG" ), 0x0b13 , 0 },
2714
- { N_ ("RAW + Small Fine JPEG" ), 0x0c23 , 0 },
2715
- { N_ ("RAW + Small Fine JPEG" ), 0x0cd3 , 0 }, /*Canon EOS 5D Mark III*/
2716
- { N_ ("mRAW + Small Fine JPEG" ), 0x1c23 , 0 },
2717
- { N_ ("mRAW + Small Fine JPEG" ), 0x1cd3 , 0 }, /*Canon EOS 5D Mark III*/
2718
- { N_ ("sRAW + Small Fine JPEG" ), 0x2c23 , 0 },
2719
- { N_ ("sRAW + Small Fine JPEG" ), 0x2cd3 , 0 }, /*Canon EOS 5D Mark III*/
2720
- { N_ ("cRAW + Small Fine JPEG" ), 0x0bd3 , 0 },
2721
- { N_ ("RAW + Large Normal JPEG" ), 0x0c02 , 0 },
2722
- { N_ ("mRAW + Large Normal JPEG" ), 0x1c02 , 0 },
2723
- { N_ ("sRAW + Large Normal JPEG" ), 0x2c02 , 0 },
2724
- { N_ ("cRAW + Large Normal JPEG" ), 0x0b02 , 0 },
2725
- { N_ ("RAW + Medium Normal JPEG" ), 0x0c12 , 0 },
2726
- { N_ ("mRAW + Medium Normal JPEG" ), 0x1c12 , 0 },
2727
- { N_ ("sRAW + Medium Normal JPEG" ), 0x2c12 , 0 },
2728
- { N_ ("cRAW + Medium Normal JPEG" ), 0x0b12 , 0 },
2729
- { N_ ("RAW + Small Normal JPEG" ), 0x0c22 , 0 },
2730
- { N_ ("RAW + Small Normal JPEG" ), 0x0cd2 , 0 }, /*Canon EOS 5D Mark III*/
2731
- { N_ ("mRAW + Small Normal JPEG" ), 0x1c22 , 0 },
2732
- { N_ ("mRAW + Small Normal JPEG" ), 0x1cd2 , 0 }, /*Canon EOS 5D Mark III*/
2733
- { N_ ("sRAW + Small Normal JPEG" ), 0x2c22 , 0 },
2734
- { N_ ("sRAW + Small Normal JPEG" ), 0x2cd2 , 0 }, /*Canon EOS 5D Mark III*/
2735
- { N_ ("cRAW + Small Normal JPEG" ), 0x0bd2 , 0 },
2736
- { N_ ("RAW + Smaller JPEG" ), 0x0ce3 , 0 }, /*Canon EOS 5D Mark III*/
2737
- { N_ ("mRAW + Smaller JPEG" ), 0x1ce3 , 0 }, /*Canon EOS 5D Mark III*/
2738
- { N_ ("sRAW + Smaller JPEG" ), 0x2ce3 , 0 }, /*Canon EOS 5D Mark III*/
2739
- { N_ ("cRAW + Smaller JPEG" ), 0x0be3 , 0 }, /*Canon EOS M50*/
2740
- { N_ ("RAW + Tiny JPEG" ), 0x0cf3 , 0 }, /*Canon EOS 5D Mark III*/
2741
- { N_ ("mRAW + Tiny JPEG" ), 0x1cf3 , 0 }, /*Canon EOS 5D Mark III*/
2742
- { N_ ("sRAW + Tiny JPEG" ), 0x2cf3 , 0 }, /*Canon EOS 5D Mark III*/
2743
- /* There are more RAW + 'smallish' JPEG combinations for at least the 5DM3 possible.
2744
- Axel was simply to lazy to exercise the combinatorial explosion. :-/ */
2745
- /* 1DX series 0 compression options */
2746
- { N_ ("Small" ), 0x21ff , 0 },
2747
- { N_ ("Medium 1" ), 0x51ff , 0 },
2748
- { N_ ("Medium 2" ), 0x61ff , 0 },
2749
- { N_ ("Large" ), 0x01ff , 0 },
2750
- { N_ ("Small + RAW" ), 0x0c21 , 0 },
2751
- { N_ ("Medium 1 + RAW" ), 0x0c51 , 0 },
2752
- { N_ ("Medium 2 + RAW" ), 0x0c61 , 0 },
2753
- { N_ ("Large + RAW" ), 0x0c01 , 0 },
2754
- { N_ ("Small + cRAW" ), 0x0b21 , 0 },
2755
- { N_ ("Medium 1 + cRAW" ), 0x0b51 , 0 },
2756
- { N_ ("Medium 2 + cRAW" ), 0x0b61 , 0 },
2757
- { N_ ("Large + cRAW" ), 0x0b01 , 0 },
2758
-
2759
- /* 1DX mark ii */
2760
- { N_ ("Large + mRAW" ), 0x1c01 , 0 },
2761
- { N_ ("Medium 1 + mRAW" ), 0x1c51 , 0 },
2762
- { N_ ("Medium 2 + mRAW" ), 0x1c61 , 0 },
2763
- { N_ ("Small + mRAW" ), 0x1c21 , 0 },
2764
- { N_ ("Large + sRAW" ), 0x2c01 , 0 },
2765
- { N_ ("Medium 1 + sRAW" ), 0x2c51 , 0 },
2766
- { N_ ("Medium 2 + sRAW" ), 0x2c61 , 0 },
2767
- { N_ ("Small + sRAW" ), 0x2c21 , 0 },
2768
- };
2769
- GENERIC16TABLE (Canon_EOS_ImageFormat ,canon_eos_image_format )
2770
-
2771
2690
static struct deviceproptableu8 canon_eos_single_ImageFormats [] = {
2772
2691
{ N_ ("RAW" ), 0x0c , 0 },
2773
2692
{ N_ ("mRAW" ), 0x1c , 0 },
@@ -2816,7 +2735,7 @@ _single_EOS_ImageFormat_name(uint8_t val)
2816
2735
}
2817
2736
2818
2737
static int
2819
- _get_Canon_EOS_ImageFormat2 (CONFIG_GET_ARGS )
2738
+ _get_Canon_EOS_ImageFormat (CONFIG_GET_ARGS )
2820
2739
{
2821
2740
gp_widget_new (GP_WIDGET_RADIO , _ (menu -> label ), widget );
2822
2741
gp_widget_set_name (* widget , menu -> name );
@@ -2855,7 +2774,7 @@ _single_EOS_ImageFormat_value(const char *name, size_t n, PTPDevicePropDesc *dpd
2855
2774
}
2856
2775
2857
2776
static int
2858
- _put_Canon_EOS_ImageFormat2 (CONFIG_PUT_ARGS ) {
2777
+ _put_Canon_EOS_ImageFormat (CONFIG_PUT_ARGS ) {
2859
2778
const char * label ;
2860
2779
gp_widget_get_value (widget , & label );
2861
2780
@@ -11049,7 +10968,6 @@ static struct submenu image_settings_menu[] = {
11049
10968
{ N_ ("Image Format" ), "imageformat" , PTP_DPC_CANON_EOS_ImageFormat , PTP_VENDOR_CANON , PTP_DTC_UINT16 , _get_Canon_EOS_ImageFormat , _put_Canon_EOS_ImageFormat },
11050
10969
{ N_ ("Image Format SD" ), "imageformatsd" , PTP_DPC_CANON_EOS_ImageFormatSD , PTP_VENDOR_CANON , PTP_DTC_UINT16 , _get_Canon_EOS_ImageFormat , _put_Canon_EOS_ImageFormat },
11051
10970
{ N_ ("Image Format CF" ), "imageformatcf" , PTP_DPC_CANON_EOS_ImageFormatCF , PTP_VENDOR_CANON , PTP_DTC_UINT16 , _get_Canon_EOS_ImageFormat , _put_Canon_EOS_ImageFormat },
11052
- { N_ ("Image Format 2" ), "imageformat2" , PTP_DPC_CANON_EOS_ImageFormat , PTP_VENDOR_CANON , PTP_DTC_UINT16 , _get_Canon_EOS_ImageFormat2 , _put_Canon_EOS_ImageFormat2 },
11053
10971
{ N_ ("Image Format" ), "imageformat" , PTP_DPC_FUJI_Quality , PTP_VENDOR_FUJI , PTP_DTC_UINT16 , _get_Fuji_ImageFormat , _put_Fuji_ImageFormat },
11054
10972
{ N_ ("Image Format" ), "imageformat" , 0 , PTP_VENDOR_PANASONIC ,PTP_DTC_UINT16 , _get_Panasonic_ImageFormat , _put_Panasonic_ImageFormat },
11055
10973
{ N_ ("Image Format Ext HD" ), "imageformatexthd" , PTP_DPC_CANON_EOS_ImageFormatExtHD , PTP_VENDOR_CANON , PTP_DTC_UINT16 , _get_Canon_EOS_ImageFormat , _put_Canon_EOS_ImageFormat },
0 commit comments