[FFmpeg-devel] [PATCH 03/23] hpeldsp: add half-pel functions (currently copies of dsputil).

Michael Niedermayer michaelni at gmx.at
Wed Mar 13 03:32:53 CET 2013


On Tue, Mar 12, 2013 at 07:28:13AM -0700, Ronald S. Bultje wrote:
> From: "Ronald S. Bultje" <rsbultje at gmail.com>
[...]
> +static inline void FUNCC(OPNAME ## _pixels2_xy2)(uint8_t *p_block, const uint8_t *p_pixels, ptrdiff_t line_size, int h)\
> +{\
> +        int i, a0, b0, a1, b1;\
> +        pixel *block = (pixel*)p_block;\
> +        const pixel *pixels = (const pixel*)p_pixels;\

comparing source and destination of the copy:

-static inline void FUNCC(OPNAME ## _pixels2_xy2)(uint8_t *_block, const uint8_t *_pixels, ptrdiff_t line_size, int h)\
+static inline void FUNCC(OPNAME ## _pixels2_xy2)(uint8_t *p_block, const uint8_t *p_pixels, ptrdiff_t line_size, int h)\
 {\
         int i, a0, b0, a1, b1;\
-        pixel *block = (pixel*)_block;\
-        const pixel *pixels = (const pixel*)_pixels;\
+        pixel *block = (pixel*)p_block;\
+        const pixel *pixels = (const pixel*)p_pixels;\
         line_size >>= sizeof(pixel)-1;\
         a0= pixels[0];\
         b0= pixels[1] + 2;\

I dont really mind the change but i suspect this is unintended


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130313/f9f60cc4/attachment.asc>


More information about the ffmpeg-devel mailing list