#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. | |
This library is used to control the audio/video hardware on the MediaMVP.
Definition in file mvp_av.h.
|
|
Get the total display height.
Definition at line 647 of file mvp_av.h. Referenced by av_init_letterbox(). |
|
|
Determin the height of a thumbnail.
Definition at line 659 of file mvp_av.h. Referenced by file_browser_init(), myth_browser_init(), and video_thumbnail(). |
|
|
Determin the width of a thumbnail.
Definition at line 653 of file mvp_av.h. Referenced by file_browser_init(), myth_browser_init(), and video_thumbnail(). |
|
|
maximum volume
Definition at line 497 of file mvp_av.h. Referenced by av_get_volume(), and av_set_volume(). |
|
|
minimum volume
Definition at line 498 of file mvp_av.h. Referenced by av_set_volume(). |
|
|
|
|
|
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(). |
|
|
TV is 4:3.
Definition at line 133 of file mvp_av.h. Referenced by av_set_video_aspect(), and settings_av_aspect_callback(). |
|
|
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(). |
|
|
Presentation time stamp clock frequency.
Definition at line 199 of file mvp_av.h. Referenced by demux_jit_write_audio(). |
|
|
Audio output type.
|
|
|
Audio stream types.
|
|
|
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). |
|
|
The mode indicates whether the MediaMVP is running in NTSC (North America, Japan, etc) or PAL (Europe) mode.
|
|
|
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. |
|
|
The thumbnail mode, as passed to av_move.
|
|
|
The aspect ratio of the TV can be 4:3, 4:3 center-cut-out, or 16:9.
|
|
|
The aspect ratio of the playing video.
|
|
|
The video can be output via the SCART, composite, or s-video interfaces.
|
|
|
The widescreen signalling tells WSS compatible TVs what mode to run in.
|
|
|
Boolean type.
|
|
|
Video event types.
|
|
|
Attach the framebuffer to the OSD.
Definition at line 524 of file av.c. Referenced by av_pause(). |
|
|
Display the color test bars.
Definition at line 1193 of file av.c. Referenced by av_init(), settings_av_key_callback(), and settings_av_select_callback(). |
|
|
Get the current hardware STC (system time clock).
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(). |
|
|
Shut down the audio/video hardware.
Definition at line 1154 of file av.c. Referenced by doexit(). |
|
|
Delay the video for some number of microseconds.
Definition at line 623 of file av.c. Referenced by mvp_server_remote_key(), and sync_ac3_audio(). |
|
|
Determine if the audio and video hardware buffers are empty.
Definition at line 1206 of file av.c. Referenced by audio_init(), flac_play(), HandleRDCMessage(), and media_read_message(). |
|
|
Toggle between fast forward and normal speed playback.
Definition at line 685 of file av.c. Referenced by mvp_key_callback(), seek_by(), and seek_to(). |
|
|
Get the file descriptor for the audio hardware device.
Definition at line 42 of file io.c. References afd. Referenced by audio_start(), audio_switch_stream(), file_open(), and send_mpeg_data(). |
|
|
|
|
|
Get video hardware synchronization data.
Definition at line 796 of file av.c. Referenced by sync_ac3_audio(). |
|
|
Get the flicker mode.
Definition at line 1229 of file av.c. Referenced by mvp_server_init(). |
|
|
Return the current video mode.
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(). |
|
|
Return the current video output device.
Definition at line 167 of file av.c. References AV_OUTPUT_COMPOSITE. Referenced by HandleRDCMessage(), settings_av_select_callback(), and settings_av_video_callback(). |
|
|
Get the audio/video state.
Definition at line 1141 of file av.c. Referenced by mvp_server_remote_key(), receive_volume_data(), video_read_start(), and video_set_root(). |
|
|
Return the current aspect ratio setting for the TV.
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(). |
|
|
|
|
|
Get the file descriptor for the video hardware device.
Definition at line 48 of file io.c. References vfd. |
|
|
|
|
|
Get video hardware synchronization data.
Definition at line 833 of file av.c. Referenced by av_current_stc(), get_cur_vid_stc(), get_pts(), and sync_ac3_audio(). |
|
|
Get the current volume level.
Definition at line 1162 of file av.c. References AV_VOLUME_MAX. |
|
|
Initialize the MedaiMVP audio/video hardware.
Definition at line 52 of file init.c. References afd, AV_DEMUX_OFF, and vfd. Referenced by splash_main(). |
|
||||||||||||||||
|
Move the video image around on the screen.
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(). |
|
|
Toggle between muted and audible audio.
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(). |
|
|
Toggle pausing the audio and video playback.
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(). |
|
|
Pausing only the video playback (not associated audio).
Definition at line 611 of file av.c. Referenced by audio_write_start(), and av_delay_video(). |
|
|
Begin audio and video playback.
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(). |
|
|
Reset the audio and video hardware.
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(). |
|
|
Reset the audio and video STC (system time clock).
Definition at line 778 of file av.c. Referenced by media_read_message(), video_clear(), and video_read_start(). |
|
|
Set the audio output mode.
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(). |
|
|
Set the audio STC (system time clock).
Definition at line 818 of file av.c. References AV_SET_AUD_STC, and fd_audio. Referenced by av_reset_stc(). |
|
|
Set the mode of the audio hardware.
Definition at line 509 of file av.c. Referenced by audio_init(), audio_write_start(), mclient_loop_thread(), and video_read_start(). |
|
|
Toggle the MediaMVP LED on and off.
Definition at line 101 of file init.c. Referenced by spawn_child(). |
|
|
Set the video mode.
Definition at line 429 of file av.c. Referenced by set_config(), settings_av_mode_callback(), and splash_main(). |
|
|
Mute or unmute the audio.
Definition at line 662 of file av.c. Referenced by mvp_server_remote_key(), and video_read_start(). |
|
|
Set the video output device.
Definition at line 148 of file av.c. Referenced by set_config(), and settings_av_video_callback(). |
|
||||||||||||||||||||||||
|
Definition at line 1074 of file av.c. Referenced by a52_decode_data(), audio_init(), flac_play(), and wav_setup(). |
|
|
Set the TV aspect ratio.
Definition at line 451 of file av.c. Referenced by set_config(), settings_av_aspect_callback(), and video_play(). |
|
||||||||||||
|
Definition at line 198 of file av.c. Referenced by video_change_aspect(). |
|
|
Set the video STC (system time clock).
Definition at line 855 of file av.c. References AV_SET_VID_STC, and fd_video. Referenced by av_reset_stc(). |
|
|
Set the volume level.
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(). |
|
|
Stop audio and video playback.
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(). |
|
|
Synchronize the audio and video hardware devices.
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(). |
|
|
Blank the video display.
Definition at line 68 of file av.c. Referenced by media_read_message(), mvp_server_init(), mvp_server_start(), and video_clear(). |
|
||||||||||||
|
Read a DCR register.
Definition at line 91 of file mvpstb_api.c. Referenced by mvpstb_audio_end(), mvpstb_get_lbox_offset(), and mvpstb_video_end(). |
|
||||||||||||
|
Write a DCR register.
Definition at line 110 of file mvpstb_api.c. Referenced by mvpstb_set_lbox_offset(). |
|
||||||||||||||||
|
Read kernel data.
Definition at line 51 of file mvpstb_api.c. |
|
||||||||||||||||
|
Write kernel data.
Definition at line 71 of file mvpstb_api.c. |
|
|
Start audio/video auditing.
Definition at line 145 of file mvpstb_api.c. |
|
|
Stop audio/video auditing.
Definition at line 163 of file mvpstb_api.c. |
|
|
Determine if the end of audio hardware buffer has been reached.
Definition at line 281 of file mvpstb_api.c. References AUDIO_DSP_STATUS, and dcr_read(). Referenced by av_empty(), and sync_ac3_audio(). |
|
|
Get audio presentation time stamp.
Definition at line 232 of file mvpstb_api.c. |
|
|
Get audio system time code.
Definition at line 214 of file mvpstb_api.c. |
|
|
Get the offset for letterboxed output.
Definition at line 135 of file mvpstb_api.c. References dcr_read(), and VIDEO_LETTERBOX_OFFSET. |
|
|
Get video presentation time stamp.
Definition at line 196 of file mvpstb_api.c. |
|
|
Get video system time code.
Definition at line 179 of file mvpstb_api.c. |
|
|
Enable or disable audio sync.
Definition at line 268 of file mvpstb_api.c. |
|
|
Set the offset for letterboxed output.
Definition at line 130 of file mvpstb_api.c. References dcr_write(), and VIDEO_LETTERBOX_OFFSET. Referenced by av_init_letterbox(). |
|
|
Enable or disable video sync.
Definition at line 250 of file mvpstb_api.c. |
|
|
Determine if the end of video hardware buffer has been reached.
Definition at line 294 of file mvpstb_api.c. References dcr_read(), and VIDEO_CLIP_WLR. Referenced by av_empty(). |
|
||||||||||||||||
|
Definition at line 215 of file videvents.c. Referenced by parse_video_stream(). |
|
|
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(). |
|
|
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(). |
|
||||||||||||
|
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(). |
1.4.6