sn9c2028.h (0337966d121ebebf73a1c346123e8112796e684e) | sn9c2028.h (37d5efb01910752d8d3846a2c4db0528c1dfa137) |
---|---|
1/* 2 * SN9C2028 common functions 3 * 4 * Copyright (C) 2009 Theodore Kilgore <kilgota@auburn,edu> 5 * 6 * Based closely upon the file gspca/pac_common.h 7 * 8 * This program is free software; you can redistribute it and/or modify --- 29 unchanged lines hidden (view full) --- 38 if ((m[i] == sn9c2028_sof_marker[sd->sof_read]) || 39 (sd->sof_read > 5)) { 40 sd->sof_read++; 41 if (sd->sof_read == 11) 42 sd->avg_lum_l = m[i]; 43 if (sd->sof_read == 12) 44 sd->avg_lum = (m[i] << 8) + sd->avg_lum_l; 45 if (sd->sof_read == sizeof(sn9c2028_sof_marker)) { | 1/* 2 * SN9C2028 common functions 3 * 4 * Copyright (C) 2009 Theodore Kilgore <kilgota@auburn,edu> 5 * 6 * Based closely upon the file gspca/pac_common.h 7 * 8 * This program is free software; you can redistribute it and/or modify --- 29 unchanged lines hidden (view full) --- 38 if ((m[i] == sn9c2028_sof_marker[sd->sof_read]) || 39 (sd->sof_read > 5)) { 40 sd->sof_read++; 41 if (sd->sof_read == 11) 42 sd->avg_lum_l = m[i]; 43 if (sd->sof_read == 12) 44 sd->avg_lum = (m[i] << 8) + sd->avg_lum_l; 45 if (sd->sof_read == sizeof(sn9c2028_sof_marker)) { |
46 PDEBUG(D_FRAM, 47 "SOF found, bytes to analyze: %u." 48 " Frame starts at byte #%u", 49 len, i + 1); | 46 gspca_dbg(gspca_dev, D_FRAM, 47 "SOF found, bytes to analyze: %u - Frame starts at byte #%u\n", 48 len, i + 1); |
50 sd->sof_read = 0; 51 return m + i + 1; 52 } 53 } else { 54 sd->sof_read = 0; 55 } 56 } 57 58 return NULL; 59} | 49 sd->sof_read = 0; 50 return m + i + 1; 51 } 52 } else { 53 sd->sof_read = 0; 54 } 55 } 56 57 return NULL; 58} |