![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * 0004 * Copyright (C) 2005 Mike Isely <isely@pobox.com> 0005 */ 0006 #ifndef __PVRUSB2_STD_H 0007 #define __PVRUSB2_STD_H 0008 0009 #include <linux/videodev2.h> 0010 0011 // Convert string describing one or more video standards into a mask of V4L 0012 // standard bits. Return true if conversion succeeds otherwise return 0013 // false. String is expected to be of the form: C1-x/y;C2-a/b where C1 and 0014 // C2 are color system names (e.g. "PAL", "NTSC") and x, y, a, and b are 0015 // modulation schemes (e.g. "M", "B", "G", etc). 0016 int pvr2_std_str_to_id(v4l2_std_id *idPtr,const char *bufPtr, 0017 unsigned int bufSize); 0018 0019 // Convert any arbitrary set of video standard bits into an unambiguous 0020 // readable string. Return value is the number of bytes consumed in the 0021 // buffer. The formatted string is of a form that can be parsed by our 0022 // sibling std_std_to_id() function. 0023 unsigned int pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize, 0024 v4l2_std_id id); 0025 0026 // Create an array of suitable v4l2_standard structures given a bit mask of 0027 // video standards to support. The array is allocated from the heap, and 0028 // the number of elements is returned in the first argument. 0029 struct v4l2_standard *pvr2_std_create_enum(unsigned int *countptr, 0030 v4l2_std_id id); 0031 0032 // Return mask of which video standard bits are valid 0033 v4l2_std_id pvr2_std_get_usable(void); 0034 0035 #endif /* __PVRUSB2_STD_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |