mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
media: vicodec: Introducing stateless fwht defs and structs
Add structs and definitions needed to implement stateless decoder for fwht and add I/P-frames QP controls to the public api. Signed-off-by: Dafna Hirschfeld <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
ee3963c492
commit
2495f39ce1
6 changed files with 65 additions and 29 deletions
31
include/media/fwht-ctrls.h
Normal file
31
include/media/fwht-ctrls.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* These are the FWHT state controls for use with stateless FWHT
|
||||
* codec drivers.
|
||||
*
|
||||
* It turns out that these structs are not stable yet and will undergo
|
||||
* more changes. So keep them private until they are stable and ready to
|
||||
* become part of the official public API.
|
||||
*/
|
||||
|
||||
#ifndef _FWHT_CTRLS_H_
|
||||
#define _FWHT_CTRLS_H_
|
||||
|
||||
#define V4L2_CTRL_TYPE_FWHT_PARAMS 0x0105
|
||||
|
||||
#define V4L2_CID_MPEG_VIDEO_FWHT_PARAMS (V4L2_CID_MPEG_BASE + 292)
|
||||
|
||||
struct v4l2_ctrl_fwht_params {
|
||||
__u64 backward_ref_ts;
|
||||
__u32 version;
|
||||
__u32 width;
|
||||
__u32 height;
|
||||
__u32 flags;
|
||||
__u32 colorspace;
|
||||
__u32 xfer_func;
|
||||
__u32 ycbcr_enc;
|
||||
__u32 quantization;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -23,10 +23,11 @@
|
|||
#include <media/media-request.h>
|
||||
|
||||
/*
|
||||
* Include the mpeg2 stateless codec compound control definitions.
|
||||
* Include the mpeg2 and fwht stateless codec compound control definitions.
|
||||
* This will move to the public headers once this API is fully stable.
|
||||
*/
|
||||
#include <media/mpeg2-ctrls.h>
|
||||
#include <media/fwht-ctrls.h>
|
||||
|
||||
/* forward references */
|
||||
struct file;
|
||||
|
|
@ -49,6 +50,7 @@ struct poll_table_struct;
|
|||
* @p_char: Pointer to a string.
|
||||
* @p_mpeg2_slice_params: Pointer to a MPEG2 slice parameters structure.
|
||||
* @p_mpeg2_quantization: Pointer to a MPEG2 quantization data structure.
|
||||
* @p_fwht_params: Pointer to a FWHT stateless parameters structure.
|
||||
* @p: Pointer to a compound value.
|
||||
*/
|
||||
union v4l2_ctrl_ptr {
|
||||
|
|
@ -60,6 +62,7 @@ union v4l2_ctrl_ptr {
|
|||
char *p_char;
|
||||
struct v4l2_ctrl_mpeg2_slice_params *p_mpeg2_slice_params;
|
||||
struct v4l2_ctrl_mpeg2_quantization *p_mpeg2_quantization;
|
||||
struct v4l2_ctrl_fwht_params *p_fwht_params;
|
||||
void *p;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue