• Home
  • Raw
  • Download

Lines Matching refs:image

220     VAImage *image,  in psb__VAImageCheckRegion()  argument
231 if (*src_x > image->width) *src_x = image->width - 1; in psb__VAImageCheckRegion()
233 if (*src_y > image->height) *src_y = image->height - 1; in psb__VAImageCheckRegion()
235 if (((*width) + (*src_x)) > image->width) *width = image->width - *src_x; in psb__VAImageCheckRegion()
236 if (((*height) + (*src_y)) > image->height) *height = image->height - *src_x; in psb__VAImageCheckRegion()
280 VAImage *image /* out */ in psb_CreateImage() argument
297 CHECK_INVALID_PARAM(image == NULL); in psb_CreateImage()
305 obj_image->image.image_id = imageID; in psb_CreateImage()
306 obj_image->image.format = *img_fmt; in psb_CreateImage()
313 obj_image->image.width = width; in psb_CreateImage()
314 obj_image->image.height = height; in psb_CreateImage()
315 … obj_image->image.data_size = pitch_pot * height /*Y*/ + 2 * (pitch_pot / 2) * (height / 2);/*UV*/ in psb_CreateImage()
316 obj_image->image.num_planes = 2; in psb_CreateImage()
317 obj_image->image.pitches[0] = pitch_pot; in psb_CreateImage()
318 obj_image->image.pitches[1] = pitch_pot; in psb_CreateImage()
319 obj_image->image.offsets[0] = 0; in psb_CreateImage()
320 obj_image->image.offsets[1] = pitch_pot * height; in psb_CreateImage()
321 obj_image->image.num_palette_entries = 0; in psb_CreateImage()
322 obj_image->image.entry_bytes = 0; in psb_CreateImage()
323 obj_image->image.component_order[0] = 'Y'; in psb_CreateImage()
324 obj_image->image.component_order[1] = 'U';/* fixed me: packed UV packed here! */ in psb_CreateImage()
325 obj_image->image.component_order[2] = 'V'; in psb_CreateImage()
326 obj_image->image.component_order[3] = '\0'; in psb_CreateImage()
330 obj_image->image.width = width; in psb_CreateImage()
331 obj_image->image.height = height; in psb_CreateImage()
332 obj_image->image.data_size = 4 * pitch_pot * height; in psb_CreateImage()
333 obj_image->image.num_planes = 1; in psb_CreateImage()
334 obj_image->image.pitches[0] = 4 * pitch_pot; in psb_CreateImage()
335 obj_image->image.num_palette_entries = 0; in psb_CreateImage()
336 obj_image->image.entry_bytes = 0; in psb_CreateImage()
337 obj_image->image.component_order[0] = 'V'; in psb_CreateImage()
338 obj_image->image.component_order[1] = 'U'; in psb_CreateImage()
339 obj_image->image.component_order[2] = 'Y'; in psb_CreateImage()
340 obj_image->image.component_order[3] = 'A'; in psb_CreateImage()
344 obj_image->image.width = width; in psb_CreateImage()
345 obj_image->image.height = height; in psb_CreateImage()
346 obj_image->image.data_size = 4 * pitch_pot * height; in psb_CreateImage()
347 obj_image->image.num_planes = 1; in psb_CreateImage()
348 obj_image->image.pitches[0] = 4 * pitch_pot; in psb_CreateImage()
349 obj_image->image.num_palette_entries = 0; in psb_CreateImage()
350 obj_image->image.entry_bytes = 0; in psb_CreateImage()
351 obj_image->image.component_order[0] = 'R'; in psb_CreateImage()
352 obj_image->image.component_order[1] = 'G'; in psb_CreateImage()
353 obj_image->image.component_order[2] = 'B'; in psb_CreateImage()
354 obj_image->image.component_order[3] = 'A'; in psb_CreateImage()
358 obj_image->image.width = width; in psb_CreateImage()
359 obj_image->image.height = height; in psb_CreateImage()
360 obj_image->image.data_size = pitch_pot * height;/* one byte one element */ in psb_CreateImage()
361 obj_image->image.num_planes = 1; in psb_CreateImage()
362 obj_image->image.pitches[0] = pitch_pot; in psb_CreateImage()
363 obj_image->image.num_palette_entries = 16; in psb_CreateImage()
364 obj_image->image.entry_bytes = 4; /* AYUV */ in psb_CreateImage()
365 obj_image->image.component_order[0] = 'I'; in psb_CreateImage()
366 obj_image->image.component_order[1] = 'A'; in psb_CreateImage()
367 obj_image->image.component_order[2] = '\0'; in psb_CreateImage()
368 obj_image->image.component_order[3] = '\0'; in psb_CreateImage()
372 obj_image->image.width = width; in psb_CreateImage()
373 obj_image->image.height = height; in psb_CreateImage()
374 … obj_image->image.data_size = pitch_pot * height /*Y*/ + 2 * (pitch_pot / 2) * (height / 2);/*UV*/ in psb_CreateImage()
375 obj_image->image.num_planes = 3; in psb_CreateImage()
376 obj_image->image.pitches[0] = pitch_pot; in psb_CreateImage()
377 obj_image->image.pitches[1] = pitch_pot / 2; in psb_CreateImage()
378 obj_image->image.pitches[2] = pitch_pot / 2; in psb_CreateImage()
379 obj_image->image.offsets[0] = 0; in psb_CreateImage()
380 obj_image->image.offsets[1] = pitch_pot * height; in psb_CreateImage()
381 obj_image->image.offsets[2] = pitch_pot * height + (pitch_pot / 2) * (height / 2); in psb_CreateImage()
382 obj_image->image.num_palette_entries = 0; in psb_CreateImage()
383 obj_image->image.entry_bytes = 0; in psb_CreateImage()
384 obj_image->image.component_order[0] = 'Y'; in psb_CreateImage()
385 obj_image->image.component_order[1] = 'U'; in psb_CreateImage()
386 obj_image->image.component_order[2] = 'V'; in psb_CreateImage()
387 obj_image->image.component_order[3] = '\0'; in psb_CreateImage()
391 obj_image->image.width = width; in psb_CreateImage()
392 obj_image->image.height = height; in psb_CreateImage()
393 obj_image->image.data_size = 4 * pitch_pot * height; in psb_CreateImage()
394 obj_image->image.num_planes = 4; in psb_CreateImage()
395 obj_image->image.pitches[0] = pitch_pot; in psb_CreateImage()
396 obj_image->image.pitches[1] = pitch_pot; in psb_CreateImage()
397 obj_image->image.pitches[2] = pitch_pot; in psb_CreateImage()
398 obj_image->image.extra_pitch = pitch_pot; in psb_CreateImage()
399 obj_image->image.offsets[0] = 0; in psb_CreateImage()
400 obj_image->image.offsets[1] = pitch_pot * height; in psb_CreateImage()
401 obj_image->image.offsets[2] = pitch_pot * height * 2; in psb_CreateImage()
402 obj_image->image.extra_offset = pitch_pot * height * 3; in psb_CreateImage()
403 obj_image->image.num_palette_entries = 0; in psb_CreateImage()
404 obj_image->image.entry_bytes = 0; in psb_CreateImage()
405 obj_image->image.component_order[0] = 'V'; in psb_CreateImage()
406 obj_image->image.component_order[1] = 'U'; in psb_CreateImage()
407 obj_image->image.component_order[2] = 'Y'; in psb_CreateImage()
408 obj_image->image.component_order[3] = 'A'; in psb_CreateImage()
420 obj_image->image.data_size, 1, NULL, &obj_image->image.buf); in psb_CreateImage()
428 memcpy(image, &obj_image->image, sizeof(VAImage)); in psb_CreateImage()
462 VAImage *image /* out */ in psb_DeriveImage() argument
476 CHECK_INVALID_PARAM(image == NULL); in psb_DeriveImage()
533 obj_image->image.image_id = imageID; in psb_DeriveImage()
534 obj_image->image.format = psb__CreateImageFormat[fourcc_index]; in psb_DeriveImage()
537 obj_image->image.buf = bufferID; in psb_DeriveImage()
538 obj_image->image.width = obj_surface->width; in psb_DeriveImage()
539 obj_image->image.height = obj_surface->height; in psb_DeriveImage()
540 obj_image->image.data_size = obj_surface->psb_surface->size; in psb_DeriveImage()
546 obj_image->image.num_planes = 2; in psb_DeriveImage()
547 obj_image->image.pitches[0] = obj_surface->psb_surface->stride; in psb_DeriveImage()
548 obj_image->image.pitches[1] = obj_surface->psb_surface->stride; in psb_DeriveImage()
550 obj_image->image.offsets[0] = srf_buf_ofs; in psb_DeriveImage()
551 …obj_image->image.offsets[1] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride; in psb_DeriveImage()
552 obj_image->image.num_palette_entries = 0; in psb_DeriveImage()
553 obj_image->image.entry_bytes = 0; in psb_DeriveImage()
554 obj_image->image.component_order[0] = 'Y'; in psb_DeriveImage()
555 obj_image->image.component_order[1] = 'U';/* fixed me: packed UV packed here! */ in psb_DeriveImage()
556 obj_image->image.component_order[2] = 'V'; in psb_DeriveImage()
557 obj_image->image.component_order[3] = '\0'; in psb_DeriveImage()
561 obj_image->image.num_planes = 3; in psb_DeriveImage()
562 obj_image->image.pitches[0] = obj_surface->psb_surface->stride; in psb_DeriveImage()
563 obj_image->image.pitches[1] = obj_surface->psb_surface->stride / 2; in psb_DeriveImage()
564 obj_image->image.pitches[2] = obj_surface->psb_surface->stride / 2; in psb_DeriveImage()
566 obj_image->image.offsets[0] = srf_buf_ofs; in psb_DeriveImage()
567 …obj_image->image.offsets[1] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride; in psb_DeriveImage()
568 …obj_image->image.offsets[2] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride… in psb_DeriveImage()
569 obj_image->image.num_palette_entries = 0; in psb_DeriveImage()
570 obj_image->image.entry_bytes = 0; in psb_DeriveImage()
571 obj_image->image.component_order[0] = 'Y'; in psb_DeriveImage()
572 obj_image->image.component_order[1] = 'V';/* fixed me: packed UV packed here! */ in psb_DeriveImage()
573 obj_image->image.component_order[2] = 'U'; in psb_DeriveImage()
574 obj_image->image.component_order[3] = '\0'; in psb_DeriveImage()
578 obj_image->image.num_planes = 3; in psb_DeriveImage()
579 obj_image->image.pitches[0] = obj_surface->psb_surface->stride; in psb_DeriveImage()
580 obj_image->image.pitches[1] = obj_surface->psb_surface->stride; in psb_DeriveImage()
581 obj_image->image.pitches[2] = obj_surface->psb_surface->stride; in psb_DeriveImage()
583 obj_image->image.offsets[0] = srf_buf_ofs; in psb_DeriveImage()
584 …obj_image->image.offsets[1] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride; in psb_DeriveImage()
585 …obj_image->image.offsets[2] = srf_buf_ofs + obj_surface->height * obj_surface->psb_surface->stride… in psb_DeriveImage()
586 obj_image->image.num_palette_entries = 0; in psb_DeriveImage()
587 obj_image->image.entry_bytes = 0; in psb_DeriveImage()
588 obj_image->image.component_order[0] = 'Y'; in psb_DeriveImage()
589 obj_image->image.component_order[1] = 'U';/* fixed me: packed UV packed here! */ in psb_DeriveImage()
590 obj_image->image.component_order[2] = 'V'; in psb_DeriveImage()
591 obj_image->image.component_order[3] = '\0'; in psb_DeriveImage()
601 memcpy(image, &obj_image->image, sizeof(VAImage)); in psb_DeriveImage()
618 object_buffer_p obj_buffer = BUFFER(obj_image->image.buf); in psb__destroy_image()
622 object_buffer_p obj_buffer = BUFFER(obj_image->image.buf); in psb__destroy_image()
633 VAImageID image in psb_DestroyImage() argument
640 obj_image = IMAGE(image); in psb_DestroyImage()
647 VAImageID image, in psb_SetImagePalette() argument
659 object_image_p obj_image = IMAGE(image); in psb_SetImagePalette()
662 if (obj_image->image.format.fourcc != VA_FOURCC_AI44) { in psb_SetImagePalette()
668 if (obj_image->image.num_palette_entries > 16) { in psb_SetImagePalette()
669 …DEO_DEBUG_ERROR, "image.num_palette_entries(%d) is too big\n", obj_image->image.num_palette_entrie… in psb_SetImagePalette()
672 … memcpy(obj_image->palette, palette, obj_image->image.num_palette_entries * sizeof(unsigned int)); in psb_SetImagePalette()
873 if (obj_image->image.format.fourcc != VA_FOURCC_NV12) { in psb_GetImage()
882 psb__VAImageCheckRegion(obj_surface, &obj_image->image, &src_x, &src_y, &dest_x, &dest_y, in psb_GetImage()
892 object_buffer_p obj_buffer = BUFFER(obj_image->image.buf); in psb_GetImage()
908 switch (obj_image->image.format.fourcc) { in psb_GetImage()
923 dst_u = image_data + obj_image->image.offsets[1], in psb_GetImage()
929 obj_image->image.pitches[0], \ in psb_GetImage()
930 obj_image->image.width / 2, \ in psb_GetImage()
931 obj_image->image.width / 2, \ in psb_GetImage()
937 dst_u = image_data + obj_image->image.offsets[1]; in psb_GetImage()
942 obj_image->image.pitches[0], \ in psb_GetImage()
943 obj_image->image.pitches[1], \ in psb_GetImage()
944 obj_image->image.pitches[1], \ in psb_GetImage()
952 dst_y += obj_image->image.pitches[0]; in psb_GetImage()
957 dst_uv = image_data + obj_image->image.offsets[1]; in psb_GetImage()
959 for (i = 0; i < obj_image->image.height / 2; i++) { in psb_GetImage()
961 dst_uv += obj_image->image.pitches[1]; in psb_GetImage()
975 … dst_y = image_data + obj_image->image.offsets[0] + src_y * obj_image->image.pitches[0] + src_x; in psb_GetImage()
976 … dst_u = image_data + obj_image->image.offsets[1] + src_y * obj_image->image.pitches[1] + src_x; in psb_GetImage()
977 … dst_v = image_data + obj_image->image.offsets[2] + src_y * obj_image->image.pitches[2] + src_x; in psb_GetImage()
985 obj_image->image.pitches[0], in psb_GetImage()
986 obj_image->image.pitches[1], in psb_GetImage()
987 obj_image->image.pitches[2], in psb_GetImage()
1025 if (obj_image->image.format.fourcc != VA_FOURCC_NV12) { in psb_PutImage2()
1031 psb__VAImageCheckRegion(obj_surface, &obj_image->image, &src_x, &src_y, &dest_x, &dest_y, in psb_PutImage2()
1041 object_buffer_p obj_buffer = BUFFER(obj_image->image.buf); in psb_PutImage2()
1053 switch (obj_image->image.format.fourcc) { in psb_PutImage2()
1059 … source_y = image_data + obj_image->image.offsets[0] + src_y * obj_image->image.pitches[0] + src_x; in psb_PutImage2()
1063 source_y += obj_image->image.pitches[0]; in psb_PutImage2()
1068 …src_uv = image_data + obj_image->image.offsets[1] + (src_y / 2) * obj_image->image.pitches[1] + sr… in psb_PutImage2()
1070 for (i = 0; i < obj_image->image.height / 2; i++) { in psb_PutImage2()
1072 src_uv += obj_image->image.pitches[1]; in psb_PutImage2()
1084 … source_y = image_data + obj_image->image.offsets[0] + src_y * obj_image->image.pitches[0] + src_x; in psb_PutImage2()
1085 … source_u = image_data + obj_image->image.offsets[1] + src_y * obj_image->image.pitches[1] + src_x; in psb_PutImage2()
1086 … source_v = image_data + obj_image->image.offsets[2] + src_y * obj_image->image.pitches[2] + src_x; in psb_PutImage2()
1097 source_y += obj_image->image.pitches[0]; in psb_PutImage2()
1102 for (i = 0; i < obj_image->image.height / 2; i++) { in psb_PutImage2()
1106 source_u += obj_image->image.pitches[1]; in psb_PutImage2()
1107 source_v += obj_image->image.pitches[2]; in psb_PutImage2()
1128 VAImage *image, in psb__VAImageCheckRegion2() argument
1141 if (*src_x > image->width) *src_x = image->width - 1; in psb__VAImageCheckRegion2()
1143 if (*src_y > image->height) *src_y = image->height - 1; in psb__VAImageCheckRegion2()
1145 if (((*src_width) + (*src_x)) > image->width) *src_width = image->width - *src_x; in psb__VAImageCheckRegion2()
1146 if (((*src_height) + (*src_y)) > image->height) *src_height = image->height - *src_x; in psb__VAImageCheckRegion2()
1188 if (obj_image->image.format.fourcc != VA_FOURCC_NV12) { in psb_PutImage()
1197 psb__VAImageCheckRegion2(obj_surface, &obj_image->image, in psb_PutImage()
1208 object_buffer_p obj_buffer = BUFFER(obj_image->image.buf); in psb_PutImage()
1219 switch (obj_image->image.format.fourcc) { in psb_PutImage()
1240 source_y = image_data + obj_image->image.offsets[0] in psb_PutImage()
1241 + (src_y + y) * obj_image->image.pitches[0] in psb_PutImage()
1247 source_uv = (unsigned short *)(image_data + obj_image->image.offsets[1] in psb_PutImage()
1248 … + ((src_y + y) / 2) * obj_image->image.pitches[1]) in psb_PutImage()
1298 VAImage *image = &obj_image->image; in psb__LinkSubpictIntoSurface() local
1299 object_buffer_p obj_buffer = BUFFER(image->buf); in psb__LinkSubpictIntoSurface()
1329 surface_subpic->fourcc = image->format.fourcc; in psb__LinkSubpictIntoSurface()
1330 surface_subpic->size = image->data_size; in psb__LinkSubpictIntoSurface()
1336 surface_subpic->width = image->width; in psb__LinkSubpictIntoSurface()
1337 surface_subpic->height = image->height; in psb__LinkSubpictIntoSurface()
1340 surface_subpic->stride = image->pitches[0] / 4; in psb__LinkSubpictIntoSurface()
1343 surface_subpic->stride = image->pitches[0] / 4; in psb__LinkSubpictIntoSurface()
1346 surface_subpic->stride = image->pitches[0]; in psb__LinkSubpictIntoSurface()
1506 VAImageID image, in psb_CreateSubpicture() argument
1517 obj_image = IMAGE(image); in psb_CreateSubpicture()
1521 img_fmt = psb__VAImageCheckFourCC(&obj_image->image.format, psb__SubpicFormat, in psb_CreateSubpicture()
1533 obj_subpic->image_id = obj_image->image.image_id; in psb_CreateSubpicture()
1587 VAImageID image in psb_SetSubpictureImage() argument
1597 obj_image = IMAGE(image); in psb_SetSubpictureImage()
1600 img_fmt = psb__VAImageCheckFourCC(&obj_image->image.format, in psb_SetSubpictureImage()
1614 obj_subpic->image_id = obj_image->image.image_id; in psb_SetSubpictureImage()