Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
video.h File Reference
#include <linux/types.h>
#include <stdint.h>
#include <time.h>

Go to the source code of this file.

Data Structures

struct  video_size_t
 
struct  video_command
 
struct  video_event
 
struct  video_status
 
struct  video_still_picture
 
struct  video_highlight
 
struct  video_spu
 
struct  video_spu_palette
 
struct  video_navi_pack
 

Macros

#define VIDEO_CMD_PLAY   (0)
 
#define VIDEO_CMD_STOP   (1)
 
#define VIDEO_CMD_FREEZE   (2)
 
#define VIDEO_CMD_CONTINUE   (3)
 
#define VIDEO_CMD_FREEZE_TO_BLACK   (1 << 0)
 
#define VIDEO_CMD_STOP_TO_BLACK   (1 << 0)
 
#define VIDEO_CMD_STOP_IMMEDIATELY   (1 << 1)
 
#define VIDEO_PLAY_FMT_NONE   (0)
 
#define VIDEO_PLAY_FMT_GOP   (1)
 
#define VIDEO_VSYNC_FIELD_UNKNOWN   (0)
 
#define VIDEO_VSYNC_FIELD_ODD   (1)
 
#define VIDEO_VSYNC_FIELD_EVEN   (2)
 
#define VIDEO_VSYNC_FIELD_PROGRESSIVE   (3)
 
#define VIDEO_EVENT_SIZE_CHANGED   1
 
#define VIDEO_EVENT_FRAME_RATE_CHANGED   2
 
#define VIDEO_EVENT_DECODER_STOPPED   3
 
#define VIDEO_EVENT_VSYNC   4
 
#define VIDEO_CAP_MPEG1   1
 
#define VIDEO_CAP_MPEG2   2
 
#define VIDEO_CAP_SYS   4
 
#define VIDEO_CAP_PROG   8
 
#define VIDEO_CAP_SPU   16
 
#define VIDEO_CAP_NAVI   32
 
#define VIDEO_CAP_CSS   64
 
#define VIDEO_STOP   _IO('o', 21)
 
#define VIDEO_PLAY   _IO('o', 22)
 
#define VIDEO_FREEZE   _IO('o', 23)
 
#define VIDEO_CONTINUE   _IO('o', 24)
 
#define VIDEO_SELECT_SOURCE   _IO('o', 25)
 
#define VIDEO_SET_BLANK   _IO('o', 26)
 
#define VIDEO_GET_STATUS   _IOR('o', 27, struct video_status)
 
#define VIDEO_GET_EVENT   _IOR('o', 28, struct video_event)
 
#define VIDEO_SET_DISPLAY_FORMAT   _IO('o', 29)
 
#define VIDEO_STILLPICTURE   _IOW('o', 30, struct video_still_picture)
 
#define VIDEO_FAST_FORWARD   _IO('o', 31)
 
#define VIDEO_SLOWMOTION   _IO('o', 32)
 
#define VIDEO_GET_CAPABILITIES   _IOR('o', 33, unsigned int)
 
#define VIDEO_CLEAR_BUFFER   _IO('o', 34)
 
#define VIDEO_SET_ID   _IO('o', 35)
 
#define VIDEO_SET_STREAMTYPE   _IO('o', 36)
 
#define VIDEO_SET_FORMAT   _IO('o', 37)
 
#define VIDEO_SET_SYSTEM   _IO('o', 38)
 
#define VIDEO_SET_HIGHLIGHT   _IOW('o', 39, video_highlight_t)
 
#define VIDEO_SET_SPU   _IOW('o', 50, video_spu_t)
 
#define VIDEO_SET_SPU_PALETTE   _IOW('o', 51, video_spu_palette_t)
 
#define VIDEO_GET_NAVI   _IOR('o', 52, video_navi_pack_t)
 
#define VIDEO_SET_ATTRIBUTES   _IO('o', 53)
 
#define VIDEO_GET_SIZE   _IOR('o', 55, video_size_t)
 
#define VIDEO_GET_FRAME_RATE   _IOR('o', 56, unsigned int)
 
#define VIDEO_GET_PTS   _IOR('o', 57, __u64)
 
#define VIDEO_GET_FRAME_COUNT   _IOR('o', 58, __u64)
 
#define VIDEO_COMMAND   _IOWR('o', 59, struct video_command)
 
#define VIDEO_TRY_COMMAND   _IOWR('o', 60, struct video_command)
 

Typedefs

typedef struct video_highlight video_highlight_t
 
typedef struct video_spu video_spu_t
 
typedef struct video_spu_palette video_spu_palette_t
 
typedef struct video_navi_pack video_navi_pack_t
 
typedef __u16 video_attributes_t
 

Enumerations

enum  video_format_t { VIDEO_FORMAT_4_3, VIDEO_FORMAT_16_9, VIDEO_FORMAT_221_1 }
 
enum  video_system_t {
  VIDEO_SYSTEM_PAL, VIDEO_SYSTEM_NTSC, VIDEO_SYSTEM_PALN, VIDEO_SYSTEM_PALNc,
  VIDEO_SYSTEM_PALM, VIDEO_SYSTEM_NTSC60, VIDEO_SYSTEM_PAL60, VIDEO_SYSTEM_PALM60
}
 
enum  video_displayformat_t { VIDEO_PAN_SCAN, VIDEO_LETTER_BOX, VIDEO_CENTER_CUT_OUT }
 
enum  video_stream_source_t { VIDEO_SOURCE_DEMUX, VIDEO_SOURCE_MEMORY }
 
enum  video_play_state_t { VIDEO_STOPPED, VIDEO_PLAYING, VIDEO_FREEZED }
 

Macro Definition Documentation

#define VIDEO_CAP_CSS   64

Definition at line 226 of file video.h.

#define VIDEO_CAP_MPEG1   1

Definition at line 215 of file video.h.

#define VIDEO_CAP_MPEG2   2

Definition at line 216 of file video.h.

#define VIDEO_CAP_NAVI   32

Definition at line 225 of file video.h.

#define VIDEO_CAP_PROG   8

Definition at line 221 of file video.h.

#define VIDEO_CAP_SPU   16

Definition at line 224 of file video.h.

#define VIDEO_CAP_SYS   4

Definition at line 220 of file video.h.

#define VIDEO_CLEAR_BUFFER   _IO('o', 34)

Definition at line 242 of file video.h.

#define VIDEO_CMD_CONTINUE   (3)

Definition at line 83 of file video.h.

#define VIDEO_CMD_FREEZE   (2)

Definition at line 82 of file video.h.

#define VIDEO_CMD_FREEZE_TO_BLACK   (1 << 0)

Definition at line 86 of file video.h.

#define VIDEO_CMD_PLAY   (0)

Definition at line 80 of file video.h.

#define VIDEO_CMD_STOP   (1)

Definition at line 81 of file video.h.

#define VIDEO_CMD_STOP_IMMEDIATELY   (1 << 1)

Definition at line 90 of file video.h.

#define VIDEO_CMD_STOP_TO_BLACK   (1 << 0)

Definition at line 89 of file video.h.

#define VIDEO_COMMAND   _IOWR('o', 59, struct video_command)

Definition at line 271 of file video.h.

#define VIDEO_CONTINUE   _IO('o', 24)

Definition at line 232 of file video.h.

#define VIDEO_EVENT_DECODER_STOPPED   3

Definition at line 136 of file video.h.

#define VIDEO_EVENT_FRAME_RATE_CHANGED   2

Definition at line 135 of file video.h.

#define VIDEO_EVENT_SIZE_CHANGED   1

Definition at line 134 of file video.h.

#define VIDEO_EVENT_VSYNC   4

Definition at line 137 of file video.h.

#define VIDEO_FAST_FORWARD   _IO('o', 31)

Definition at line 239 of file video.h.

#define VIDEO_FREEZE   _IO('o', 23)

Definition at line 231 of file video.h.

#define VIDEO_GET_CAPABILITIES   _IOR('o', 33, unsigned int)

Definition at line 241 of file video.h.

#define VIDEO_GET_EVENT   _IOR('o', 28, struct video_event)

Definition at line 236 of file video.h.

#define VIDEO_GET_FRAME_COUNT   _IOR('o', 58, __u64)

Definition at line 269 of file video.h.

#define VIDEO_GET_FRAME_RATE   _IOR('o', 56, unsigned int)

Definition at line 253 of file video.h.

#define VIDEO_GET_NAVI   _IOR('o', 52, video_navi_pack_t)

Definition at line 250 of file video.h.

#define VIDEO_GET_PTS   _IOR('o', 57, __u64)

VIDEO_GET_PTS

Read the 33 bit presentation time stamp as defined in ITU T-REC-H.222.0 / ISO/IEC 13818-1.

The PTS should belong to the currently played frame if possible, but may also be a value close to it like the PTS of the last decoded frame or the last PTS extracted by the PES parser.

Definition at line 266 of file video.h.

#define VIDEO_GET_SIZE   _IOR('o', 55, video_size_t)

Definition at line 252 of file video.h.

#define VIDEO_GET_STATUS   _IOR('o', 27, struct video_status)

Definition at line 235 of file video.h.

#define VIDEO_PLAY   _IO('o', 22)

Definition at line 230 of file video.h.

#define VIDEO_PLAY_FMT_GOP   (1)

Definition at line 96 of file video.h.

#define VIDEO_PLAY_FMT_NONE   (0)

Definition at line 94 of file video.h.

#define VIDEO_SELECT_SOURCE   _IO('o', 25)

Definition at line 233 of file video.h.

#define VIDEO_SET_ATTRIBUTES   _IO('o', 53)

Definition at line 251 of file video.h.

#define VIDEO_SET_BLANK   _IO('o', 26)

Definition at line 234 of file video.h.

#define VIDEO_SET_DISPLAY_FORMAT   _IO('o', 29)

Definition at line 237 of file video.h.

#define VIDEO_SET_FORMAT   _IO('o', 37)

Definition at line 245 of file video.h.

#define VIDEO_SET_HIGHLIGHT   _IOW('o', 39, video_highlight_t)

Definition at line 247 of file video.h.

#define VIDEO_SET_ID   _IO('o', 35)

Definition at line 243 of file video.h.

#define VIDEO_SET_SPU   _IOW('o', 50, video_spu_t)

Definition at line 248 of file video.h.

#define VIDEO_SET_SPU_PALETTE   _IOW('o', 51, video_spu_palette_t)

Definition at line 249 of file video.h.

#define VIDEO_SET_STREAMTYPE   _IO('o', 36)

Definition at line 244 of file video.h.

#define VIDEO_SET_SYSTEM   _IO('o', 38)

Definition at line 246 of file video.h.

#define VIDEO_SLOWMOTION   _IO('o', 32)

Definition at line 240 of file video.h.

#define VIDEO_STILLPICTURE   _IOW('o', 30, struct video_still_picture)

Definition at line 238 of file video.h.

#define VIDEO_STOP   _IO('o', 21)

Definition at line 229 of file video.h.

#define VIDEO_TRY_COMMAND   _IOWR('o', 60, struct video_command)

Definition at line 272 of file video.h.

#define VIDEO_VSYNC_FIELD_EVEN   (2)

Definition at line 129 of file video.h.

#define VIDEO_VSYNC_FIELD_ODD   (1)

Definition at line 128 of file video.h.

#define VIDEO_VSYNC_FIELD_PROGRESSIVE   (3)

Definition at line 130 of file video.h.

#define VIDEO_VSYNC_FIELD_UNKNOWN   (0)

Definition at line 127 of file video.h.

Typedef Documentation

Definition at line 200 of file video.h.

Enumeration Type Documentation

Enumerator:
VIDEO_PAN_SCAN 
VIDEO_LETTER_BOX 
VIDEO_CENTER_CUT_OUT 

Definition at line 52 of file video.h.

Enumerator:
VIDEO_FORMAT_4_3 
VIDEO_FORMAT_16_9 
VIDEO_FORMAT_221_1 

Definition at line 33 of file video.h.

Enumerator:
VIDEO_STOPPED 
VIDEO_PLAYING 
VIDEO_FREEZED 

Definition at line 72 of file video.h.

Enumerator:
VIDEO_SOURCE_DEMUX 
VIDEO_SOURCE_MEMORY 

Definition at line 64 of file video.h.

Enumerator:
VIDEO_SYSTEM_PAL 
VIDEO_SYSTEM_NTSC 
VIDEO_SYSTEM_PALN 
VIDEO_SYSTEM_PALNc 
VIDEO_SYSTEM_PALM 
VIDEO_SYSTEM_NTSC60 
VIDEO_SYSTEM_PAL60 
VIDEO_SYSTEM_PALM60 

Definition at line 40 of file video.h.