Skip to content

Commit

Permalink
Merge branch 'master' into simple-smolt
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McNamara committed Feb 27, 2011
2 parents 7f1c735 + 4103798 commit 54285fa
Show file tree
Hide file tree
Showing 90 changed files with 3,167 additions and 1,532 deletions.
7 changes: 2 additions & 5 deletions mythplugins/mythmusic/mythmusic/musicplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,8 @@ void MusicPlayer::openOutputDevice(void)
else
adevice = gCoreContext->GetSetting("MusicAudioDevice");

pdevice = gCoreContext->GetNumSetting("AdvancedAudioSettings",
false) &&
gCoreContext->GetNumSetting("PassThruDeviceOverride",
false) ?
gCoreContext->GetSetting("PassThruOutputDevice") : QString::null;
pdevice = gCoreContext->GetNumSetting("PassThruDeviceOverride", false) ?
gCoreContext->GetSetting("PassThruOutputDevice") : "auto";

// TODO: Error checking that device is opened correctly!
m_output = AudioOutput::OpenAudio(
Expand Down
9 changes: 9 additions & 0 deletions mythtv/configure
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Advanced options (experts only):
--disable-xv disable XVideo (X11 video output accel.)
--enable-vdpau enable NVidia VDPAU hardware acceleration.
--enable-crystalhd enable Broadcom CrystalHD hardware decoder support
--enable-dxva2 enable hardware accelerated decoding on windows
--disable-opengl-video disable OpenGL based video display
--disable-quartz-video disable Mac OS X CoreVideo based video display
--disable-directfb disable DirectFB (Linux non-X11 video)
Expand Down Expand Up @@ -1371,6 +1372,7 @@ USING_LIST='
bindings_php
darwin_da
mythtranscode
dxva2
opengl
opengles
vdpau
Expand Down Expand Up @@ -3861,6 +3863,12 @@ if enabled crystalhd; then
disable crystalhd;
fi

if enabled dxva2; then
enabled dxva2api_h && enabled windows || disable dxva2
else
disable dxva2
fi

enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
enabled debug && add_cxxflags -g"$debuglevel"

Expand Down Expand Up @@ -4419,6 +4427,7 @@ fi
echo "DirectFB ${directfb-no}"
if test x"$target_os" = x"mingw32" ; then
echo "Windows (Direct3D) yes"
echo "DXVA2 support ${dxva2-no}"
fi
echo "MHEG support ${mheg}"
echo
Expand Down
1 change: 1 addition & 0 deletions mythtv/external/FFmpeg/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ version 0.5:
- E-AC-3 support added to AC-3 decoder
- Nellymoser ASAO encoder
- ASS and SSA demuxer and muxer
- IEC 61937 encapsulation for E-AC3, TrueHD, DTS-HD (for HDMI passthrough)
- liba52 wrapper removed
- SVQ3 watermark decoding support
- Speex decoding via libspeex
Expand Down
38 changes: 38 additions & 0 deletions mythtv/external/FFmpeg/libavcodec/avcodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,11 @@ typedef struct RcOverride{
* encoders
*/
#define CODEC_CAP_EXPERIMENTAL 0x0200
/**
* Codec should fill in channel configuration and samplerate instead of container
*/
#define CODEC_CAP_CHANNEL_CONF 0x0400


//The following defines may change, don't expect compatibility if you use them.
#define MB_TYPE_INTRA4x4 0x0001
Expand Down Expand Up @@ -2208,6 +2213,12 @@ typedef struct AVCodecContext {
#define FF_PROFILE_AAC_SSR 2
#define FF_PROFILE_AAC_LTP 3

#define FF_PROFILE_DTS 20
#define FF_PROFILE_DTS_ES 30
#define FF_PROFILE_DTS_96_24 40
#define FF_PROFILE_DTS_HD_HRA 50
#define FF_PROFILE_DTS_HD_MA 60

#define FF_PROFILE_H264_BASELINE 66
#define FF_PROFILE_H264_MAIN 77
#define FF_PROFILE_H264_EXTENDED 88
Expand Down Expand Up @@ -2744,6 +2755,14 @@ typedef struct AVCodecContext {
int xvmc_vld_hwslice;
} AVCodecContext;

/**
* AVProfile.
*/
typedef struct AVProfile {
int profile;
const char *name; ///< short name for the profile
} AVProfile;

/**
* AVCodec.
*/
Expand Down Expand Up @@ -2784,6 +2803,8 @@ typedef struct AVCodec {
const enum SampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1
const int64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
uint8_t max_lowres; ///< maximum value for lowres supported by the decoder
AVClass *priv_class; ///< AVClass for the private context
const AVProfile *profiles; ///< array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN}
} AVCodec;

/**
Expand Down Expand Up @@ -3344,6 +3365,15 @@ AVCodec *avcodec_find_decoder(enum CodecID id);
AVCodec *avcodec_find_decoder_by_name(const char *name);
void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode);

/**
* Return a name for the specified profile, if available.
*
* @param codec the codec that is searched for the given profile
* @param profile the profile value for which a name is requested
* @return A name for the profile if found, NULL otherwise.
*/
const char *av_get_profile_name(const AVCodec *codec, int profile);

/**
* Set the fields of the given AVCodecContext to default values.
*
Expand All @@ -3355,6 +3385,10 @@ void avcodec_get_context_defaults(AVCodecContext *s);
* we WILL change its arguments and name a few times! */
void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType);

/** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API!
* we WILL change its arguments and name a few times! */
int avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec);

/**
* Allocate an AVCodecContext and set its fields to default values. The
* resulting struct can be deallocated by simply calling av_free().
Expand All @@ -3368,6 +3402,10 @@ AVCodecContext *avcodec_alloc_context(void);
* we WILL change its arguments and name a few times! */
AVCodecContext *avcodec_alloc_context2(enum AVMediaType);

/** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API!
* we WILL change its arguments and name a few times! */
AVCodecContext *avcodec_alloc_context3(AVCodec *codec);

/**
* Copy the settings of the source AVCodecContext into the destination
* AVCodecContext. The resulting destination codec context will be
Expand Down

0 comments on commit 54285fa

Please sign in to comment.