mvp_av.h File Reference

MediaMVP Audio/Video Interface Library. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  pts_sync_data_t
 Hardware sync data. More...
struct  vid_state_regs_t
struct  av_stc_t
 System Time Clock. More...
struct  av_volume_t
 Hardware volume setting. More...
struct  av_state_t
 Video hardware state. More...

Defines

#define HAVE_TYPE_BOOL
#define IS_16x9(x)   ((x)== AV_TV_ASPECT_16x9)
 TV is 16:9 widescreen.
#define IS_4x3(x)   ((x)== AV_TV_ASPECT_4x3 || (x) == AV_TV_ASPECT_4x3_CCO)
 TV is 4:3.
#define PTS_kHz   90
 Presentation time stamp clock frequency.
#define PTS_HZ   (1000*PTS_kHz)
 Presentation time stamp clock frequency.
#define AV_VOLUME_MAX   255
 maximum volume
#define AV_VOLUME_MIN   0
 minimum volume
#define av_get_height(void)   ((av_get_mode() == AV_MODE_PAL)? 576:480)
 Get the total display height.
#define av_thumbnail_width(mode)   (720/(((mode) == AV_THUMBNAIL_QUATER)? 2 :4))
 Determin the width of a thumbnail.
#define av_thumbnail_height(mode)   (av_get_height()/(((mode) == AV_THUMBNAIL_QUATER)? 2 :4))
 Determin the height of a thumbnail.

Enumerations

enum  bool { false = 0, true = 1 }
 Boolean type. More...
enum  av_demux_mode_t { AV_DEMUX_ERROR = -1, AV_DEMUX_ON, AV_DEMUX_OFF }
 The demuxer can either be on or off. More...
enum  av_mode_t { AV_MODE_NTSC = 0, AV_MODE_PAL = 1, AV_MODE_UNKNOWN = 2 }
 The mode indicates whether the MediaMVP is running in NTSC (North America, Japan, etc) or PAL (Europe) mode. More...
enum  av_video_output_t { AV_OUTPUT_SCART = 0, AV_OUTPUT_COMPOSITE = 1, AV_OUTPUT_SVIDEO = 2 }
 The video can be output via the SCART, composite, or s-video interfaces. More...
enum  av_passthru_t { AUD_OUTPUT_PASSTHRU = 0, AUD_OUTPUT_STEREO = 1 }
 In pass-through mode, AC3 audio files will be passed through the digital audio output (SPDIF) unmodified. More...
enum  av_video_aspect_t { AV_VIDEO_ASPECT_4x3 = 0, AV_VIDEO_ASPECT_16x9 = 1 }
 The aspect ratio of the playing video. More...
enum  av_tv_aspect_t { AV_TV_ASPECT_4x3 = 0, AV_TV_ASPECT_4x3_CCO = 2, AV_TV_ASPECT_16x9 = 1 }
 The aspect ratio of the TV can be 4:3, 4:3 center-cut-out, or 16:9. More...
enum  av_thumbnail_mode_t { AV_THUMBNAIL_OFF = 0, AV_THUMBNAIL_QUATER = 3, AV_THUMBNAIL_EIGTH = 4 }
 The thumbnail mode, as passed to av_move. More...
enum  av_wss_aspect_t {
  WSS_ASPECT_UNKNOWN = 0, WSS_ASPECT_FULL_4x3 = 8, WSS_ASPECT_BOX_14x9_CENTRE = 1, WSS_ASPECT_BOX_14x9_TOP = 2,
  WSS_ASPECT_BOX_16x9_CENTRE = 11, WSS_ASPECT_BOX_16x9_TOP = 4, WSS_ASPECT_BOX_GT_16x9_CENTRE = 13, WSS_ASPECT_FULL_4x3_PROTECT_14x9 = 14,
  WSS_ASPECT_FULL_16x9 = 7
}
 The widescreen signalling tells WSS compatible TVs what mode to run in. More...
enum  eventq_type_t { VID_EVENT_ASPECT, VID_EVENT_SUBTITLES }
 Video event types. More...
enum  av_audio_stream_t {
  AV_AUDIO_STREAM_ES, AV_AUDIO_STREAM_PCM, AV_AUDIO_STREAM_PES, AV_AUDIO_STREAM_MPEG1,
  AV_AUDIO_STREAM_UNKNOWN
}
 Audio stream types. More...
enum  av_audio_output_t { AV_AUDIO_MPEG = 0, AV_AUDIO_PCM, AV_AUDIO_AC3, AV_AUDIO_CLOSE }
 Audio output type. More...

Functions

av_demux_mode_t av_init (void)
 Initialize the MedaiMVP audio/video hardware.
int av_attach_fb (void)
 Attach the framebuffer to the OSD.
int av_play (void)
 Begin audio and video playback.
int av_get_audio_fd (void)
 Get the file descriptor for the audio hardware device.
int av_get_video_fd (void)
 Get the file descriptor for the video hardware device.
int av_set_audio_type (int audio_mode)
 Set the mode of the audio hardware.
int av_stop (void)
 Stop audio and video playback.
int av_pause (void)
 Toggle pausing the audio and video playback.
int av_move (int x, int y, av_thumbnail_mode_t thumbnail_mode)
 Move the video image around on the screen.
int av_ffwd (void)
 Toggle between fast forward and normal speed playback.
int av_mute (void)
 Toggle between muted and audible audio.
int av_set_mute (bool state)
 Mute or unmute the audio.
int av_reset (void)
 Reset the audio and video hardware.
int av_reset_stc (void)
 Reset the audio and video STC (system time clock).
int av_get_video_sync (pts_sync_data_t *p)
 Get video hardware synchronization data.
int av_get_audio_sync (pts_sync_data_t *p)
 Get video hardware synchronization data.
int av_current_stc (av_stc_t *stc)
 Get the current hardware STC (system time clock).
int av_delay_video (int usec)
 Delay the video for some number of microseconds.
int av_pause_video (void)
 Pausing only the video playback (not associated audio).
int vid_event_add (unsigned int pts, eventq_type_t type, void *info)
int vid_event_wait_next (eventq_type_t *type, void **info)
void vid_event_discontinuity_possible ()
void vid_event_clear ()
av_mode_t av_get_mode (void)
 Return the current video mode.
av_video_output_t av_get_output (void)
 Return the current video output device.
av_tv_aspect_t av_get_tv_aspect (void)
 Return the current aspect ratio setting for the TV.
int av_set_mode (av_mode_t mode)
 Set the video mode.
int av_set_output (av_video_output_t device)
 Set the video output device.
int av_set_tv_aspect (av_tv_aspect_t ratio)
 Set the TV aspect ratio.
int av_set_led (int on)
 Toggle the MediaMVP LED on and off.
int av_set_pcm_param (unsigned long rate, int type, int channels, bool big_endian, int bits)
int av_set_audio_output (av_audio_output_t type)
 Set the audio output mode.
int av_sync (void)
 Synchronize the audio and video hardware devices.
av_wss_aspect_t av_set_video_aspect (av_video_aspect_t wide, int afd)
av_video_aspect_t av_get_video_aspect (void)
int av_get_video_status (void)
int av_get_audio_status (void)
int av_video_blank (void)
 Blank the video display.
int av_set_video_stc (uint64_t stc)
 Set the video STC (system time clock).
int av_set_audio_stc (uint64_t stc)
 Set the audio STC (system time clock).
int av_get_state (av_state_t *state)
 Get the audio/video state.
int av_deactivate (void)
 Shut down the audio/video hardware.
int av_get_volume (void)
 Get the current volume level.
int av_set_volume (int volume)
 Set the volume level.
int av_colorbars (bool on)
 Display the color test bars.
int av_empty (void)
 Determine if the audio and video hardware buffers are empty.
int kern_read (unsigned long memaddr, void *buffaddr, unsigned int size)
 Read kernel data.
int kern_write (unsigned long memaddr, void *buffaddr, unsigned int size)
 Write kernel data.
int dcr_read (unsigned long regaddr, unsigned int *data)
 Read a DCR register.
int dcr_write (unsigned long regaddr, unsigned int data)
 Write a DCR register.
int mvpstb_get_vid_stc (unsigned long long *vstc)
 Get video system time code.
int mvpstb_get_vid_pts (unsigned long long *vpts)
 Get video presentation time stamp.
int mvpstb_get_aud_stc (unsigned long long *astc)
 Get audio system time code.
int mvpstb_get_aud_pts (unsigned long long *apts)
 Get audio presentation time stamp.
int mvpstb_set_video_sync (int on)
 Enable or disable video sync.
int mvpstb_set_audio_sync (int on)
 Enable or disable audio sync.
int mvpmod_start_audit (unsigned long interval_ms)
 Start audio/video auditing.
int mvpmod_stop_audit (void)
 Stop audio/video auditing.
int mvpstb_set_lbox_offset (unsigned int offset)
 Set the offset for letterboxed output.
int mvpstb_get_lbox_offset (unsigned int *offset)
 Get the offset for letterboxed output.
int mvpstb_audio_end (void)
 Determine if the end of audio hardware buffer has been reached.
int mvpstb_video_end (void)
 Determine if the end of video hardware buffer has been reached.
int av_get_flicker (void)
 Get the flicker mode.


Detailed Description

MediaMVP Audio/Video Interface Library.

This library is used to control the audio/video hardware on the MediaMVP.

Definition in file mvp_av.h.


Define Documentation

#define av_get_height void   )     ((av_get_mode() == AV_MODE_PAL)? 576:480)
 

Get the total display height.

Return values:
height of display (at the moment this is 576/480 depending on whether this is a PAL or NTSC display)

Definition at line 647 of file mvp_av.h.

Referenced by av_init_letterbox().

#define av_thumbnail_height mode   )     (av_get_height()/(((mode) == AV_THUMBNAIL_QUATER)? 2 :4))
 

Determin the height of a thumbnail.

Return values:
mode type of thumbnail

Definition at line 659 of file mvp_av.h.

Referenced by file_browser_init(), myth_browser_init(), and video_thumbnail().

#define av_thumbnail_width mode   )     (720/(((mode) == AV_THUMBNAIL_QUATER)? 2 :4))
 

Determin the width of a thumbnail.

Return values:
mode type of thumbnail

Definition at line 653 of file mvp_av.h.

Referenced by file_browser_init(), myth_browser_init(), and video_thumbnail().

#define AV_VOLUME_MAX   255
 

maximum volume

Definition at line 497 of file mvp_av.h.

Referenced by av_get_volume(), and av_set_volume().

#define AV_VOLUME_MIN   0
 

minimum volume

Definition at line 498 of file mvp_av.h.

Referenced by av_set_volume().

#define HAVE_TYPE_BOOL
 

Definition at line 31 of file mvp_av.h.

#define IS_16x9 x   )     ((x)== AV_TV_ASPECT_16x9)
 

TV is 16:9 widescreen.

Definition at line 131 of file mvp_av.h.

Referenced by av_set_video_aspect(), and settings_av_aspect_callback().

#define IS_4x3 x   )     ((x)== AV_TV_ASPECT_4x3 || (x) == AV_TV_ASPECT_4x3_CCO)
 

TV is 4:3.

Definition at line 133 of file mvp_av.h.

Referenced by av_set_video_aspect(), and settings_av_aspect_callback().

#define PTS_HZ   (1000*PTS_kHz)
 

Presentation time stamp clock frequency.

Definition at line 200 of file mvp_av.h.

Referenced by av_current_stc(), demux_jit_write_audio(), do_seek(), parse_video_stream(), seek_by(), and vid_event_wait_next().

#define PTS_kHz   90
 

Presentation time stamp clock frequency.

Definition at line 199 of file mvp_av.h.

Referenced by demux_jit_write_audio().


Enumeration Type Documentation

enum av_audio_output_t
 

Audio output type.

Enumerator:
AV_AUDIO_MPEG  MPEG Audio.
AV_AUDIO_PCM  PCM Audio.
AV_AUDIO_AC3  Digital AC3 Audio.
AV_AUDIO_CLOSE 

Definition at line 149 of file mvp_av.h.

enum av_audio_stream_t
 

Audio stream types.

Enumerator:
AV_AUDIO_STREAM_ES  Elementary Stream.
AV_AUDIO_STREAM_PCM  PCM Audio Stream.
AV_AUDIO_STREAM_PES  Packetized Elementary Stream.
AV_AUDIO_STREAM_MPEG1  MPEG 1 Audio.
AV_AUDIO_STREAM_UNKNOWN 

Definition at line 138 of file mvp_av.h.

enum av_demux_mode_t
 

The demuxer can either be on or off.

This is used to distinguish between running on a MediaMVP (where the demuxer is on) and some other system (where the demuxer is off since it would not be useful).

Enumerator:
AV_DEMUX_ERROR 
AV_DEMUX_ON  demuxer should be enabled
AV_DEMUX_OFF  demuxer should be disabled

Definition at line 46 of file mvp_av.h.

enum av_mode_t
 

The mode indicates whether the MediaMVP is running in NTSC (North America, Japan, etc) or PAL (Europe) mode.

Enumerator:
AV_MODE_NTSC  NTSC video mode (North America, Japan).
AV_MODE_PAL  PAL video mode (Europe).
AV_MODE_UNKNOWN 

Definition at line 56 of file mvp_av.h.

enum av_passthru_t
 

In pass-through mode, AC3 audio files will be passed through the digital audio output (SPDIF) unmodified.

To use this, you will need an external decoder.

Enumerator:
AUD_OUTPUT_PASSTHRU  Digital audio pass through.
AUD_OUTPUT_STEREO  Analog audio output.

Definition at line 76 of file mvp_av.h.

enum av_thumbnail_mode_t
 

The thumbnail mode, as passed to av_move.

Enumerator:
AV_THUMBNAIL_OFF 
AV_THUMBNAIL_QUATER 
AV_THUMBNAIL_EIGTH 

Definition at line 101 of file mvp_av.h.

enum av_tv_aspect_t
 

The aspect ratio of the TV can be 4:3, 4:3 center-cut-out, or 16:9.

Enumerator:
AV_TV_ASPECT_4x3  4:3
AV_TV_ASPECT_4x3_CCO  4:3 center-cut-out
AV_TV_ASPECT_16x9  16:9

Definition at line 92 of file mvp_av.h.

enum av_video_aspect_t
 

The aspect ratio of the playing video.

Enumerator:
AV_VIDEO_ASPECT_4x3  4:3 video
AV_VIDEO_ASPECT_16x9  16:9 (widescreen) video

Definition at line 84 of file mvp_av.h.

enum av_video_output_t
 

The video can be output via the SCART, composite, or s-video interfaces.

Enumerator:
AV_OUTPUT_SCART  SCART video output.
AV_OUTPUT_COMPOSITE  Composite video output.
AV_OUTPUT_SVIDEO  S-Video video output.

Definition at line 65 of file mvp_av.h.

enum av_wss_aspect_t
 

The widescreen signalling tells WSS compatible TVs what mode to run in.

Enumerator:
WSS_ASPECT_UNKNOWN 
WSS_ASPECT_FULL_4x3 
WSS_ASPECT_BOX_14x9_CENTRE 
WSS_ASPECT_BOX_14x9_TOP 
WSS_ASPECT_BOX_16x9_CENTRE 
WSS_ASPECT_BOX_16x9_TOP 
WSS_ASPECT_BOX_GT_16x9_CENTRE 
WSS_ASPECT_FULL_4x3_PROTECT_14x9 
WSS_ASPECT_FULL_16x9 

Definition at line 110 of file mvp_av.h.

enum bool
 

Boolean type.

Enumerator:
false 
true 

Definition at line 35 of file mvp_av.h.

enum eventq_type_t
 

Video event types.

Enumerator:
VID_EVENT_ASPECT 
VID_EVENT_SUBTITLES 

Definition at line 125 of file mvp_av.h.


Function Documentation

int av_attach_fb void   ) 
 

Attach the framebuffer to the OSD.

Return values:
0 success
-1 error

Definition at line 524 of file av.c.

Referenced by av_pause().

int av_colorbars bool  on  ) 
 

Display the color test bars.

Return values:
0 success
-1 error

Definition at line 1193 of file av.c.

Referenced by av_init(), settings_av_key_callback(), and settings_av_select_callback().

int av_current_stc av_stc_t stc  ) 
 

Get the current hardware STC (system time clock).

Parameters:
stc pointer used to return STC data
Return values:
0 success
-1 error

Definition at line 867 of file av.c.

Referenced by content_osd_update(), display_timecode(), fb_osd_update(), get_current_vid_time(), osd_callback(), seek_by(), seek_osd_timer_callback(), video_bitrate(), and video_timecode().

int av_deactivate void   ) 
 

Shut down the audio/video hardware.

Return values:
0 success
-1 error

Definition at line 1154 of file av.c.

Referenced by doexit().

int av_delay_video int  usec  ) 
 

Delay the video for some number of microseconds.

Parameters:
usec number of microseconds to delay the video
Return values:
0 success
-1 error

Definition at line 623 of file av.c.

Referenced by mvp_server_remote_key(), and sync_ac3_audio().

int av_empty void   ) 
 

Determine if the audio and video hardware buffers are empty.

Return values:
0 not empty
1 empty
-1 error

Definition at line 1206 of file av.c.

Referenced by audio_init(), flac_play(), HandleRDCMessage(), and media_read_message().

int av_ffwd void   ) 
 

Toggle between fast forward and normal speed playback.

Return values:
0 playback is now at normal speed
1 playback is now at fast forward speed
-1 error

Definition at line 685 of file av.c.

Referenced by mvp_key_callback(), seek_by(), and seek_to().

int av_get_audio_fd void   ) 
 

Get the file descriptor for the audio hardware device.

Returns:
Audio hardware file descriptor.

Definition at line 42 of file io.c.

References afd.

Referenced by audio_start(), audio_switch_stream(), file_open(), and send_mpeg_data().

int av_get_audio_status void   ) 
 

int av_get_audio_sync pts_sync_data_t p  ) 
 

Get video hardware synchronization data.

Parameters:
[out] p pointer to return sync data
Return values:
0 success
-1 error

Definition at line 796 of file av.c.

Referenced by sync_ac3_audio().

int av_get_flicker void   ) 
 

Get the flicker mode.

Return values:
0 no flicker
1-3 flicker modes

Definition at line 1229 of file av.c.

Referenced by mvp_server_init().

av_mode_t av_get_mode void   ) 
 

Return the current video mode.

Return values:
AV_MODE_NTSC NTSC
AV_MODE_PAL PAL

Definition at line 414 of file av.c.

References AV_MODE_NTSC.

Referenced by mythtv_video_key(), settings_av_mode_callback(), settings_av_select_callback(), splash_main(), and wss_update_surface().

av_video_output_t av_get_output void   ) 
 

Return the current video output device.

Return values:
AV_OUTPUT_SCART SCART
AV_OUTPUT_COMPOSITE composite
AV_OUTPUT_SVIDEO s-video

Definition at line 167 of file av.c.

References AV_OUTPUT_COMPOSITE.

Referenced by HandleRDCMessage(), settings_av_select_callback(), and settings_av_video_callback().

int av_get_state av_state_t state  ) 
 

Get the audio/video state.

Parameters:
[out] state return the audio/video state
Return values:
0 success
-1 error

Definition at line 1141 of file av.c.

Referenced by mvp_server_remote_key(), receive_volume_data(), video_read_start(), and video_set_root().

av_tv_aspect_t av_get_tv_aspect void   ) 
 

Return the current aspect ratio setting for the TV.

Return values:
AV_TV_ASPECT_4x3 4:3
AV_TV_ASPECT_4x3_CCO 4:3 center-cut-out
AV_TV_ASPECT_16x9 16:9

Definition at line 492 of file av.c.

References AV_TV_ASPECT_4x3.

Referenced by av_wss_update_aspect(), HandleRDCMessage(), settings_av_aspect_callback(), and settings_av_select_callback().

av_video_aspect_t av_get_video_aspect void   ) 
 

Definition at line 399 of file av.c.

int av_get_video_fd void   ) 
 

Get the file descriptor for the video hardware device.

Returns:
Video hardware file descriptor.

Definition at line 48 of file io.c.

References vfd.

int av_get_video_status void   ) 
 

int av_get_video_sync pts_sync_data_t p  ) 
 

Get video hardware synchronization data.

Parameters:
[out] p pointer to sync data structure
Return values:
0 success
-1 error

Definition at line 833 of file av.c.

Referenced by av_current_stc(), get_cur_vid_stc(), get_pts(), and sync_ac3_audio().

int av_get_volume void   ) 
 

Get the current volume level.

Returns:
-1 error, volume level on success

Definition at line 1162 of file av.c.

References AV_VOLUME_MAX.

av_demux_mode_t av_init void   ) 
 

Initialize the MedaiMVP audio/video hardware.

Return values:
AV_DEMUX_ERROR error
AV_DEMUX_ON demuxer should be enabled
AV_DEMUX_OFF demuxer should be disabled

Definition at line 52 of file init.c.

References afd, AV_DEMUX_OFF, and vfd.

Referenced by splash_main().

int av_move int  x,
int  y,
av_thumbnail_mode_t  thumbnail_mode
 

Move the video image around on the screen.

Parameters:
x horizontal coordinate
y vertical coordinate
thumbnail_mode 
Return values:
0 success
-1 error

Definition at line 904 of file av.c.

Referenced by __change_channel(), fb_key_callback(), HandleRDCMessage(), media_read_message(), mythtv_channel_set(), mythtv_key_callback(), mythtv_menu_callback(), play_show(), select_callback(), and video_thumbnail().

int av_mute void   ) 
 

Toggle between muted and audible audio.

Return values:
0 audio is now audible
1 audio is now muted
-1 error

Definition at line 646 of file av.c.

Referenced by av_set_mute(), curses2ir(), media_read_message(), mvp_server_remote_key(), and receive_volume_data().

int av_pause void   ) 
 

Toggle pausing the audio and video playback.

Return values:
0 playback is now paused
1 playback is now not paused
-1 error

Definition at line 577 of file av.c.

Referenced by client_pause(), fb_key_callback(), HandleRDCMessage(), mclient_local_init(), mvp_server_reset_state(), playlist_key_callback(), send_mpeg_data(), and vlc_key_pause().

int av_pause_video void   ) 
 

Pausing only the video playback (not associated audio).

Return values:
0 playback is now paused
-1 error

Definition at line 611 of file av.c.

Referenced by audio_write_start(), and av_delay_video().

int av_play void   ) 
 

Begin audio and video playback.

Return values:
0 success
-1 error

Definition at line 542 of file av.c.

Referenced by __change_channel(), audio_init(), av_delay_video(), av_pause(), file_open(), mclient_loop_thread(), mvp_server_remote_key(), mythtv_channel_set(), mythtv_livetv_select(), mythtv_new_livetv_start(), mythtv_start_thumbnail(), play_show(), show_select_callback(), video_read_start(), and video_unpause_timer_callback().

int av_reset void   ) 
 

Reset the audio and video hardware.

Return values:
0 success
-1 error

Definition at line 746 of file av.c.

Referenced by cli_read_data(), HandleRDCMessage(), http_play(), media_read_message(), media_send_request(), mvp_server_remote_key(), mvp_server_start(), mythtv_start_thumbnail(), playlist_key_callback(), select_callback(), send_mpeg_data(), video_clear(), and video_read_start().

int av_reset_stc void   ) 
 

Reset the audio and video STC (system time clock).

Return values:
0 success
-1 error

Definition at line 778 of file av.c.

Referenced by media_read_message(), video_clear(), and video_read_start().

int av_set_audio_output av_audio_output_t  type  ) 
 

Set the audio output mode.

Parameters:
type output MPEG, PCM, or AC3 audio
Return values:
0 success
-1 error

Definition at line 971 of file av.c.

Referenced by audio_init(), audio_switch_stream(), audio_write_start(), file_open(), mclient_loop_thread(), mount_djmount(), video_read_start(), and wav_setup().

int av_set_audio_stc uint64_t  stc  ) 
 

Set the audio STC (system time clock).

Parameters:
stc system time clock
Return values:
0 success
-1 error

Definition at line 818 of file av.c.

References AV_SET_AUD_STC, and fd_audio.

Referenced by av_reset_stc().

int av_set_audio_type int  audio_mode  ) 
 

Set the mode of the audio hardware.

Parameters:
audio_mode The audio mode to use.
Return values:
0 success
-1 error

Definition at line 509 of file av.c.

Referenced by audio_init(), audio_write_start(), mclient_loop_thread(), and video_read_start().

int av_set_led int  on  ) 
 

Toggle the MediaMVP LED on and off.

Parameters:
on 1 to turn the LED on, 0 to turn it off
Return values:
0 success
-1 error

Definition at line 101 of file init.c.

Referenced by spawn_child().

int av_set_mode av_mode_t  mode  ) 
 

Set the video mode.

Parameters:
mode AV_MODE_NTSC or AV_MODE_PAL
Return values:
0 success
-1 error

Definition at line 429 of file av.c.

Referenced by set_config(), settings_av_mode_callback(), and splash_main().

int av_set_mute bool  state  ) 
 

Mute or unmute the audio.

Parameters:
state 1 to mute, 0 to unmute
Return values:
0 success
-1 error

Definition at line 662 of file av.c.

Referenced by mvp_server_remote_key(), and video_read_start().

int av_set_output av_video_output_t  device  ) 
 

Set the video output device.

Parameters:
device the video output device
Return values:
0 success
-1 error

Definition at line 148 of file av.c.

Referenced by set_config(), and settings_av_video_callback().

int av_set_pcm_param unsigned long  rate,
int  type,
int  channels,
bool  big_endian,
int  bits
 

Definition at line 1074 of file av.c.

Referenced by a52_decode_data(), audio_init(), flac_play(), and wav_setup().

int av_set_tv_aspect av_tv_aspect_t  ratio  ) 
 

Set the TV aspect ratio.

Parameters:
ratio the aspect ratio of the TV
Return values:
0 success
-1 error

Definition at line 451 of file av.c.

Referenced by set_config(), settings_av_aspect_callback(), and video_play().

av_wss_aspect_t av_set_video_aspect av_video_aspect_t  wide,
int  afd
 

Definition at line 198 of file av.c.

Referenced by video_change_aspect().

int av_set_video_stc uint64_t  stc  ) 
 

Set the video STC (system time clock).

Parameters:
stc system time clock
Return values:
0 success
-1 error

Definition at line 855 of file av.c.

References AV_SET_VID_STC, and fd_video.

Referenced by av_reset_stc().

int av_set_volume int  volume  ) 
 

Set the volume level.

Parameters:
volume volume level
Return values:
0 success
-1 error

Definition at line 1175 of file av.c.

References AV_VOLUME_MAX, and AV_VOLUME_MIN.

Referenced by HandleRDCMessage(), mvp_server_start(), receive_volume_data(), and volume_key_callback().

int av_stop void   ) 
 

Stop audio and video playback.

Return values:
0 success
-1 error

Definition at line 726 of file av.c.

Referenced by fb_exit(), mclient_loop_thread(), media_read_message(), mvp_server_remote_key(), and video_clear().

int av_sync void   ) 
 

Synchronize the audio and video hardware devices.

Return values:
0 success
-1 error

Definition at line 88 of file av.c.

References AV_SET_AUD_SYNC, AV_SET_VID_SYNC, fd_audio, fd_video, and VID_SYNC_AUD.

Referenced by av_ffwd(), av_init(), av_pause(), av_play(), av_reset(), and av_set_audio_output().

int av_video_blank void   ) 
 

Blank the video display.

Return values:
0 success
-1 error

Definition at line 68 of file av.c.

Referenced by media_read_message(), mvp_server_init(), mvp_server_start(), and video_clear().

int dcr_read unsigned long  regaddr,
unsigned int *  data
 

Read a DCR register.

Parameters:
regaddr register address
[out] data address to store data
Return values:
0 success
<0 error

Definition at line 91 of file mvpstb_api.c.

Referenced by mvpstb_audio_end(), mvpstb_get_lbox_offset(), and mvpstb_video_end().

int dcr_write unsigned long  regaddr,
unsigned int  data
 

Write a DCR register.

Parameters:
regaddr register address
data data to be written
Return values:
0 success
<0 error

Definition at line 110 of file mvpstb_api.c.

Referenced by mvpstb_set_lbox_offset().

int kern_read unsigned long  memaddr,
void *  buffaddr,
unsigned int  size
 

Read kernel data.

Parameters:
memaddr kernel memory address
[out] buffaddr address to store data
size size of buffaddr
Return values:
0 success
<0 error

Definition at line 51 of file mvpstb_api.c.

int kern_write unsigned long  memaddr,
void *  buffaddr,
unsigned int  size
 

Write kernel data.

Parameters:
memaddr kernel memory address
buffaddr data to be written
size size of buffaddr
Return values:
0 success
<0 error

Definition at line 71 of file mvpstb_api.c.

int mvpmod_start_audit unsigned long  interval_ms  ) 
 

Start audio/video auditing.

Parameters:
interval_ms audit interval in milliseconds
Return values:
0 success
<0 error

Definition at line 145 of file mvpstb_api.c.

int mvpmod_stop_audit void   ) 
 

Stop audio/video auditing.

Return values:
0 success
<0 error

Definition at line 163 of file mvpstb_api.c.

int mvpstb_audio_end void   ) 
 

Determine if the end of audio hardware buffer has been reached.

Return values:
0 not empty
1 empty
-1 error

Definition at line 281 of file mvpstb_api.c.

References AUDIO_DSP_STATUS, and dcr_read().

Referenced by av_empty(), and sync_ac3_audio().

int mvpstb_get_aud_pts unsigned long long *  apts  ) 
 

Get audio presentation time stamp.

Parameters:
[out] apts output buffer
Return values:
0 success
<0 error

Definition at line 232 of file mvpstb_api.c.

int mvpstb_get_aud_stc unsigned long long *  astc  ) 
 

Get audio system time code.

Parameters:
[out] astc output buffer
Return values:
0 success
<0 error

Definition at line 214 of file mvpstb_api.c.

int mvpstb_get_lbox_offset unsigned int *  offset  ) 
 

Get the offset for letterboxed output.

Parameters:
[out] offset offset in lines per field
Return values:
0 success
<0 error

Definition at line 135 of file mvpstb_api.c.

References dcr_read(), and VIDEO_LETTERBOX_OFFSET.

int mvpstb_get_vid_pts unsigned long long *  vpts  ) 
 

Get video presentation time stamp.

Parameters:
[out] vpts output buffer
Return values:
0 success
<0 error

Definition at line 196 of file mvpstb_api.c.

int mvpstb_get_vid_stc unsigned long long *  vstc  ) 
 

Get video system time code.

Parameters:
[out] vstc output buffer
Return values:
0 success
<0 error

Definition at line 179 of file mvpstb_api.c.

int mvpstb_set_audio_sync int  on  ) 
 

Enable or disable audio sync.

Parameters:
on 1 to enable, 0 to disable
Return values:
0 success
<0 error

Definition at line 268 of file mvpstb_api.c.

int mvpstb_set_lbox_offset unsigned int  offset  ) 
 

Set the offset for letterboxed output.

Parameters:
offset offset in lines per field
Return values:
0 success
<0 error

Definition at line 130 of file mvpstb_api.c.

References dcr_write(), and VIDEO_LETTERBOX_OFFSET.

Referenced by av_init_letterbox().

int mvpstb_set_video_sync int  on  ) 
 

Enable or disable video sync.

Parameters:
on 1 to enable, 0 to disable
Return values:
0 success
<0 error

Definition at line 250 of file mvpstb_api.c.

int mvpstb_video_end void   ) 
 

Determine if the end of video hardware buffer has been reached.

Return values:
0 not empty
1 empty
-1 error

Definition at line 294 of file mvpstb_api.c.

References dcr_read(), and VIDEO_CLIP_WLR.

Referenced by av_empty().

int vid_event_add unsigned int  pts,
eventq_type_t  type,
void *  info
 

Definition at line 215 of file videvents.c.

Referenced by parse_video_stream().

void vid_event_clear  ) 
 

Definition at line 286 of file videvents.c.

References event_queue_s::pNext, pNextEvent, pts_discontinuity_count, VID_EVENT_DISCON_WAIT_COUNT, and videvents_mutex.

Referenced by video_read_start().

void vid_event_discontinuity_possible  ) 
 

Definition at line 278 of file videvents.c.

References pts_discontinuity_count, VID_EVENT_DISCON_WAIT_COUNT, videvents_cond, and videvents_mutex.

Referenced by file_open(), and video_read_start().

int vid_event_wait_next eventq_type_t type,
void **  info
 

Definition at line 61 of file videvents.c.

References get_pts(), event_queue_s::info, event_queue_s::pNext, pNextEvent, event_queue_s::pPrev, PRINTF, event_queue_s::pts, pts_discontinuity_count, PTS_HZ, event_queue_s::type, VID_EVENT_DISCON_MAX_WAIT, VID_EVENT_MAX_WAIT, videvents_cond, and videvents_mutex.

Referenced by video_events_start().


Generated on Wed Sep 8 03:13:18 2010 for mvpmc by  doxygen 1.4.6