chore: Rename Dolby for sdk release requirement

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ia5293f7963937ce57c123590abc32d208d181602
This commit is contained in:
Herman Chen 2025-08-11 09:58:48 +08:00
parent 45246e9c89
commit a91e70bd23
5 changed files with 11 additions and 11 deletions

View file

@ -2418,7 +2418,7 @@ static RK_S32 mpp_av1_get_dlby_rpu(AV1Context *ctx, BitReadCtx_t *gb)
}
hdr_dynamic_meta->size = mpp_writer_bytes(&bit_ctx);
hdr_dynamic_meta->hdr_fmt = DOLBY;
hdr_dynamic_meta->hdr_fmt = DLBY;
av1d_dbg(AV1D_DBG_STRMIN, "dlby rpu size %d -> %d\n",
emdf_payload_size, hdr_dynamic_meta->size);

View file

@ -342,7 +342,7 @@ void mpp_h264d_fill_dynamic_meta(H264dCurCtx_t *p_Cur, const RK_U8 *data, RK_U32
{
MppFrameHdrDynamicMeta *hdr_dynamic_meta = p_Cur->hdr_dynamic_meta;
if (hdr_fmt == DOLBY)
if (hdr_fmt == DLBY)
size += 4;
if (hdr_dynamic_meta && (hdr_dynamic_meta->size < size)) {
@ -359,7 +359,7 @@ void mpp_h264d_fill_dynamic_meta(H264dCurCtx_t *p_Cur, const RK_U8 *data, RK_U32
}
}
if (size && data) {
if (hdr_fmt == DOLBY) {
if (hdr_fmt == DLBY) {
RK_U8 start_code[4] = {0, 0, 0, 1};
memcpy((RK_U8*)hdr_dynamic_meta->data, start_code, 4);
@ -443,9 +443,9 @@ static MPP_RET store_cur_nalu(H264dCurCtx_t *p_Cur, H264dCurStream_t *p_strm, H2
dxva_ctx->strm_offset += add_size;
}
/* Dolby Vision RPUs masquerade as unregistered NALs of type 28. */
/* Dlby Vision RPUs masquerade as unregistered NALs of type 28. */
if (p_Cur->p_Dec->cfg->base.enable_hdr_meta && p_strm->nalu_type == H264_NALU_TYPE_UNSPECIFIED28)
mpp_h264d_fill_dynamic_meta(p_Cur, p_strm->nalu_buf + 2, p_strm->nalu_len - 2, DOLBY);
mpp_h264d_fill_dynamic_meta(p_Cur, p_strm->nalu_buf + 2, p_strm->nalu_len - 2, DLBY);
if (h264d_debug & H264D_DBG_WRITE_ES_EN) {
H264dInputCtx_t *p_Inp = p_Cur->p_Inp;

View file

@ -1752,7 +1752,7 @@ void mpp_hevc_fill_dynamic_meta(HEVCContext *s, const RK_U8 *data, RK_U32 size,
}
if (size && data) {
switch (hdr_fmt) {
case DOLBY: {
case DLBY: {
RK_U8 start_code[4] = {0, 0, 0, 1};
memcpy((RK_U8*)hdr_dynamic_meta->data, start_code, 4);
@ -1797,13 +1797,13 @@ static RK_S32 check_rpus(HEVCContext *s)
/*
* Check for RPU delimiter.
*
* Dolby Vision RPUs masquerade as unregistered NALs of type 62.
* Dlby Vision RPUs masquerade as unregistered NALs of type 62.
*
* We have to do this check here an create the rpu buffer, since RPUs are appended
* to the end of an AU; they are the last non-EOB/EOS NAL in the AU.
*/
if (nal_unit_type == NAL_UNSPEC62)
mpp_hevc_fill_dynamic_meta(s, nal->data + 2, gb.bytes_left_ + 4, DOLBY);
mpp_hevc_fill_dynamic_meta(s, nal->data + 2, gb.bytes_left_ + 4, DLBY);
}
return 0;
__BITREAD_ERR: