Revision 08f19605 libavcodec/vp3.c

View differences:

libavcodec/vp3.c
1647 1647
                 * because some pixels get filtered twice. */
1648 1648
                if( s->all_fragments[fragment].coding_method != MODE_COPY )
1649 1649
                {
1650
                /* do not perform left edge filter for left columns frags */
1650
                    /* do not perform left edge filter for left columns frags */
1651 1651
                    if (x > 0) {
1652
                    s->dsp.vp3_h_loop_filter(
1653
                        plane_data + s->all_fragments[fragment].first_pixel,
1654
                        stride, bounding_values);
1655
                }
1652
                        s->dsp.vp3_h_loop_filter(
1653
                            plane_data + s->all_fragments[fragment].first_pixel,
1654
                            stride, bounding_values);
1655
                    }
1656 1656

  
1657
                /* do not perform top edge filter for top row fragments */
1657
                    /* do not perform top edge filter for top row fragments */
1658 1658
                    if (y > 0) {
1659
                    s->dsp.vp3_v_loop_filter(
1660
                        plane_data + s->all_fragments[fragment].first_pixel,
1661
                        stride, bounding_values);
1662
                }
1659
                        s->dsp.vp3_v_loop_filter(
1660
                            plane_data + s->all_fragments[fragment].first_pixel,
1661
                            stride, bounding_values);
1662
                    }
1663 1663

  
1664
                /* do not perform right edge filter for right column
1665
                 * fragments or if right fragment neighbor is also coded
1666
                 * in this frame (it will be filtered in next iteration) */
1667
                if ((x < width - 1) &&
1668
                    (s->all_fragments[fragment + 1].coding_method == MODE_COPY)) {
1669
                    s->dsp.vp3_h_loop_filter(
1670
                        plane_data + s->all_fragments[fragment + 1].first_pixel,
1671
                        stride, bounding_values);
1672
                }
1664
                    /* do not perform right edge filter for right column
1665
                     * fragments or if right fragment neighbor is also coded
1666
                     * in this frame (it will be filtered in next iteration) */
1667
                    if ((x < width - 1) &&
1668
                        (s->all_fragments[fragment + 1].coding_method == MODE_COPY)) {
1669
                        s->dsp.vp3_h_loop_filter(
1670
                            plane_data + s->all_fragments[fragment + 1].first_pixel,
1671
                            stride, bounding_values);
1672
                    }
1673 1673

  
1674
                /* do not perform bottom edge filter for bottom row
1675
                 * fragments or if bottom fragment neighbor is also coded
1676
                 * in this frame (it will be filtered in the next row) */
1677
                if ((y < height - 1) &&
1678
                    (s->all_fragments[fragment + width].coding_method == MODE_COPY)) {
1679
                    s->dsp.vp3_v_loop_filter(
1680
                        plane_data + s->all_fragments[fragment + width].first_pixel,
1681
                        stride, bounding_values);
1682
                }
1674
                    /* do not perform bottom edge filter for bottom row
1675
                     * fragments or if bottom fragment neighbor is also coded
1676
                     * in this frame (it will be filtered in the next row) */
1677
                    if ((y < height - 1) &&
1678
                        (s->all_fragments[fragment + width].coding_method == MODE_COPY)) {
1679
                        s->dsp.vp3_v_loop_filter(
1680
                            plane_data + s->all_fragments[fragment + width].first_pixel,
1681
                            stride, bounding_values);
1682
                    }
1683 1683
                }
1684 1684

  
1685 1685
                fragment++;

Also available in: Unified diff