Home | History | Annotate | Download | only in enc

Lines Matching refs:left

34 // Adjust top-left corner to chroma sample position.
36 int* const left, int* const top) {
38 *left &= ~1;
43 // Adjust top-left corner and verify that the sub-rectangle is valid.
45 int* const left, int* const top,
47 SnapTopLeftPosition(pic, left, top);
48 if ((*left) < 0 || (*top) < 0) return 0;
50 if ((*left) + width > pic->width) return 0;
90 int left, int top, int width, int height,
95 if (!AdjustAndCheckRectangle(src, &left, &top, width, height)) return 0;
103 dst->y = src->y + top * src->y_stride + left;
104 dst->u = src->u + (top >> 1) * src->uv_stride + (left >> 1);
105 dst->v = src->v + (top >> 1) * src->uv_stride + (left >> 1);
109 dst->a = src->a + top * src->a_stride + left;
113 dst->argb = src->argb + top * src->argb_stride + left;
123 int left, int top, int width, int height) {
127 if (!AdjustAndCheckRectangle(pic, &left, &top, width, height)) return 0;
135 const int y_offset = top * pic->y_stride + left;
136 const int uv_offset = (top / 2) * pic->uv_stride + left / 2;
145 const int a_offset = top * pic->a_stride + left;
151 (const uint8_t*)(pic->argb + top * pic->argb_stride + left);