Loading drivers/media/platform/msm/vidc/hfi_packetization.c +13 −0 Original line number Diff line number Diff line Loading @@ -1365,6 +1365,19 @@ int create_pkt_cmd_session_set_property( memcpy(hfi, (struct hfi_intra_period *) pdata, sizeof(struct hfi_intra_period)); pkt->size += sizeof(struct hfi_intra_period); if (hfi->bframes) { struct hfi_enable *hfi_enable; u32 *prop_type; prop_type = (u32 *)((u8 *)&pkt->rg_property_data[0] + sizeof(u32) + sizeof(struct hfi_intra_period)); *prop_type = HFI_PROPERTY_PARAM_VENC_ADAPTIVE_B; hfi_enable = (struct hfi_enable *)(prop_type + 1); hfi_enable->enable = true; pkt->num_properties = 2; pkt->size += sizeof(struct hfi_enable) + sizeof(u32); } break; } case HAL_CONFIG_VENC_IDR_PERIOD: Loading Loading
drivers/media/platform/msm/vidc/hfi_packetization.c +13 −0 Original line number Diff line number Diff line Loading @@ -1365,6 +1365,19 @@ int create_pkt_cmd_session_set_property( memcpy(hfi, (struct hfi_intra_period *) pdata, sizeof(struct hfi_intra_period)); pkt->size += sizeof(struct hfi_intra_period); if (hfi->bframes) { struct hfi_enable *hfi_enable; u32 *prop_type; prop_type = (u32 *)((u8 *)&pkt->rg_property_data[0] + sizeof(u32) + sizeof(struct hfi_intra_period)); *prop_type = HFI_PROPERTY_PARAM_VENC_ADAPTIVE_B; hfi_enable = (struct hfi_enable *)(prop_type + 1); hfi_enable->enable = true; pkt->num_properties = 2; pkt->size += sizeof(struct hfi_enable) + sizeof(u32); } break; } case HAL_CONFIG_VENC_IDR_PERIOD: Loading