Commit b37fe3a8 authored by 吴智聪(John Wu)'s avatar 吴智聪(John Wu)

make the horz start be even, otherwise the pixel color will lose align

parent 2e9294aa
......@@ -55,7 +55,7 @@ void ccdc_setwin(ccdc_params_ycbcr * params)
int vert_start, vert_nr_lines;
/* configure horizonal and vertical starts and sizes */
horz_start = params->win.left;
horz_start = params->win.left << 1;
horz_nr_pixels = (params->win.width <<1) - 1;
regw((horz_start << 16) | horz_nr_pixels, HORZ_INFO);
......
......@@ -54,10 +54,11 @@
#define VPFE_WIN_QCIF {0,0,176,144}
#define VPFE_WIN_QVGA {0,0,320,240}
#define VPFE_WIN_SIF {0,0,352,240}
#define VPFE_WIN_HD480P {69,0,720,480}
#define VPFE_WIN_HD576P {72,0,720,576}
#define VPFE_WIN_HD720P {185,0,1280,720}
#define VPFE_WIN_HD1080I {140,0,1920,1080}
/* the left member must be divide by 2 if it is odd must add by 1 then divide by 2*/
#define VPFE_WIN_HD480P {35,0,720,480}
#define VPFE_WIN_HD576P {36,0,720,576}
#define VPFE_WIN_HD720P {93,0,1280,720}
#define VPFE_WIN_HD1080I {70,0,1920,1080}
#define VPFE_CAPTURE_ID_TVP5150 0
#define VPFE_CAPTURE_ID_TVP7000 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment