Server IP : 104.21.38.3 / Your IP : 172.70.188.20 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-142/include/media/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Helper functions for H264 codecs. * * Copyright (c) 2019 Collabora, Ltd. * * Author: Boris Brezillon <[email protected]> */ #ifndef _MEDIA_V4L2_H264_H #define _MEDIA_V4L2_H264_H #include <media/v4l2-ctrls.h> /** * struct v4l2_h264_reflist_builder - Reference list builder object * * @refs.pic_order_count: reference picture order count * @refs.frame_num: reference frame number * @refs.pic_num: reference picture number * @refs.longterm: set to true for a long term reference * @refs: array of references * @cur_pic_order_count: picture order count of the frame being decoded * @unordered_reflist: unordered list of references. Will be used to generate * ordered P/B0/B1 lists * @num_valid: number of valid references in the refs array * * This object stores the context of the P/B0/B1 reference list builder. * This procedure is described in section '8.2.4 Decoding process for reference * picture lists construction' of the H264 spec. */ struct v4l2_h264_reflist_builder { struct { s32 pic_order_count; int frame_num; u32 pic_num; u16 longterm : 1; } refs[V4L2_H264_NUM_DPB_ENTRIES]; s32 cur_pic_order_count; u8 unordered_reflist[V4L2_H264_NUM_DPB_ENTRIES]; u8 num_valid; }; void v4l2_h264_init_reflist_builder(struct v4l2_h264_reflist_builder *b, const struct v4l2_ctrl_h264_decode_params *dec_params, const struct v4l2_ctrl_h264_sps *sps, const struct v4l2_h264_dpb_entry dpb[V4L2_H264_NUM_DPB_ENTRIES]); /** * v4l2_h264_build_b_ref_lists() - Build the B0/B1 reference lists * * @builder: reference list builder context * @b0_reflist: 16-bytes array used to store the B0 reference list. Each entry * is an index in the DPB * @b1_reflist: 16-bytes array used to store the B1 reference list. Each entry * is an index in the DPB * * This functions builds the B0/B1 reference lists. This procedure is described * in section '8.2.4 Decoding process for reference picture lists construction' * of the H264 spec. This function can be used by H264 decoder drivers that * need to pass B0/B1 reference lists to the hardware. */ void v4l2_h264_build_b_ref_lists(const struct v4l2_h264_reflist_builder *builder, u8 *b0_reflist, u8 *b1_reflist); /** * v4l2_h264_build_p_ref_list() - Build the P reference list * * @builder: reference list builder context * @reflist: 16-bytes array used to store the P reference list. Each entry * is an index in the DPB * * This functions builds the P reference lists. This procedure is describe in * section '8.2.4 Decoding process for reference picture lists construction' * of the H264 spec. This function can be used by H264 decoder drivers that * need to pass a P reference list to the hardware. */ void v4l2_h264_build_p_ref_list(const struct v4l2_h264_reflist_builder *builder, u8 *reflist); #endif /* _MEDIA_V4L2_H264_H */