brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · d8b4c6d Raw
36 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 *4 *  Copyright (C) 2005 Mike Isely <isely@pobox.com>5 */6#ifndef __PVRUSB2_STD_H7#define __PVRUSB2_STD_H8 9#include <linux/videodev2.h>10 11// Convert string describing one or more video standards into a mask of V4L12// standard bits.  Return true if conversion succeeds otherwise return13// false.  String is expected to be of the form: C1-x/y;C2-a/b where C1 and14// C2 are color system names (e.g. "PAL", "NTSC") and x, y, a, and b are15// modulation schemes (e.g. "M", "B", "G", etc).16int pvr2_std_str_to_id(v4l2_std_id *idPtr,const char *bufPtr,17		       unsigned int bufSize);18 19// Convert any arbitrary set of video standard bits into an unambiguous20// readable string.  Return value is the number of bytes consumed in the21// buffer.  The formatted string is of a form that can be parsed by our22// sibling std_std_to_id() function.23unsigned int pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize,24				v4l2_std_id id);25 26// Create an array of suitable v4l2_standard structures given a bit mask of27// video standards to support.  The array is allocated from the heap, and28// the number of elements is returned in the first argument.29struct v4l2_standard *pvr2_std_create_enum(unsigned int *countptr,30					   v4l2_std_id id);31 32// Return mask of which video standard bits are valid33v4l2_std_id pvr2_std_get_usable(void);34 35#endif /* __PVRUSB2_STD_H */36