Lines Matching refs:ib_cpu
78 static uint32_t *ib_cpu;
166 &ib_handle, (void**)&ib_cpu,
300 memcpy(ib_cpu, vce_session, sizeof(vce_session));
302 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo));
304 memcpy((ib_cpu + len), vce_create, sizeof(vce_create));
305 ib_cpu[len + 8] = ALIGN(enc.width, align);
306 ib_cpu[len + 9] = ALIGN(enc.width, align);
309 ib_cpu[len + 11] = 0x01000001;
311 ib_cpu[len + 11] = 0x01000201;
314 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback));
315 ib_cpu[len + 2] = enc.fb[0].addr >> 32;
316 ib_cpu[len + 3] = enc.fb[0].addr;
329 memcpy((ib_cpu + len), vce_session, sizeof(vce_session));
331 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo));
332 ib_cpu[len + 3] = 2;
333 ib_cpu[len + 6] = 0xffffffff;
335 memcpy((ib_cpu + len), vce_rate_ctrl, sizeof(vce_rate_ctrl));
337 memcpy((ib_cpu + len), vce_config_ext, sizeof(vce_config_ext));
339 memcpy((ib_cpu + len), vce_motion_est, sizeof(vce_motion_est));
341 memcpy((ib_cpu + len), vce_rdo, sizeof(vce_rdo));
343 memcpy((ib_cpu + len), vce_pic_ctrl, sizeof(vce_pic_ctrl));
345 ib_cpu[len + 27] = 0x00000001; /* encSliceMode */
363 memcpy((ib_cpu + len), vce_session, sizeof(vce_session));
365 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo));
367 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer));
368 ib_cpu[len + 2] = enc->bs[0].addr >> 32;
369 ib_cpu[len + 3] = enc->bs[0].addr;
371 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer));
372 ib_cpu[len + 2] = enc->cpb.addr >> 32;
373 ib_cpu[len + 3] = enc->cpb.addr;
375 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer));
377 ib_cpu[len + 2 + i] = luma_size * 1.5 * (i + 2);
379 ib_cpu[len + 10 + i] = luma_size * 1.5;
381 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback));
382 ib_cpu[len + 2] = enc->fb[0].addr >> 32;
383 ib_cpu[len + 3] = enc->fb[0].addr;
385 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode));
386 ib_cpu[len + 9] = luma_offset >> 32;
387 ib_cpu[len + 10] = luma_offset;
388 ib_cpu[len + 11] = chroma_offset >> 32;
389 ib_cpu[len + 12] = chroma_offset;
390 ib_cpu[len + 14] = ALIGN(enc->width, align);
391 ib_cpu[len + 15] = ALIGN(enc->width, align);
392 ib_cpu[len + 73] = luma_size * 1.5;
393 ib_cpu[len + 74] = luma_size * 2.5;
414 memcpy((ib_cpu + len), vce_session, sizeof(vce_session));
417 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo));
419 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer));
420 ib_cpu[len + 2] = enc->bs[1].addr >> 32;
421 ib_cpu[len + 3] = enc->bs[1].addr;
423 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer));
424 ib_cpu[len + 2] = enc->cpb.addr >> 32;
425 ib_cpu[len + 3] = enc->cpb.addr;
427 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer));
429 ib_cpu[len + 2 + i] = luma_size * 1.5 * (i + 2);
431 ib_cpu[len + 10 + i] = luma_size * 1.5;
433 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback));
434 ib_cpu[len + 2] = enc->fb[1].addr >> 32;
435 ib_cpu[len + 3] = enc->fb[1].addr;
437 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode));
438 ib_cpu[len + 2] = 0;
439 ib_cpu[len + 9] = luma_offset >> 32;
440 ib_cpu[len + 10] = luma_offset;
441 ib_cpu[len + 11] = chroma_offset >> 32;
442 ib_cpu[len + 12] = chroma_offset;
443 ib_cpu[len + 14] = ALIGN(enc->width, align);
444 ib_cpu[len + 15] = ALIGN(enc->width, align);
445 ib_cpu[len + 18] = 0;
446 ib_cpu[len + 19] = 0;
447 ib_cpu[len + 56] = 3;
448 ib_cpu[len + 57] = 0;
449 ib_cpu[len + 58] = 0;
450 ib_cpu[len + 59] = luma_size * 1.5;
451 ib_cpu[len + 60] = luma_size * 2.5;
452 ib_cpu[len + 73] = 0;
453 ib_cpu[len + 74] = luma_size;
454 ib_cpu[len + 81] = 1;
455 ib_cpu[len + 82] = 1;
578 memcpy((ib_cpu + len), vce_session, sizeof(vce_session));
580 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo));
582 memcpy((ib_cpu + len), vce_bs_buffer, sizeof(vce_bs_buffer));
583 ib_cpu[len + 2] = enc->bs[0].addr >> 32;
584 ib_cpu[len + 3] = enc->bs[0].addr;
586 memcpy((ib_cpu + len), vce_context_buffer, sizeof(vce_context_buffer));
587 ib_cpu[len + 2] = enc->cpb.addr >> 32;
588 ib_cpu[len + 3] = enc->cpb.addr;
590 memcpy((ib_cpu + len), vce_aux_buffer, sizeof(vce_aux_buffer));
592 ib_cpu[len + 2 + i] = luma_size * 1.5 * (i + 2);
594 ib_cpu[len + 10 + i] = luma_size * 1.5;
596 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback));
597 ib_cpu[len + 2] = enc->fb[0].addr >> 32;
598 ib_cpu[len + 3] = enc->fb[0].addr;
600 memcpy((ib_cpu + len), vce_mv_buffer, sizeof(vce_mv_buffer));
601 ib_cpu[len + 2] = mv_ref_luma_offset >> 32;
602 ib_cpu[len + 3] = mv_ref_luma_offset;
603 ib_cpu[len + 4] = ALIGN(enc->width, align);
604 ib_cpu[len + 5] = ALIGN(enc->width, align);
605 ib_cpu[len + 6] = luma_size;
606 ib_cpu[len + 7] = enc->mvb.addr >> 32;
607 ib_cpu[len + 8] = enc->mvb.addr;
609 memcpy((ib_cpu + len), vce_encode, sizeof(vce_encode));
610 ib_cpu[len + 2] = 0;
611 ib_cpu[len + 3] = 0;
612 ib_cpu[len + 4] = 0x154000;
613 ib_cpu[len + 9] = luma_offset >> 32;
614 ib_cpu[len + 10] = luma_offset;
615 ib_cpu[len + 11] = chroma_offset >> 32;
616 ib_cpu[len + 12] = chroma_offset;
617 ib_cpu[len + 13] = ALIGN(enc->height, 16);;
618 ib_cpu[len + 14] = ALIGN(enc->width, align);
619 ib_cpu[len + 15] = ALIGN(enc->width, align);
621 ib_cpu[len + 16] = 0x01010000;
622 ib_cpu[len + 18] = 0; /* encPicType */
623 ib_cpu[len + 19] = 0; /* encIdrFlag */
624 ib_cpu[len + 20] = 0; /* encIdrPicId */
625 ib_cpu[len + 21] = 0; /* encMGSKeyPic */
626 ib_cpu[len + 22] = 0; /* encReferenceFlag */
627 ib_cpu[len + 23] = 0; /* encTemporalLayerIndex */
628 ib_cpu[len + 55] = 0; /* pictureStructure */
629 ib_cpu[len + 56] = 0; /* encPicType -ref[0] */
630 ib_cpu[len + 61] = 0; /* pictureStructure */
631 ib_cpu[len + 62] = 0; /* encPicType -ref[1] */
632 ib_cpu[len + 67] = 0; /* pictureStructure */
633 ib_cpu[len + 68] = 0; /* encPicType -ref1 */
634 ib_cpu[len + 81] = 1; /* frameNumber */
635 ib_cpu[len + 82] = 2; /* pictureOrderCount */
636 ib_cpu[len + 83] = 0xffffffff; /* numIPicRemainInRCGOP */
637 ib_cpu[len + 84] = 0xffffffff; /* numPPicRemainInRCGOP */
638 ib_cpu[len + 85] = 0xffffffff; /* numBPicRemainInRCGOP */
639 ib_cpu[len + 86] = 0xffffffff; /* numIRPicRemainInRCGOP */
640 ib_cpu[len + 87] = 0; /* remainedIntraRefreshPictures */
748 memcpy(ib_cpu, vce_session, sizeof(vce_session));
750 memcpy((ib_cpu + len), vce_taskinfo, sizeof(vce_taskinfo));
751 ib_cpu[len + 3] = 1;
753 memcpy((ib_cpu + len), vce_feedback, sizeof(vce_feedback));
754 ib_cpu[len + 2] = enc.fb[0].addr >> 32;
755 ib_cpu[len + 3] = enc.fb[0].addr;
757 memcpy((ib_cpu + len), vce_destroy, sizeof(vce_destroy));