Home | History | Annotate | Download | only in src

Lines Matching refs:VAStatus

122 VAStatus tng__alloc_init_buffer(
129 VAStatus vaStatus = VA_STATUS_SUCCESS;
130 vaStatus = psb_buffer_create(driver_data, size, type, buf);
131 if (VA_STATUS_SUCCESS != vaStatus) {
133 return vaStatus;
136 vaStatus = psb_buffer_map(buf, &pch_virt_addr);
138 if ((vaStatus) || (pch_virt_addr == NULL)) {
146 return vaStatus;
149 static VAStatus tng__alloc_context_buffer(context_ENC_p ctx, IMG_UINT8 ui8IsJpeg, IMG_UINT32 ui32StreamID)
151 VAStatus vaStatus = VA_STATUS_SUCCESS;
181 return vaStatus;
294 return vaStatus;
426 VAStatus tng__patch_hw_profile(context_ENC_p ctx)
564 static VAStatus tng__init_rc_params(context_ENC_p ctx, object_config_p obj_config)
633 static VAStatus tng__get_encoder_caps(context_ENC_p ctx)
687 static VAStatus tng__init_context(context_ENC_p ctx)
689 VAStatus vaStatus = 0;
769 vaStatus = tng__patch_hw_profile(ctx);
770 if (vaStatus != VA_STATUS_SUCCESS) {
777 VAStatus tng_CreateContext(
782 VAStatus vaStatus = 0;
790 vaStatus = VA_STATUS_ERROR_ALLOCATION_FAILED;
792 return vaStatus;
804 vaStatus = tng__init_context(ctx);
805 if (vaStatus != VA_STATUS_SUCCESS) {
809 vaStatus = tng__init_rc_params(ctx, obj_config);
810 if (vaStatus != VA_STATUS_SUCCESS) {
824 vaStatus = tng__alloc_context_buffer(ctx, is_JPEG, 0);
825 if (vaStatus != VA_STATUS_SUCCESS) {
830 return vaStatus;
833 VAStatus tng_BeginPicture(context_ENC_p ctx)
835 VAStatus vaStatus = VA_STATUS_SUCCESS;
846 vaStatus = tng__get_encoder_caps(ctx);
847 if (vaStatus != VA_STATUS_SUCCESS) {
858 vaStatus = VA_STATUS_ERROR_UNKNOWN;
859 return vaStatus;
871 return vaStatus;
874 static VAStatus tng__provide_buffer_BFrames(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex)
918 VAStatus tng__provide_buffer_PFrames(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex)
2376 static VAStatus tng__prepare_templates(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex)
3156 static VAStatus tng__validate_params(context_ENC_p ctx)
3158 VAStatus vaStatus = VA_STATUS_SUCCESS;
3228 return vaStatus;
3231 static VAStatus tng__validate_busize(context_ENC_p ctx)
3298 static VAStatus tng__cmdbuf_new_codec(context_ENC_p ctx)
3300 VAStatus vaStatus = VA_STATUS_SUCCESS;
3313 return vaStatus;
3316 static VAStatus tng__cmdbuf_doheader(context_ENC_p ctx)
3318 VAStatus vaStatus = VA_STATUS_SUCCESS;
3328 return vaStatus;
3331 static VAStatus tng__cmdbuf_lowpower(context_ENC_p ctx)
3333 VAStatus vaStatus = VA_STATUS_SUCCESS;
3344 return vaStatus;
3347 static VAStatus tng__cmdbuf_load_bias(context_ENC_p ctx)
3349 VAStatus vaStatus = VA_STATUS_SUCCESS;
3354 vaStatus = tng__generate_bias(ctx);
3355 if (vaStatus != VA_STATUS_SUCCESS) {
3356 drv_debug_msg(VIDEO_DEBUG_ERROR, "%s: generate bias params\n", __FUNCTION__, vaStatus);
3359 vaStatus = tng_load_bias(ctx, IMG_INTER_P);
3360 if (vaStatus != VA_STATUS_SUCCESS) {
3361 drv_debug_msg(VIDEO_DEBUG_ERROR, "%s: load bias params\n", __FUNCTION__, vaStatus);
3363 return vaStatus;
3366 static VAStatus tng__cmdbuf_setvideo(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex)
3368 VAStatus vaStatus = VA_STATUS_SUCCESS;
3377 return vaStatus;
3401 static VAStatus tng__update_ratecontrol(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex)
3403 VAStatus vaStatus = VA_STATUS_SUCCESS;
3410 return vaStatus;
3449 return vaStatus;
3452 static VAStatus tng__update_frametype(context_ENC_p ctx, IMG_FRAME_TYPE eFrameType)
3454 VAStatus vaStatus = VA_STATUS_SUCCESS;
3464 return vaStatus;
3467 static VAStatus tng__cmdbuf_send_picmgmt(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex)
3469 VAStatus vaStatus = VA_STATUS_SUCCESS;
3473 return vaStatus;
3484 return vaStatus;
3488 static VAStatus tng__cmdbuf_provide_buffer(context_ENC_p ctx, IMG_UINT32 ui32StreamIndex)
3490 VAStatus vaStatus = VA_STATUS_SUCCESS;
3520 return vaStatus;
3523 VAStatus tng__set_ctx_buf(context_ENC_p ctx, IMG_UINT32 __maybe_unused ui32StreamID)
3525 VAStatus vaStatus = VA_STATUS_SUCCESS;
3528 vaStatus = tng__validate_params(ctx);
3529 if (vaStatus != VA_STATUS_SUCCESS) {
3533 vaStatus = tng__validate_busize(ctx);
3534 if (vaStatus != VA_STATUS_SUCCESS) {
3542 vaStatus = tng__alloc_context_buffer(ctx, ui8IsJpeg, 0);
3543 if (vaStatus != VA_STATUS_SUCCESS) {
3546 return vaStatus;
3549 static VAStatus tng__set_headers (context_ENC_p ctx, IMG_UINT32 __maybe_unused ui32StreamID)
3551 VAStatus vaStatus = VA_STATUS_SUCCESS;
3554 vaStatus = tng__prepare_templates(ctx, 0);
3555 if (vaStatus != VA_STATUS_SUCCESS) {
3562 return vaStatus;
3565 static VAStatus tng__set_cmd_buf(context_ENC_p ctx, IMG_UINT32 __maybe_unused ui32StreamID)
3567 VAStatus vaStatus = VA_STATUS_SUCCESS;
3569 vaStatus = tng__cmdbuf_new_codec(ctx);
3570 if (vaStatus != VA_STATUS_SUCCESS) {
3574 vaStatus = tng__cmdbuf_lowpower(ctx);
3575 if (vaStatus != VA_STATUS_SUCCESS) {
3579 vaStatus = tng__cmdbuf_load_bias(ctx);
3580 if (vaStatus != VA_STATUS_SUCCESS) {
3584 vaStatus = tng__cmdbuf_setvideo(ctx, 0);
3585 if (vaStatus != VA_STATUS_SUCCESS) {
3588 return vaStatus;
3591 VAStatus tng__end_one_frame(context_ENC_p ctx, IMG_UINT32 ui32StreamID)
3593 VAStatus vaStatus = VA_STATUS_SUCCESS;
3615 return vaStatus;
3618 VAStatus tng_EndPicture(context_ENC_p ctx)
3620 VAStatus vaStatus = VA_STATUS_SUCCESS;
3630 vaStatus = tng__set_ctx_buf(ctx, 0);
3631 if (vaStatus != VA_STATUS_SUCCESS) {
3634 vaStatus = tng__set_headers(ctx, 0);
3635 if (vaStatus != VA_STATUS_SUCCESS) {
3639 vaStatus = tng__set_cmd_buf(ctx, 0);
3640 if (vaStatus != VA_STATUS_SUCCESS) {
3648 vaStatus = tng__cmdbuf_lowpower(ctx);
3649 if (vaStatus != VA_STATUS_SUCCESS) {
3656 vaStatus = tng__update_ratecontrol(ctx, ctx->ui32StreamID);
3657 if (vaStatus != VA_STATUS_SUCCESS) {
3663 vaStatus = tng__update_frametype(ctx, IMG_FRAME_IDR);
3664 if (vaStatus != VA_STATUS_SUCCESS) {
3670 vaStatus = tng__cmdbuf_provide_buffer(ctx, ctx->ui32StreamID);
3671 if (vaStatus != VA_STATUS_SUCCESS) {
3685 vaStatus = tng__cmdbuf_doheader(ctx);
3686 if (vaStatus != VA_STATUS_SUCCESS) {
3709 vaStatus = tng__end_one_frame(ctx, 0);
3710 if (vaStatus != VA_STATUS_SUCCESS) {
3715 vaStatus = VA_STATUS_ERROR_UNKNOWN;
3721 return vaStatus;