[Title] Add dummy variables for Windows into codec structures
authorkt920.kim <kt920.kim@samsung.com>
Fri, 13 Jan 2012 17:07:56 +0000 (02:07 +0900)
committerkt920.kim <kt920.kim@samsung.com>
Mon, 16 Jan 2012 01:16:40 +0000 (10:16 +0900)
[Type] bug fix
[Module] Kernel / Codec
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: Id9a0d911775e4f7aad5b70846b8d7cde1e71372f

Change-ID: I9f4ab8976f4f00f4f62e1f930f2131401551f682

drivers/samsung/avcodec.h
drivers/samsung/emul_codec.c

index 7c6b19f6d2522bbd94e0600fafd9804e4a220f64..a4264bee3456a9bdf7f47e26e912aff9a78fb122 100644 (file)
@@ -836,6 +836,11 @@ typedef struct AVPanScan{
      * - decoding: Set by user.\
      */\
     void *opaque;\
+\
+       /*
+        * dummy variable for tizen in Windows.
+        */\
+       int dummy_a;\
 \
     /**\
      * error\
@@ -914,6 +919,11 @@ typedef struct AVPanScan{
      * - decoding: Set by libavcodec.\
      */\
     int8_t *ref_index[2];\
+\
+       /*
+        * dummy variable for tizen in Windows.
+        */\
+       int dummy_b;\
 \
     /**\
      * reordered opaque 64bit number (generally a PTS) from AVCodecContext.reordered_opaque\
@@ -929,6 +939,11 @@ typedef struct AVPanScan{
      * - decoding: Set by libavcodec\
      */\
     void *hwaccel_picture_private;\
+\
+       /*
+        * dummy variable for tizen in Windows.
+        */\
+       int dummy_c;\
 
 
 #define FF_QSCALE_TYPE_MPEG1 0
@@ -1716,6 +1731,11 @@ typedef struct AVCodecContext {
      * - decoding: Set by user.
      */
     int debug_mv;
+
+    /*
+     * dummy variable for tizen in Windows.
+     */
+    int dummy_a;
 #define FF_DEBUG_VIS_MV_P_FOR  0x00000001 //visualize forward predicted MVs of P frames
 #define FF_DEBUG_VIS_MV_B_FOR  0x00000002 //visualize forward predicted MVs of B frames
 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames
@@ -2502,6 +2522,11 @@ typedef struct AVCodecContext {
      */
     int bits_per_raw_sample;
 
+    /*
+     * dummy variable for tizen in Windows.
+     */
+    int dummy_b;
+
     /**
      * Audio channel layout.
      * - encoding: set by user.
@@ -2664,6 +2689,11 @@ typedef struct AVCodecContext {
      * - decoding: unused
      */
     int rc_lookahead;
+
+    /*
+     * dummy variable for tizen in Windows.
+     */
+    int dummy_c;
 } AVCodecContext;
 
 /**
@@ -2928,6 +2958,11 @@ typedef struct AVCodecParserContext {
 #define PARSER_FLAG_COMPLETE_FRAMES           0x0001
 
     int64_t offset;      ///< byte offset from starting packet start
+       /*
+        * dummy variable for tizen in Windows.
+        */
+       int dummy_a;
+
     int64_t cur_frame_end[AV_PARSER_PTS_NB];
 
     /*!
@@ -2938,6 +2973,11 @@ typedef struct AVCodecParserContext {
      */
     int key_frame;
 
+       /*
+        * dummy variable for tizen in Windows.
+        */
+       int dummy_b;
+
     /**
      * Time difference in stream time base units from the pts of this
      * packet to the point at which the output from the decoder has converged
@@ -2996,6 +3036,11 @@ typedef struct AVCodecParserContext {
      */
     int pts_dts_delta;
 
+       /*
+        * dummy variable for tizen in Windows.
+        */
+       int dummy_c;
+
     /**
      * Position of the packet in file.
      *
index 662c41cc9ffaa6a70c99ca1879c56b96cd7ed0a6..bbfbc102a61d9f98f1b218c8e04798f48f14d45f 100644 (file)
@@ -55,7 +55,7 @@ MODULE_AUTHOR("Kitae KIM <kt920.kim@samsung.com");
 MODULE_LICENSE("GPL2");
 
 // #define CODEC_DEBUG
-// #define CODEC_KVM
+#define CODEC_KVM
 
 #ifdef CODEC_DEBUG
 #define SVCODEC_LOG(fmt, ...) \
@@ -347,7 +347,6 @@ static ssize_t svcodec_write (struct file *file, const char __user *buf,
                codec = (AVCodec*)paramInfo.in_args[1];
 
                size = sizeof(AVCodecContext);
-               printk(KERN_DEBUG "AVCodecContext size:%d\n", sizeof(AVCodecContext));
                memcpy(&tmpCtx, ctx, size);
 
                memcpy_toio(svcodec->memaddr, ctx, size);