History

h264: 4:2:2 intra decoding support

Baptiste Coudurier committed 15 years ago

Commit 76741b01 parent dc49bf124 files · +673 −133Browse files

Showing the changes to libavcodec/ppc (1 of 24 files). Show all

Unified · Split

libavcodec/ppc/h264_altivec.c+3−2
@@ -999,12 +999,13 @@ void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) { · 998 unmodified lines
999999 }
10001000 }
10011001
1002−void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth)
1002+void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
10031003 {
10041004 if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
10051005 if (bit_depth == 8) {
10061006 c->h264_idct_add = ff_h264_idct_add_altivec;
1007− c->h264_idct_add8 = ff_h264_idct_add8_altivec;
1007+ if (chroma_format_idc == 1)
1008+ c->h264_idct_add8 = ff_h264_idct_add8_altivec;
10081009 c->h264_idct_add16 = ff_h264_idct_add16_altivec;
10091010 c->h264_idct_add16intra = ff_h264_idct_add16intra_altivec;
10101011 c->h264_idct_dc_add= h264_idct_dc_add_altivec;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t