Lines 409-416
Link Here
|
409 |
continue; |
409 |
continue; |
410 |
} |
410 |
} |
411 |
|
411 |
|
412 |
if (PTrace::CanTrace (4)) |
412 |
#if PTRACING |
413 |
DumpCapabilities (candidateXVPort); |
413 |
DumpCapabilities (candidateXVPort); |
|
|
414 |
#endif // PTRACING |
414 |
|
415 |
|
415 |
// Check if the Port supports YV12/YUV colorspace |
416 |
// Check if the Port supports YV12/YUV colorspace |
416 |
supportsYV12 = false; |
417 |
supportsYV12 = false; |
Lines 684-690
Link Here
|
684 |
} |
685 |
} |
685 |
} |
686 |
} |
686 |
|
687 |
|
687 |
if ( (_useShm) && (PTrace::CanTrace (4)) ) { |
688 |
#if PTRACING |
|
|
689 |
if ( (_useShm) ) { |
688 |
int j = 0; |
690 |
int j = 0; |
689 |
PTRACE(4, "XVideo\tCreated XvImage (" << _XVImage[i]->width << "x" << _XVImage[i]->height |
691 |
PTRACE(4, "XVideo\tCreated XvImage (" << _XVImage[i]->width << "x" << _XVImage[i]->height |
690 |
<< ", data size: " << _XVImage[i]->data_size << ", num_planes: " << _XVImage[i]->num_planes); |
692 |
<< ", data size: " << _XVImage[i]->data_size << ", num_planes: " << _XVImage[i]->num_planes); |
Lines 692-697
Link Here
|
692 |
for (j = 0 ; j < _XVImage[i]->num_planes ; j++) |
694 |
for (j = 0 ; j < _XVImage[i]->num_planes ; j++) |
693 |
PTRACE(4, "XVideo\t Plane " << j << ": pitch=" << _XVImage[i]->pitches [j] << ", offset=" << _XVImage[i]->offsets [j]); |
695 |
PTRACE(4, "XVideo\t Plane " << j << ": pitch=" << _XVImage[i]->pitches [j] << ", offset=" << _XVImage[i]->offsets [j]); |
694 |
} |
696 |
} |
|
|
697 |
#endif // PTRACING |
695 |
|
698 |
|
696 |
if (_useShm) { |
699 |
if (_useShm) { |
697 |
_XShmInfo[i].shmid = shmget (IPC_PRIVATE, _XVImage[i]->data_size, IPC_CREAT | 0777); |
700 |
_XShmInfo[i].shmid = shmget (IPC_PRIVATE, _XVImage[i]->data_size, IPC_CREAT | 0777); |