• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revisiond5fe363232c4456498282c95f8ec08c67e63a903 (tree)
Zeit2013-06-25 14:53:58
AutorAustin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Log Message

h264encode: use frame height not the height from VAImage which may be wrong

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>

Ändern Zusammenfassung

Diff

--- a/test/encode/h264encode.c
+++ b/test/encode/h264encode.c
@@ -1625,7 +1625,7 @@ static int load_surface(VASurfaceID surface_id, unsigned long long display_order
16251625 }
16261626
16271627 /* copy Y plane */
1628- for (row=0;row<surface_image.height;row++) {
1628+ for (row=0;row<frame_height;row++) {
16291629 unsigned char *Y_row = Y_start + row * Y_pitch;
16301630 (void)fread(Y_row, 1, surface_image.width, srcyuv_fp);
16311631 }
@@ -1641,7 +1641,7 @@ static int load_surface(VASurfaceID surface_id, unsigned long long display_order
16411641 uv_ptr = malloc(uv_size);
16421642 fread(uv_ptr, uv_size, 1, srcyuv_fp);
16431643
1644- for (row =0; row < surface_image.height/2; row++) {
1644+ for (row =0; row < frame_height/2; row++) {
16451645 unsigned char *U_row = U_start + row * U_pitch;
16461646 unsigned char *u_ptr, *v_ptr;
16471647 int j;
@@ -1770,7 +1770,7 @@ static int storage_task_queue(unsigned long long display_order, unsigned long lo
17701770 return 0;
17711771 }
17721772
1773-static void storage_task(unsigned long long display_order, unsigned long encode_order)
1773+static void storage_task(unsigned long long display_order, unsigned long long encode_order)
17741774 {
17751775 unsigned int tmp;
17761776 VAStatus va_status;