Lines Matching refs:pBuffer

593     VAEncPictureParameterBufferH264 *pBuffer;
605 pBuffer = (VAEncPictureParameterBufferH264 *) obj_buffer->buffer_data;
609 ctx->ref_surface = SURFACE(pBuffer->ReferenceFrames[0].picture_id);
610 ctx->dest_surface = SURFACE(pBuffer->CurrPic.picture_id);
611 ctx->coded_buf = BUFFER(pBuffer->coded_buf);
613 //ASSERT(ctx->Width == pBuffer->picture_width);
614 //ASSERT(ctx->Height == pBuffer->picture_height);
618 free(pBuffer);
709 free(pBuffer);
714 VAEncSliceParameterBuffer *pBuffer)
731 if (pBuffer->slice_height > (ctx->Height / 16) ||
732 pBuffer->start_row_number > (ctx->Height / 16) ||
733 (pBuffer->slice_height + pBuffer->start_row_number) > (ctx->Height / 16)) {
735 pBuffer->slice_height, pBuffer->start_row_number);
738 MBSkipRun = (pBuffer->slice_height * ctx->Width) / 16;
739 deblock_idc = pBuffer->slice_flags.bits.disable_deblocking_filter_idc;
745 is_intra = (ctx->sRCParams.RCEnable && ctx->sRCParams.FrameSkip) ? 0 : pBuffer->slice_flags.bits.is_intra;
747 FirstMBAddress = (pBuffer->start_row_number * ctx->Width) / 16;
758 pBuffer->slice_flags.bits.disable_deblocking_filter_idc,
785 if ((pBuffer->start_row_number == 0) && pBuffer->slice_flags.bits.is_intra) {
789 slice_param_idx = (pBuffer->slice_flags.bits.is_intra ? 0 : 1) * ctx->slice_param_num
791 if (VAEncSliceParameter_Equal(&ctx->slice_param_cache[slice_param_idx], pBuffer) == 0) {
794 pBuffer, sizeof(VAEncSliceParameterBuffer));
798 pBuffer->start_row_number * 16,
799 pBuffer->slice_height * 16,
800 pBuffer->slice_flags.bits.is_intra,
807 pBuffer->slice_flags.bits.is_intra,
808 pBuffer->start_row_number * 16,
811 pBuffer->slice_height * 16,
824 VAEncSliceParameterBuffer *pBuffer,
831 pBuffer->start_row_number = pBufferH264->macroblock_address / picture_width_in_mbs;
832 pBuffer->slice_height = pBufferH264->num_macroblocks / picture_width_in_mbs;
833 pBuffer->slice_flags.bits.is_intra =
835 pBuffer->slice_flags.bits.disable_deblocking_filter_idc = pBufferH264->disable_deblocking_filter_idc;
838 pBuffer++;
848 VAEncSliceParameterBuffer *pBuf_per_core = NULL, *pBuffer = NULL;
867 pBuffer = calloc(obj_buffer->num_elements, sizeof(VAEncSliceParameterBuffer));
869 if (pBuffer == NULL) {
878 pBuffer,
883 pBuffer = (VAEncSliceParameterBuffer *) obj_buffer->buffer_data;
912 free(pBuffer);
942 pBuf_per_core = pBuffer;
944 pBuffer = pBuf_per_core;
946 vaStatus = pnw__H264ES_encode_one_slice(ctx, pBuffer);
956 pBuffer += slice_per_core;
964 pBuffer -= slice_per_core;
965 pBuffer ++;
966 vaStatus = pnw__H264ES_encode_one_slice(ctx, pBuffer);
971 free(pBuffer);
983 VAEncMiscParameterBuffer *pBuffer;
997 pBuffer = (VAEncMiscParameterBuffer *) obj_buffer->buffer_data;
1001 && (pBuffer->type != VAEncMiscParameterTypeHRD
1002 && pBuffer->type != VAEncMiscParameterTypeRateControl
1003 && pBuffer->type != VAEncMiscParameterTypeFrameRate)) {
1005 pBuffer->type);
1011 switch (pBuffer->type) {
1013 frame_rate_param = (VAEncMiscParameterFrameRate *)pBuffer->data;
1034 rate_control_param = (VAEncMiscParameterRateControl *)pBuffer->data;
1163 max_slice_size_param = (VAEncMiscParameterMaxSliceSize *)pBuffer->data;
1183 air_param = (VAEncMiscParameterAIR *)pBuffer->data;
1208 hrd_param = (VAEncMiscParameterHRD *)pBuffer->data;